![]()
<H ALIGN= ...>
<H1>
thru <H6>
<HEAD>
<HR>
<HTML>
The ALIGN=left|center|right
attribute has been added to the <H1> through to <H6>
elements. e.g :<H1 ALIGN=center>Hello, this is a
heading</H1>
would align a heading of style 1 in the centre of the page
HTML defines six levels of heading. A Heading
element implies all the font changes, paragraph breaks before and
after, and white space necessary to render the heading.
The highest level of headings is <H1>, followed by
<H2> ... <H6>.
Example:
<H1>This is a heading</H1>
Here is some text
<H2>Second level heading</H2>
Here is some more text.
The rendering of headings is determined by the browser. Although
heading levels can be skipped (for example, from H1 to H3), this
practice is discouraged as skipping heading levels may produce
unpredictable results when generating other representations from
HTML.
The head of a HTML document is an unordered
collection of information about the document. It requires the
Title element between <HEAD> and </HEAD> elements :
<HEAD>
<TITLE> Mohan Iyer's Homepage</TITLE>
</HEAD>
The <HEAD> and </HEAD> elements do not directly
affect the look of the document when rendered.
A Horizontal Rule element is a divider between
sections of text such as a full width horizontal rule or
equivalent graphic.Example: <HR>
<P>Some text here </P>
</BODY>
The <HR> element specifies that a horizontal rule of some
sort (The default being a shaded engraved line) be drawn across
the page. To this element recent browsers have added support for
4 new attributes which allow the document author to describe how
the horizontal rule should look
<HR SIZE=number>
The SIZE attributes lets the author give an indication of how
thick they wish the horizontal rule to be. A pixel value should
be given.
<HR WIDTH=number|percent>
The default horizontal rule is always as wide as the page. With
the WIDTH attribute, the author can specify an exact width in
pixels, or a relative width measured in percent of document
width.
<HR ALIGN=left|right|center>
Now that horizontal rules do not have to be the width of the page
it possible to specify the horizontal alignment of the rule.
<HR NOSHADE>
For those times when a solid bar is required, the NOSHADE
attribute specifies that the horizontal rule should not be shaded
at all.
This element signals the beginning and end of
HTML document. It should immediately follow the prologue document
identifier (if used) and serves to surround all of the remaining
text, including all other elements. That is, the document should
be constructed thus :
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">
<HTML>
Here is all the rest of the document, including any elements.
</HTML>
The HTML element is not visible in browser window and can contain
only the <HEAD> and <BODY> elements.