Heading tags are used to create headings ,subheadings.
Heading tag gives boldness and varying size.
There are six types of heading tags:
- <h1>....</h1> - size in pixels is 32px.
Heading 1
- <h2>....</h2> - size in pixels is 24px.
Heading 2
- <h3>....</h3> - size in pixels is 18.7px.
Heading 3
- <h4>....</h4> - size in pixels is 16px.
Heading 4
- <h5>....</h5> - size in pixels is 13.2px.
Heading 5
- <h1>....</h1> - size in pixels is 10.7px.
Heading 6
Code:
<!DOCTYPE html>
<html>
<head>
<title>Heading tags</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
Post a Comment