We can use heading tag to indicate our text as a heading.
There are six type of headings.
<H1>Your Text</H1>
<H2>Your Text</H2>
<H3>Your Text</H3>
<H4>Your Text</H4>
<H5>Your Text</H5>
<H6>Your Text</H6>
Example:
<HTML>
<HEAD><TITLE>Headings</TITLE></HEAD>
<BODY>
<H1>First level heading</H1>
<H2>Second level heading</H2>
<H3>Third level heading</H3>
<H4>Fourth level heading</H4>
<H5>Fifth level heading</H5>
<H6>Sixth level heading</H6>
</BODY>
</HTML>
Save this as headings.html in mysite folder
Output will be,
We can align headings to center, left or right. To align ,
<H1 align=”Center”>First heading</H1>
This will align the text “First heading” to center screen of your web browser.
No comments:
Post a Comment