![]() |
VOOZH | about |
In this article, we will create a complete horizontal line space using HTML. To create the horizontal line space, we will use the <hr> tag.
The <hr> tag stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag.
Syntax:
<hr>
Attributes: The following attributes with their values are described below:
Approach: In the below example, we will create two paragraph elements containing some content and add a <hr> tag between these two paragraph elements to create a horizontal line space.
Example: In this example, we will use <hr> for creating a horizontal line.
Output:
👁 Image