<h#> ... </h#> where # = 1, 2, 3, 4, 5, or 6
Available in versions: 2.0, 3.2, 4.0
The <h#> tags are used to create text headers for a document.
They can display the header text in one of six different sizes.
h1 is the largest size and, as the integer number increases to h6,
the text size becomes progressively smaller.
The exact display appearance of the header text is browser dependent.
This tag also automatically inserts a carriage return and line feed after the closing tag
(i.e., a paragraph break).
It is common practice to use this tag in place of the font tag or style sheets to
set a font size for the text of an entire document.
However, the true purpose of this tag is to only create headers and titles.
It is recommeded that you use style sheets to set the font properties for a text.
The closing tag is mandatory.
Core Attributes
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Attributes
align deprecated 4.0
The align attribute is used to set the position of the header with regard
to the margins.
The permitted values are center, left, and right.
This attribute is deprecated effective with version 4.0.
You are now to use style sheets.
Code:
<h1>DevGuru in h1</h1>
<h2>DevGuru in h2</h2>
<h3>DevGuru in h3</h3>
<h4>DevGuru in h4</h4>
<h5>DevGuru in h5</h5>
<h6>DevGuru in h6</h6>
Output:
DevGuru in h1
DevGuru in h2
DevGuru in h3
DevGuru in h4
DevGuru in h5
DevGuru in h6
Copyright 2000 by Infinite Software
Solutions, Inc.
Trademark Information
|