Heading Tags
HTML includes six levels of headings, which are ranked according to importance.
These are,
These are,
- <h1>
- <h2>
- <h3>
- <h4>
- <h5>
- <h6>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Heading Tag</h1>
<h2>Heading Tag</h2>
<h3>Heading Tag</h3>
<h4>Heading Tag</h4>
<h5>Heading Tag</h5>
<h6>Heading Tag</h6>
</body>
</html>
<hr> Tag:
To create a horizontal line, use the <hr> tag.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Heading Tag</h1>
<hr>
<h2>Heading Tag</h2>
<hr>
<h3>Heading Tag</h3>
<hr>
<h4>Heading Tag</h4>
<hr>
<h5>Heading Tag</h5>
<hr>
<h6>Heading Tag</h6>
<hr>
</body>
</html>
Comments in HTML:
The browser does not display comments, but they help document the HTML and add descriptions, reminders, and other notes.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Heading</h1>
<!--This is a comment. It will not display-->
<h2>Heading</h2>
</body>
</html>
The comment is not displayed in the browser.
Practice in this HTML code editor
//Practice your code here


