<H2></H2> - Level 2 HeadingsThis tag tells the browser that the text between it and its closing tag is to be presented as a heading slightly inferior to Heading 1.
This tag must be closed at the end of the heading by typing </H2>.
<H2>| %coreattrs %i18n %events |
| D |
align=
|
[CI] |
|---|---|---|
|
Specifies left alignment. | |
|
Specifies centered text. | |
|
Specifies right alignment. | |
|
Specifies justified text. If unsupported, reverts to default. | |
| This attribute controls text alignment. The default value is inherited; otherwise, it is left for left-to-right headings and right for right-to-left headings. | ||
Sample:
This is paragraph text.
Here is the code for the sample above:
<H2>Level 2 Heading</H2>
<P>This is paragraph text.</P>