<hr> element in HTML adds a break or a line that represents a thematic break in the text. For example, the
<hr> element can signify a change in topic.
<hr>element should not be used to represent different sections in a document. Different sections can be indicated by the
The following table describes multiple attributes of the
Note: The following attributes are obsolete in HTML5 but can be used with style sheets.
||This attribute accepts three values:
||This attribute accepts a boolean value and renders the break in a 3D fashion if it is not present; otherwise, it renders a plain line.|
||This attribute accepts the number of pixels to specify the height of the break.|
||This attribute accepts the number of pixels or a percentage to specify the width of the break.|
<hr> element supports global events and attributes.
The following code demonstrates how to use the
The paragraph starting at line 7 explains Regression and the paragraph starting at line 15 explains Classification. The two topics are divided by a
View all Courses