HTML Headings are define using <h1 to <h6> tags, <h1> defines largest heading and <h6 defines smallest heading.
Let’s see how to use the heading tag.
<h1>Heading 1</h1> <h2>Heading 2</h2> <h3>Heading 3</h3> <h4>Heading 4</h4> <h5>Heading 5</h5> <h6>Heading 6</h6>
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
HTML Horizontal Rules: the <hr> tag defines a thematic break in an HTML page and is most often displayed as a horizontal rule. <hr> element is used to separate content in an HTML page
Example:
<h1>This is heading 1</h1> <p>This is some text.</p> <hr> <h2>This is heading 2</h2> <p>This is some other text.</p> <hr>
HTML <head> Element:
The <head> element is a container for metadata. HTML metadata is data about the HTML document. Metadata is not displayed. <head> element is placed between the <html> tag and the <body> tag.
Example:
<!DOCTYPE html> <html> <head> <title>My First HTML</title> <meta charset="UTF-8"> </head> <body> <p> learnsimpli is free online tutorial</p> </body> </html>
One thought on “HTML HEADINGS”
Comments are closed.