Hi guys how are you, I hope you are all fine today, I will tell you about heading and paragraphs.

Headings

Headings are used to describe the contents below them, it can be a single word or a phrase. In HTML there are six types of headings that are used for various sizes of text.
  1. <h1> heading one </h1>
  2. <h2> heading two </h2>
  3. <h3> heading three </h3>
  4. <h4> heading four <h4>
  5. <h5> heading five </h5>
  6. <h6> heading six </h6>
Note
Code for headings
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <title>Headings</title>
  6. </head>
  7. <body>
  8. <h1> Salman Aslam Author at C# Corner </h1>
  9. <h2> Salman Aslam Author at C# Corner </h2>
  10. <h3> Salman Aslam Author at C# Corner </h3>
  11. <h4> Salman Aslam Author at C# Corner </h4>
  12. <h5> Salman Aslam Author at C# Corner </h5>
  13. <h6> Salman Aslam Author at C# Corner </h6>
  14. </body>
  15. </html>
Output
Output

Paragraphs

A paragraph is used if you want to finish what you are talking about and start a new conversation. Code for Paragraph
  1. <!DOCTYPE html>
  2. <html>
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <title>Paragraphs</title>
  6. </head>
  7. <body>
  8. <h3> About C# Corner: </h3>
  9. <p> A place for coders, where you can find programming related stuff</p>
  10. <h3> About Salman Aslam:</h3>
  11. <p>I'm doing BSCS from University of Gujrat Pakistan. I 'm entrepreneur and FreeLancer. <br>
  12. I'm web designer and developer and running a software house "M Technologies Pak " (https://www.facebook.com/MTechnologiesPak).<br>
  13. My skills are C# ,HTML,CSS,Javascript,Bootstrap,PHP</p>
  14. </body>
  15. </html>
Output
program output
Note: <h1> to <h6> and <p> add by default one line break. And <br> is used for a line break.

Conclusion

That's it for today, go and add headings and paragraphs to your webpage, if you have any problem please comment below. Stay connected to C# Corner and wait for my next article on text formatting in HTML.