HTML5 > Structures

Expired text in HTML5

How to represent the expired text/content on webpage in HTML5?


By using <s> tag we can represent the expired text or content in the webpage, and the text inside the <s> tag strikess off by the browser in the webpage.

<body>
    s tag is used to represent the expired text or content.
    <p>
        <s>Frame</s> was used in HTML4, now it is not.
    </p>    
</body>

In the above code snippet the word 'Frame' is placed in <s> tag.

Output

Notice that the text inside the <s> tag represents the expired text and it is striked off by the browser.

 Views: 4359 | Post Order: 78



Write for us






Hosting Recommendations