HTML formatting
You may be familiar with
some of the formatting
options that are available in
word processing
applications such as
Microsoft Office, and
desktop publishing
software such as
QuarkXpress. Well, many of
these formatting features
are available in HTML too!
This lesson contains some
of the more common
formatting
options.HeadingsThere is a
special tag for specifying
headings in HTML. There are
6 levels of headings in HTML
ranging fromh1for the most
important, toh6for the least
important.Typing this. <h1<heading1<h1>
<h2<heading2<h2>
<h3<heading3<h3>
<h4<heading4<h4>
<h5<heading5<h5>
<h6<heading6<h6> Typing the above code wil
result in:
Heading1
Heading2
Heading3
Heading4
Heading5
Heading6
Bold
You specify bold text <b>
tag
Typing this code: <b>my name is anu</b> Italics
You specify italics texts
with the <i> tags.
Typing this code:
<i>this text is italiced</i>
Line breaks
<p>here is a<br/>line
break<p>
Typing the above code
result in:
here is a
line break
Horizontal rule
<hr/>
Typing the above code
result in
Un ordered list (un-
numbered)
<ul>
<li>item1</li>
<li>item2</li>
<ul>
typing the above code
result in
*.item1
*.item2
Un ordered list (un-
numbered)
<ol>
<li>item1</li>
<li>item2</li>
<ol>
typing the above code
result in
1.item1
2.item2