How to write headings using HTML for beginners




In the previous article we have learnt how to write paragraphs  using HTML for a web page.

In this article we will learn how to write headings of a web page using HTML coding. In the web page we use heading in the content section which should be write in <body</body> section. To write headings ,we use six types of headings from <h1> to <h6> .


<h1> should be write one time as it is main heading of a web page. We can write from <h2> to <h6> headings as per our requirement.

How to write headings using HTML

===================================================================

Now we are going to write the HTML coding for headings.

<!DOCTYPE html>
<html>
    <head>
         <title>Techrideradmin</title>
     </head>
     <body>
            <h1> Techrideradmin</h1>
             <h2> to write sub heading of h1</h2>
           <p> welcome to Techrideradmin</p>
     </body>
</html

After doing the above code while we reload the page we found the below output.

How to write headings using HTML for beginners
How to write headings using HTML for beginners

From the above raw coding , we should write <!DOCTYPE html> at the beginning which tells the browser it is a html program.

We should ensure that <h1> is the main heading of the web page and it should be write one time and <h2> will be the sub heading of the <h1> and <h3> will be the sub heading of <h2> and so on.


That’s all. If this article is helpful please share it!!!!







Please Donate To Bitcoin Address: [[address]]
Donation of [[value]] BTC Received. Thank You.
[[error]]
SHARE

Admin

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment