When writing in HTML, the tag is an inline element used to create a strikethrough on a section of text. It is useful for designating text that is no longer relevant or correct in some way. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
Example of code
We have six puppies left for sale.
We have five puppies left for sale.
Example result
We have six puppies left for sale.
To define replaced or deleted text, use and tags instead of .
- Example of
code - Example result
- Attributes
- Compatibility
- Related information
We have five puppies left for sale.
Attributes
In HTML tags, attributes dictate 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 strike tag, Web design terms
Related information
- How to change the text line spacing.
- How to center text in HTML.
- HTML and web design help and support.