The H1-H6 Heading Elements


The <H1>-<H6> Heading Elements

The heading elements <H1> to <H6> are block HTML elements, which means they're set off on their own line by browsers. These elements enable you to display headings of various sizes, with <H1> being the largest and <H6> being the smallest. These elements support an align property (although note that the ALIGN HTML attribute is actually deprecated in HTML 4.01 in favor of style sheets), as you see in Table 11.5.

Table 11.5. The Properties of the <H1>-<H6> Elements (See Chapters 5 and 6 for the JavaScript core HTML properties, methods , and events that also apply to these elements.)

Property

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

align

     

x

   

x

x

x

x

 

Read/write

 

This property sets or gets the alignment of the heading in its block. Set to "center" (aligns to the center), "justify" (aligns to the left and right edge), "left" (the defaultaligns to the left edge), or "right" (aligns to the right edge).



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net