-->

  • HTML HORIZONTAL RULES






    <hr>       HTML  


    What does <hr> HTML tag do ?


    In HTML5,  the <hr> tag defines a thematic break. In HTML 4.01, the <hr> tag represents a horizontal rule. However, the <hr> tag may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than presentational terms. All the layout attributes are removed in HTML5.





    The  <hr>  tag  defines a thematic break in all HTML pages, and is most often displayed as a horizontal rule.

    The <hr> element is used to seperate content ( for define a change ) in all HTML page.






    Display
             Block






    Example





    <!DOCTYPE html>
    <html>
    <body>

    <h1>This is above the line.</h1>
    <p>This is my first paragraph</p>
    <hr>

    <h2>This is below the line.</h2>
    <p>This is my another paragraph.</p>


    </body>
    </html>







    This is above the line.

    This is my first paragraph

    ------------------------------------------------------------------------------------------------------------------------

    This is below the line.

    This is my another paragraph.














    Chapter  Summary



    • <hr>     Defines a thematic change in content.



  • 0 comments:

    Post a Comment

    For Any Tech Updates, Hacking News, Internet, Computer, Technology and related to IT Field Articles Follow Our Blog.