Tuesday, 7 March 2023

HTML Headings

 

HTML Heading

A HTML heading or HTML h tag can be defined as a title or a subtitle which you want to display on the webpage. When you place the text within the heading tags <h1>.........</h1>, it is displayed on the browser in the bold format and size of the text depends on the number of heading.

There are six different HTML headings which are defined with the <h1> to <h6> tags, from highest level h1 (main heading) to the least level h6 (least important heading).

h1 is the largest heading tag and h6 is the smallest one. So h1 is used for most important heading and h6 is used for least important.

Example:

<html>

                <head>

                                <title>Body and its attribute</title>

                </head>

                <body bgcolor="pink">

                    

                                 <center>

                                 <h1> Level one Heading</h1>

                                 <h2> Level Two Heading</h2>

                                 <h3> Level Three Heading</h3>

                                 <h4> Level Four Heading</h4>

                                 <h5> Level Five Heading</h5>

                                 <h6> Level Six Heading</h6>

                                 <center>

                </body>

</html>



No comments:

Post a Comment

Full Form of IT and ITes Industry

                                                 Full Form (IT and ITeS) ICT - Information Communication Technology IT - Information Tec...