Articles → HTML → Hr Tag In HTML
Hr Tag In HTML
Purpose
Syntax
Example
<html>
<head>
<title>hr demo</title>
</head>
<body>
<hr />
</body>
</html>
Try It
Output
Attributes
Attribute Name | Value | Description |
---|
Align | left, right and center | Specifies the alignment of the horizontal line |
Noshade | | Removes shading from the horizontal line |
Size | Pixels or % | Specifies the height of the horizontal line. |
Width | Pixels or % | Specifies the width of the horizontal line. |
<html>
<head>
<title>hr demo</title>
</head>
<body>
<hr noshade />
</body>
</html>
Try It
<html>
<head>
<title>hr demo</title>
</head>
<body>
<hr size="10" width="200" align="center" />
</body>
</html>
Try It
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
Yes | Yes | Yes | Yes | Yes | Yes |