HTML Heading Tags
- Heading can be created with tags h1, h2, h3, h4, h5 and h6.
- h1 is used to make big heading, h2 is used to make it smaller heading than h1, similary bit smaller in h3, same in h4, h5 and h6. h6 is used to make least smaller heading.
h1 Heading Tag
<h1>Welcome to HTML Learning</h1>
Output:
Welcome to HTML Learning
h2 Heading Tag
<h2>Welcome to HTML Learning</h2>
Output:
Welcome to HTML Learning
h3 Heading Tag
<h3>Welcome to HTML Learning</h3>
Output:
Welcome to HTML Learning
h4 Heading Tag
<h4>Welcome to HTML Learning</h4>
Output:
Welcome to HTML Learning
h5 Heading Tag
<h5>Welcome to HTML Learning</h5>
Output:
Welcome to HTML Learning
h6 Heading Tag
<h6>Welcome to HTML Learning</h6>
Output:
Welcome to HTML Learning
hr Tag
In HTML5, the <hr> tag is used to create thematic break.
In HTML 4, the <hr> tag is used to denote a horizontal rule.
<hr> is the empty element (no content).
<h1>Welcome to HTML Learning</h1>
<hr>
<h2>Welcome to HTML Learning</h2>
Output:
Welcome to HTML Learning
Welcome to HTML Learning
br Tag
<br> is used to break exisiting line.
<h1>Welcome to HTML Learning</h1>
<br>
<h2>Welcome to HTML Learning</h2>
Output:
Welcome to HTML Learning
Welcome to HTML Learning
« Previous
Next »
jQuery Programming Examples