HTML Heading
HTML Heading :
- If we want to make the some part of the text appears to be under some heading then we can use the heading tags in HTML.
- HTML supports 6 types of headings.
- These are the headings defined in HTML - <h1>,<h2>,<h3>,<h4>,<h5>,<h6>
- <h1> type of heading is having more importance than any other type of heading.
- <h6> heading is having least importance.
- Browser adds some empty space (margin) before each heading
HTML Heading Example :
<!DOCTYPE html> <html> <body> <h1>This is H1 Heading</h1> <h2>This is H2 Heading</h2> <h3>This is H3 Heading</h3> <h4>This is H4 Heading</h4> <h5>This is H5 Heading</h5> <h6>This is H6 Heading</h6> </body> </html>
above program will illustrate the headings in HTML.
HTML Heading Tips :
- HTML heading should not be used in web document for just making text bold.
- Headings are having the some importance in the Search Engine.
- Most important part of the webpage should be titled with H1 heading and Sub Point should have H2 type heading