what is the role of <hr> tag? what are the various attributes it can take?

Report
Question
789 views

The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag. Attributes of the <hr> tag are 1). Align- Used to specify the alignment of the horizontal rule. 2). noshade-Used to specify the bar without shading effect. 3). size- Used to specify the height of the horizontal rule. 4). width- Used to specify the width of the horizontal rule.

Please explain why do you think this question should be reported?

Report Cancel

<!DOCTYPE html>

<html>

    <body>
        
<p>There is a horizontal rule below this paragraph.</p>

        <!--HTML hr tag is used here-->
        <hr>
        
<p>This is a horizontal rule above this paragraph.</p>

    </body>    

</html>                    

 

Thread Reply

Leave an comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>