In HTML <h> tag can be described as a title or a subtitle that you want to display on the webpage.
These headings are defined with the <h1> to <h6> tags and displayed on the browser in the bold format and size of the text depending on the number of head tag that is used.
The <h1>tag stands for the most important heading and the <h6> stands for the least important heading. HTML headings hightlight important topics and the document structure thus improving user engagement.
HTML Headings help the search engine to understand and index the structure of the web page.
Size of Headings
You can change the default size of the headings. Set a size of any heading with the style attribute, using the CSS font-size property.
HTML Horizontal Rule:
The <hr> tag defines a sectional break in an HTML page and it creates horizontal line.
The <hr> tag is a block-level element, and element after it is transferred to another line.
HTML Head Element:
The <head> element is the container for all the head elements, which provide machine-readable information about the document (metadata), or reference to other resources that are required for the document to display or behave correctly in a web browser.
The location of <head> element is between the <html> tag and the <body> tag.
The HTML elements that can be used inside the <head> element are: <title>, <base>, <link>, <style>, <meta>, <script> and the <noscript> element.
How to View HTML Source?
View HTML Source Code: To view, the HTML source code right-click on the HTML page whose source code you want to view and select the “View Page Source”. It will open a window that contains the HTML source code of the page.
Inspect an HTML Element: To inspect an HTML element right-click on an element or a blank area and choose “Inspect” or “Inspect Element” to see what elements are made up of.