The HR tag in HTML specifies a thematic break in the webpage. It separates the paragraph-level elements by a visible horizontal line. It is an unpaired tag.
When you insert HR tag in HTML, the browser displays a line in its position. It is called thematic break, that means, change in topic or, in other words, change in theme.
You can observe in our tutorials also, when we move from one heading to another, we use hr tag between them. It is due to change of topic.
HTML is a language for describing web pages.
HR tag is used to draw a horizontal line.
The HR tag supports some global attributes through which you can change its styling a little bit. The attributes define color, size, alignment, etc. Let's see them one by one:
align=left/center/right. It horizontally aligns the position of hr line on the webpage. It only works when the line's width is smaller than its parent container.
noshade, then only a solid grey colored line will display. It won't have any effect if you have specified a color for the line.