|
The Heading tag is used to create headings
<h1> Heading 1 </h1>
<h2> Heading 2 </h2>
<h3> Heading 3 </h3>
<h4> Heading 4 </h4>
<h5> Heading 5 </h5>
<h6> Heading 6 </h6>
|
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
|
The heading is automatically placed on its own line and is displayed in bold type
Before <h3> Heading 3 </h3> After
|
Before Heading 3 After
|
If you want to change the font size without the new line and bold type then you need the size parameter of the font tag
<font size=+1> Large Type </font>
<br>
<font size=+2> Larger Type </font>
<br>
<font size=-1> Small Type </font>
<br>
<font size=-2> Smaller Type </font>
|
Large Type
Larger Type
Small Type
Smaller Type
|
The font tag also has a colour parameter
<font color=red> Red Type </font>
<br>
<font color=#339966> Green Type </font>
|
Red Type
Green Type
|
Note the American spelling of the color parameter
HTML colour table
The font tag also has a type face parameter
<font face="Comic Sans MS",Arial>Comic Sans MS</font>
<br>
<font face="Book Antiqua",Times>Book Antiqua</font>
<br>
<font face="Made up name">Normal Type</font>
|
Comic Sans MS
Book Antiqua
Normal Type
|
When specifying a font you are relying on the person viewing your HTML code having the specified font
installed on their PC, to help this you can specify a number of fonts, the first match in
your list is used, the list should end with generic font type like Times or Arial
If the list does not contain an installed font then the text is displayed in the normal font
Standard Fonts List
All of the above Font Parameters can be combined in a single tag
<font face="Comic Sans MS" size=+2 color=blue>
Large - Blue - Comic Sans MS
</font>
|
Large - Blue - Comic Sans MS
|
|