Webpage Authoring With HTML
Webpage Authoring With HTML
<html>
…content of the page…
</html>
<head>
Note: The <head> consists of the following tags:
<title>
<base>
<link>
<meta>
<title> Tag: <title> and </title> encloses the title of a
document that is displayed in the web browser’s title bar.
The syntax is:
<head>
<title>My homepage</title>
</head>
<!—
<script>
//scripting code
</script>
<!—
<body>
<p align=left>
Using<font size =”6” face=”monotype corsiwa”>The font tag</font>
</p>
</body>
<b> tag: used to make the text bold face. It is a container tag.
e.g.
<body>
<p align=right>
<b>I am a very tall and handsome boy. </b>
</p>
</body>
<I> tag: used to italicize text. Also a container tag
e.g.
<body>
<p align=right>
<I>I am a very tall and handsome boy. </I>
</p>
</body>
Output is: I am a very tall and handsome boy
<u> tag: used to underline text
e.g.
<body>
<p align=left>
<u> I am a handsome boy. </u>
<sub> and <sup> tags: are used to subscript and superscript texts.
e.g.
<body><p>H<sub>2</sub>is a chemical symbol for hydrogen</p>
<p>2<sup>3</sup> is equal to 8</p>
</body>
The output is: H2 is the chemical symbol for hydrogen
23 is equal to 8.
<strike> tag: is used to make text appear as strike through text. It is a
container tag.
e.g.
<body>
<p>this is a <strike> strikethrough </strike>text</p>
</body>
The output: This is a strikethrough text.
List tags
Ordered or numbered lists: is a list that represents a set of
items in a sequence or an order. The tag <OL> this tag contains list items
<body>
<OL>
<LI>click the web button to open the URL window
<LI>Enter the URL number in the text field of the open window. The web
document you specified is displayed
</OL>
</body>
Unordered or bulleted lists: To represent a set of related items, which do
not need to follow a specific sequence. The tags representing are <UL> and
</UL>. These tags contain within them the <LI> tags to represent individual
list items e.g.
<body>
<UL>
<LI>first list item
<LI>second list item
</UL>
</body>
<body>
<DL compact>