In this article, we will know the HTML <strike> tag, along with understanding its implementation through the example. The <strike> tag defines a strike or line through Text. This tag creates a cut line in the text. This tag is depreciated from HTML 5. Now, the <del> tag is used instead of this 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 Geeks!
<!DOCTYPE html> < html >
< body >
<!-- Strike Tag -->
< h2 >
Welcome To GeeksforGeeks
</ h2 >
< strike >
Hi Geeks!
</ strike >
</ body >
</ html >
|
Output:
Example 2: Below example illustrates the <strike> tag in HTML.
<!DOCTYPE html> < html >
< body >
< h1 >
Welcome to GeeksforGeeks
</ h1 >
< h2 >
strike Tag
</ h2 >
<!-- Html strike tag -->
< strike >
GeeksforGeeks
</ strike >
</ body >
</ html >
|
Output:
Supported Browsers:
- Google Chrome 1
- Edge 12
- Firefox 1
- Opera 15
- Safari 4