heading tag in html with example
Heading <H1>.............<H6>
The purpose of the heading tag is to indicate different heading levels in a
document. HTML has six header tags
<H1>, <H2>, <H3>, <H4>, <H5>, <H6>
used to specify section headings. Text with header tags is displayed in larger and bolder fonts than the normal body text by a web browser. Every header leaves a blank line above and below it when displayed in browser. Let‟s write the following HTML code to see how the heading levels will look on a browser.
<HTML>
<HEAD>
<TITLE>
Section Heading
</TITLE>
</HEAD>
<BODY>
<H1> Section Heading Level 1 </H1>
<H2> Section Heading Level 2 </H2>
<H3> Section Heading Level 3 </H3>
<H4> Section Heading Level 4 </H4>
<H5> Section Heading Level 5 </H5>
<H6> Section Heading Level 6 </H6>
</BODY>
</HTML>
Now save the file as headings.html and open the file in your browser. Figure Six heading levels show you what you would see.
HTML supports six levels of headings. Each heading uses a large, usually bold character formatting style to identify itself as a heading.
0 মন্তব্য(গুলি):
একটি মন্তব্য পোস্ট করুন
Comment below if you have any questions