- Get link
- X
- Other Apps
Headings
We all know the use of headings. Headings are very vital part of documentation and presentation. No document is understandable without headings. Even this blog post will also look boring without putting headings. In HTML, we can use tags to add headings to our web page.
HTML includes six levels of headings, which are ranked according to importance.You can use these headings according to your need that how bold or large heading you want in your document.
These are <h1>,<h2>,<h3>,<h4>,<h5> and <h6>.
These are <h1>,<h2>,<h3>,<h4>,<h5> and <h6>.
Heading1 is huge heading for the most important part of document like name of document. Other headings, are relatively smaller and arranged according to their size and importance.
The following code defines all the headings:
The following code defines all the headings:
The HTML:
<html>
<head>
<title>first page</title>
</head>
<body>
<h1>This is Heading 1.</h1>
<h2>This is Heading 2.</h2>
<h3>This is Heading 3.</h3>
<h4>This is Heading 4.</h4>
<h5>This is Heading 5.</h5>
<h6>This is Heading 6.</h6>
</body>
</html>
Result:
Note: It is not recommended that you use headings just to make the text big or bold, because search engines use headings to index the web page structure and content.
Comments
Post a Comment
If you have any doubt, ask here