HTML <strike> Tag
Syntax:
<strike> Contents </strike>
Note: This tag is not supported in HTML5, instead of this tag, we can use HTML del Tag or HTML ins Tag or use CSS text-decoration property.
Example 1: In this example, we simply use a strike tag on the text Hi Beginner!
HTML
<!DOCTYPE html> < html > < body > <!-- Strike Tag --> < h2 > Welcome To w3wiki </ h2 > < strike > Hi Beginner! </ strike > </ body > </ html > |
Output:
Example 2: Below example illustrates the <strike> tag in HTML.
HTML
<!DOCTYPE html> < html > < body > < h1 > Welcome to w3wiki </ h1 > < h2 > strike Tag </ h2 > <!-- Html strike tag --> < strike > w3wiki </ strike > </ body > </ html > |
Output:
Supported Browsers:
- Google Chrome 1
- Edge 12
- Firefox 1
- Opera 15
- Safari 4
Contact Us