About 3,180,000 results
Open links in new tab
  1. 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 …

  2. How to add horizontal line in HTML - GeeksforGeeks

    Jun 17, 2025 · These lines help separate different sections of content, making it easier for users to read and understand the information presented. In this guide, we’ll explore two effective methods to add …

  3. <hr>: The Thematic Break (Horizontal Rule) element - HTML | MDN

    Aug 13, 2025 · While it may still be displayed as a horizontal rule in visual browsers, this element is now defined in semantic terms, rather than presentational terms, so if you wish to draw a horizontal line, …

  4. HTML Horizontal Line – HR Tag Example - freeCodeCamp.org

    Jan 26, 2022 · Starting in HTML5, we now need to attach a slash to the tag of an empty element. So, instead of having just <hr>, you should make it <hr />. In browsers, the <hr /> tag is displayed as a …

  5. How to add a horizontal line in HTML with the hr tag - IONOS CA

    1 day ago · 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. It is defined with the HTML <hr> tag …

  6. 2 Easy Ways to Create and Style a Horizontal Line in HTML - wikiHow

    Mar 10, 2025 · Adding a horizontal line in HTML is really easy. You can also style the horizontal line using CSS or in-line HTML attributes. This allows you to change the line thickness, alignment, or …

  7. HTML for Horizontal Line: The Tag Explained - Life in Coding

    The <hr> tag is a simple yet effective way to add horizontal lines in HTML. Whether you’re separating paragraphs, sections, or topics, this tag brings structure and clarity to your web content.

  8. HTML Horizontal Line ( Tag) - Programiz

    In this tutorial, you'll learn about the HTML Horizontal Line with the help of examples.

  9. HTML Horizontal Line (hr tag)

    In HTML, the <hr> tag is used to create a horizontal line, also known as a horizontal rule. It's a simple yet useful element that can be used to visually separate content on a webpage. In this article, we'll …

  10. HTML Tag: Syntax, Usage, and Best Practices

    By default, the <hr> tag is displayed as a thin, horizontal line, but with CSS, you can change its color, thickness, style, and width. hr { . border: none; . height: 2 px; . background - color: # 333; . width: 50%; .