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

Description

The HTMLHeadingElement interface corresponds to six nearly identical elements, each of which indicates the section following as a level of certain relative importance. <h1>...</h1> elements usually correspond to the document title, whereas <h2>...</h2> elements are titles for major sections of the document, <h3>...</h3> elements are titles for normal sections of the document, <h4>...</h4> elements are titles for minor sections of the document, and so on. The concept is for each level of element to appear only within the contents of the next higher element's sections; <h2>...</h2>-level sections should only appear inside the contents of <h1>...</h1>-level sections, for example:

<html>
<head><title>Document Title</title>
</head>
<body> <h1>Document Title</h1> <p>This document describes very little.</p>
<h2>Colors</h2>
<p>There are three primary colors in the world:  red, green, and blue.</p>
<h3>Red</h3> <p>Red you can designate in hexadecimal RGB as #ff0000.</p>
<h3>Green</h3>
<p>Green you can designate in hexadecimal RGB as #00ff00.  (However, this is
often too bright, so you'll see #007f00 for green and #00ff00 for a very
bright green.)</p>
<h3>Blue</h3>
<p>Blue you can designate in hexadecimal RGB as #0000ff.</p>
<h2>Shapes</h2>
The FooBarBaz organization will define shapes in a later revision of this document.
</body>
</html>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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