Skip to main content

Command Palette

Search for a command to run...

Horizontal tag

Published
•1 min read•View as Markdown
Horizontal tag

In the html document, the horizontal tag element represents a horizontal line that is used to visually separate the content. It is an empty element which also means it does not have any content and there is no requirement for any closing tag.

Here is an example of how to use the horizontal tag in an html document


<p>This is some text.</p>
<hr>
<p>This is some more text, separated from the previous paragraph by a horizontal line.</p>

Interview-HTML

Part 18 of 18

In this series I will try to answer questions of HTML interviews in most simplest fashion. This will give user the chance of understanding the interview question of HTML in a conceptual manner.

Start from the beginning

What is an HTML?

HTML is the short form of Hypertext Markup Language. It is used by the developer for the development of the raw structure of the web page. Note: - The extension which are used by the developer for saving HTML pages are .htm and .html.