When writing in HTML, the tag is an inline element used to highlight a section of text. It is useful in many instances. For example, you could use it to mark text of special relevance to a visitor, like results of a recent search. 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 how you highlight text on your pages.
Example result
Here is how you highlight text on your pages.
- Example of code
- Example result
- Attributes
- Compatibility
- Related information
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the tag does not have any unique attributes, it does utilize all of the standard attributes.
Compatibility
Browser, Compatibility, Container tag, HTML em tag, HTML strong tag, Web design terms
Related information
- How to highlight text in color using HTML and CSS.
- HTML and web design help and support.