HTML | <hr> width Attribute (original) (raw)
Last Updated : 28 May, 2019
The HTML
width attribute is used to specify the width of the horizontal line in terms of pixels or percent.Syntax:
Attribute Values:
- pixels: It sets the width of
attribute in terms of pixels. - %: It sets the width of
attribute in terms of percentage (%).
Note: The
width attribute is not supported by HTML 5.Example:
html `
HTML hr width AttributeGeeksforGeeks
Computer science portal
`
Output:
Supported Browsers: The browser supported by HTML
width attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera