Professional Documents
Culture Documents
Week 1 - HTML
Week 1 - HTML
WHAT IS HTML?
<BODY>
</BODY>
</HTML>
HTML TAGS
Only the <body> area (the white area) is displayed by the browser.
THE <!DOCTYPE> DECLARATION
• THE <!DOCTYPE> DECLARATION HELPS THE BROWSER TO DISPLAY A
WEB PAGE CORRECTLY.
• THERE ARE DIFFERENT DOCUMENT TYPES ON THE WEB.
• TO DISPLAY A DOCUMENT CORRECTLY, THE BROWSER MUST KNOW
BOTH TYPE AND VERSION.
• THE DOCTYPE DECLARATION IS NOT CASE SENSITIVE. ALL CASES ARE
ACCEPTABLE:
HTML VERSIONS
Since the early days of the web, there have been many versions of HTML:
Version Year
HTML 1991
XHTML 2000
HTML5 2012
HTML EDITORS
• WRITE HTML USING NOTEPAD OR TEXTEDIT
• HTML CAN BE EDITED BY USING A PROFESSIONAL HTML EDITOR LIKE:
• ADOBE DREAMWEAVER
• MICROSOFT EXPRESSION WEB
• COFFEECUP HTML EDITOR
• HOWEVER, FOR LEARNING HTML WE RECOMMEND A TEXT EDITOR LIKE
NOTEPAD (PC) OR TEXTEDIT (MAC).
• WE BELIEVE USING A SIMPLE TEXT EDITOR IS A GOOD WAY TO LEARN
HTML.
• FOLLOW THE 4 STEPS BELOW TO CREATE YOUR FIRST WEB PAGE WITH
NOTEPAD.
STEP 1: OPEN NOTEPAD
</BODY>
</HTML>
STEP 3: SAVE THE HTML PAGE
• SAVE THE FILE ON YOUR COMPUTER.
• SELECT FILE > SAVE AS IN THE NOTEPAD MENU.
• NAME THE FILE "HOME.HTM" OR ANY OTHER NAME ENDING WITH HTM.
• UTF-8 IS THE PREFERRED ENCODING FOR HTML FILES.
• INDICATES THE START AND END OF THE TITLE. THE TITLE DOES NOT
APPEAR IN THE BODY OF THE WEB PAGE, BUT APPEARS ON THE TITLE
BAR OF THE BROWSER
<BODY> </BODY>
<html>
<head>
<title>Intra-Wall Manang Chicken Sample Website</title>
</head>
<body>
<h1>Hello! Welcome to the official website of Intramuros famous Manang
Chicken!</h1>
<p>Manang Chicken is opened for business since 1890. Manang Chicken is the
famous restaurant mentioned in the book of Jose Rizal the Noli Me Tangere
wherein he mentioned that this restaurant provides the most delicious chicken
ever tasted by the Spaniards which triggered their plan of conquering the
Philippines. Many professors from different universities around the world tried to
conduct an interview with Manang to verify this statement but they always refuse
to be interviewed. Up to the present, the statements is still a mystery. </p>
<p>Call 922-2222 for delivery</p>
<h2>Menu of the day</h2>
<ul type="disc">
<li>Chicken single</li>
</ul>
<ul type="square">
<li>Chicken double</li>
</ul>
<ol type="A">
<li>Lechon single</li>
<li>Lechon double</li>
</ol>
</body>
</html>
WEB PAGE IMAGES
• IMAGE TYPE
• GIF
• JPEG
• PNG
<IMG />
• IMAGE TAG
WEB PAGE IMAGES
IMAGE ATTRIBUTES
◦ ALIGN – CONTROLS ALIGNMENT (BOTTOM, MIDDLE, TOP, LEFT,
RIGHT)
◦ ALT – ALTERNATIVE TEXT TO DISPLAY WHEN AN IMAGE IS
BEING LOADED
◦ BORDER – DEFINES BORDER WIDTH
◦ HEIGHT – DEFINES THE HEIGHT OF THE IMAGE
◦ HSPACE – DEFINES THE HORIZONTAL SPACE THAT SEPARATES
THE IMAGE FROM THE TEXT
◦ SRC – DEFINES THE URL OF THE IMAGE TO BE LOADED
◦ VSPACE – DEFINES THE VERTICAL SPACE THAT SEPARATES THE
IMAGE FROM THE TEXT
◦ WIDTH – DEFINES THE WIDTH OF THE IMAGE
<!DOCTYPE html
<html>
<head>
<title>Intra-Wall Manang Chicken Sample Website</title>
</head>
<body>
<img src=“picname.extname” width=“500” height=“80” alt=“logo” />
<h1>Hello! Welcome to the official website of Intramuros famous Manang
Chicken!</h1>
<p>Manang Chicken is opened for business since 1890. Manang Chicken is the
famous restaurant mentioned in the book of Jose Rizal the Noli Me Tangere
wherein he mentioned that this restaurant provides the most delicious chicken
ever tasted by the Spaniards which triggered their plan of conquering the
Philippines. Many professors from different universities around the world tried to
conduct an interview with Manang to verify this statement but they always refuse
to be interviewed. Up to the present, the statements is still a mystery. </p>
<p>Call 922-2222 for delivery</p>
ATTRIBUTES FOR BACKGROUND COLOR
<html>
<head>
<title>Intra-Wall Manang Chicken Sample Website</title>
</head>
<body bgcolor=“cyan”>
<img src=“picname.extname” width=“500” height=“80” alt=“logo” />
<h1>Hello! Welcome to the official website of Intramuros famous Manang
Chicken!</h1>
<p>Manang Chicken is opened for business since 1890. Manang Chicken is the
famous restaurant mentioned in the book of Jose Rizal the Noli Me Tangere
wherein he mentioned that this restaurant provides the most delicious chicken
ever tasted by the Spaniards which triggered their plan of conquering the
Philippines. Many professors from different universities around the world tried to
conduct an interview with Manang to verify this statement but they always refuse
to be interviewed. Up to the present, the statements is still a mystery. </p>
<p>Call 922-2222 for delivery</p>
CENTERING THE HEADING
<html>
<head>
<title>Intra-Wall Manang Chicken Sample Website</title>
</head>
<body bgcolor="red">
<hr/>
<h2>Menu of the day</h2>
<hr/ size="2">
<ul type="disc">
<li>Chicken single</li>
</ul>
<ul type="square">
<hr/ size="10">
<li>Chicken double</li>
</ul>
<ol type="A">
<li>Lechon single</li>
<hr/ size="10" noshade>
<li>Lechon double</li>
</ol>
</body>
</html>
ACTIVITY 1
• HTTP://WWW.W3SCHOOLS.COM/HTML