When writing in HTML, the tag was an inline element used to change certain qualities of a block of text on a web page. It was useful for changing a font’s size, face, and color. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
Example of code
Words and things.Text that looks different.I am a sentence!
Example result
Words and things. Text that looks different. I am a sentence!
The tag is not supported going forward; CSS should be used instead.
- 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; all tags support standard attributes. The tag is deprecated, but at one time it utilized the unique attributes contained in the following table.
Compatibility
*Until it is removed in a future version of HTML
Block of text, Browser, Compatibility, Container tag, Font, Web design terms
Related information
- How to change the font type, size, and color on a web page.
- HTML and web design help and support.