
HTML hr tag - W3Schools
The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic). The <hr> element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML …
How to add horizontal line in HTML - GeeksforGeeks
Jun 17, 2025 · In this approach, we will use the border-style property to create the horizontal line. You can use either the border-top property, which specifies the style of the top border, or the border …
HTML Horizontal Line – HR Tag Example - freeCodeCamp.org
Jan 26, 2022 · Since the <hr /> tag appears as a horizontal rule in browsers, you might be thinking of using it to draw a line. But you shouldn’t do this because the horizontal rule appears as is only …
2 Easy Ways to Create and Style a Horizontal Line in HTML - wikiHow
Mar 10, 2025 · Do you want to add a horizontal line to your web page? A horizontal line—also known as a horizontal rule—can be used to separate blocks of text or other content on your website. Adding a …
What is the right way to create a horizontal line with HTML and CSS ...
Only use <hr> if the line semantically denotes a thematic break. Do not use an <hr> if it's purely decorative; instead use a non-semantic element like a <div> and style it with CSS.
How to add a horizontal line in HTML with the hr tag - IONOS
Dec 16, 2025 · What is an HTML horizontal line? An HTML horizontal line is used to draw a visible and continuous dividing line between two paragraphs or other meaningful sections in an HTML document.
<hr>: The Thematic Break (Horizontal Rule) element - HTML | MDN
Jan 9, 2026 · Historically, the <hr> element has always been presented as a horizontal rule or line. While it may still be displayed as a horizontal rule in visual browsers, this element is now defined in …
How to add a line in HTML _ simple guide
Oct 16, 2025 · Learning how to add a line in HTML is one of the easiest and most useful skills. With just a few tags or CSS rules, you can insert horizontal lines or custom separators that match your design. …
HTML <hr> Tag - W3docs
The HTML <hr> tag is a block-level element that thematically and visually separates content on the site. Read about tag description, attributes, and see examples.
Horizontal lines | The HTML Shark
Horizontal lines on a page is done with the tag <HR>. Lines are usually just black, thin, solid lines, but they can be styled with color, thickness, width etc. and they can be dashed, dotted, etc.