Vous êtes sur la page 1sur 2

HEADING OF HTML

Attributes
These elements include the global attributes.
The align attribute is in HTML 4.01 and in HTML5.
Examples
All headings
The following code shows all the heading levels, in use.
<h1>Heading level 1</h1>
<h2>Heading level 2</h2>
<h3>Heading level 3</h3>
<h4>Heading level 4</h4>
<h5>Heading level 5</h5>
<h6>Heading level 6</h6>
Here is the result of this code:

Example page
The following code shows a few headings with some content under them.
<h1>Heading elements</h1>
<h2>Summary</h2>
<p>Some text here...</p>
<h2>Examples</h2>
<h3>Example 1</h3>
<p>Some text here...</p>
<h3>Example 2</h3>
<p>Some text here...</p>
<h2>See also</h2>
<p>Some text here...</p>
Here is the result of this code
Specifications
Specification Status Comment
WHATWG HTML Living Standard
The definition of '<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>' in that speci
fication. Living Standard
HTML5
The definition of '<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>' in that speci
fication. Recommendation
HTML 4.01 Specification
The definition of '<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>' in that speci
fication. Recommendation
See also
<p>
<div>
<section>

Vous aimerez peut-être aussi