When writing in HTML, the
tag is a block element used to denote a thematic break (horizontal line) on a web page. It is useful when you are changing a topic or want to separate content on a page. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
Example of
code
Here is a heading about one subject
Here is a paragraph about a different subject.
Example result
Here is a heading about one subject
Here is a paragraph about a different subject.
- Example of
code - Example result
- Deprecated attributes
- Compatibility
- Related information
Deprecated attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the deprecated unique HTML attributes for the
tag, and a description of each. While these attributes may work with the some versions of HTML, they will eventually be phased out. You should use CSS to adjust the appearance and position of the
element.
Compatibility
Browser, Class, Compatibility, Web design terms
Related information
- How to create a colored border around text with HTML and CSS.
- HTML and web design help and support.