HTML Tag and Attribute Reference
<H1>
...and <H2> <H3> <H4> <H5> <H6>
Heading Tags
<H1>
text
</H1>
<H1 ALIGN=
alignment
> text </H1>
<H1 SRC="
URL
">
text
</H1>
<H1 DINGBAT="
entity-name
">
text
</H1>
<H1 NOWRAP>
text
</H1>
<H1 CLEAR=clear >
text
</H1>
The tags
<H1> <H2> <H3> <H4> <H5>
and
<H6>
display headings.
H1
are the most prominent and
H6
are the least prominent. Headings are normally displayed in a larger and bolder font than normal text. Heading elements start on a new line.
The
alignment
attribute can be
LEFT
,
RIGHT
, or
CENTER
-- it defines the placement of the header on the screen. The
SRC
attribute identifies a graphic image to be embedded before the header text, while the
DINGBAT
attribute identifies an iconic entity to be embedded there. The clear attribute is used to position a header after a graphic: it can be
LEFT
,
RIGHT
, or
ALL
and specifies which margin should be clear. The
NOWRAP
attribute prevents the browser from breaking long header lines; use a
BR
tag to break those lines yourself.
<HEAD>
<HEAD>
head section
</HEAD>
The head tag introduces text that describes an HTML document. Most documents have only a
TITLE
tag in the head section but, there are a numbers of others;
LINK
and
META
to name a couple.
<HR>
Horizontal Rule
<HR>
<HR SRC="
URL
">
<HR SIZE=
number
>
<HR WIDTH=
pixels or %
>
<HR ALIGN=
alignment
>
<HR NOSHADE>
<HR COLOR="
colorname
">
The horizontal rule tag causes a horizontal line to be drawn across the screen. There is no
</HR>
tag.
The attributes allow you to specify the thickness of the line (in pixels) with the
SIZE
attribute. The
WIDTH
attribute governs what percentage of the screen width is occupied by the rule. The
ALIGN
attribute aligns a rule that is smaller than the screen: alignment can be
LEFT
,
RIGHT
, or
CENTER
. The
NOSHADE
attribute prevents the browser from using any shading or three dimensional effects.
The
COLOR
attribute allows you to change the color of the text. The
colorname
is defined by hexadecimal color codes found
here
. The actual names of the colors, while not as versatile, may be used as well. Valid colours are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal, Yellow, and White.
The
SRC
attribute specifies an image file to be used for the rule.
<HTML>
<HTML>
entire document
</HTML>
The
HTML
tag defines an HTML document. The
<HTML>
tag should be the first in the entire document, and the
</HTML>
tag should be the last.