HTML Headings
Next Page
HTML Heading tag is used to define headings at your web page.
There are 6 types of HTML Headings that you can use at web page
<h1> to <h6>
<h1> is used to define most important heading and <h6> is used to define least important heading.
Eg i
Output
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
In the above example
we shows six different level of heading<h1> to <h6>
we shows six different level of heading<h1> to <h6>
HTML Heading tag automatically break the lines. if you want to put extra space then use either <br/> or <hr/> Tag
Eg
In the above example
i) In the first line we declare heading tag <h1> with</br/> tag, br tag is used to break the line.
i) In the first line we declare heading tag <h1> with</br/> tag, br tag is used to break the line.
ii)In second statement we use <hr> tag. it display the line across the heading 2.
iii)In third statement <h3> simply used to display sub-heading.
No comments:
Post a Comment