Professional Documents
Culture Documents
Hypertext Markup Language
Hypertext Markup Language
Hypertext Markup Language
• There are opening and closing tags for many but not all tags; The text is
between the two tags.
WEB BROWSER & WEB
PAGE
HTML tags
Tags surrounded by angle brackets < >
Usually come in pairsExample: Start tag <p> and end tag </p>
Stuff between is called “element content”
Tags are not case sensitive. New standard is to use lower case
The tags with opening and closing tag both are known as paired
tags.
Whenever you have HTML tags within other HTML tags, you must
close the nearest tag first.
Example: NESTED TAGS
<H1> <I> The Nation </I> </H1>
Different layout and
Appearance
STRUCTURE OF WEB
PAGE
• All Web pages share a common structure
• All Web pages should contain a pair of <HTML>, <HEAD>, <TITLE>, and <BODY> tags
<html>
<head>
<title> …document title… </title>
</head>
<body>
…your page content…
</body>
</html>
Basic HTML program
Save the file on your
hard drive
Naming your HTML file
■ <h1>…</h1> to <h6>…</h6>
■ Like in Word
■ See example
■ Paragraph
■ <p>… </p>
■ See example
Example of using
Heading tag
Example of using
Paragraph tag
Text formatting tags
• These attributes can be combined to change the font, size, and color of the
text all at once; For example, <FONT SIZE=4 FACE=“Courier”
COLOR=“red”> …. </FONT>
HEADING