• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Working with HTML Text Elements > 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 default—aligns to the left edge), or “right” (aligns to the right edge).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint