<s> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:s

Introduction

You use the s element to denote inaccuracies or corrections.

The style convention is to display the text with a line drawn through it.

The s Element summary

ItemValue
Element s
Local AttributesNone
Tag Style Start and end tag required
New in HTML5No
Changes in HTML5 HTML5 s element has the semantic meaning

Style Convention

s {
   text-decoration: line-through;
}

Using the s Element

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body>
       It will cost <!-- w  w  w  . ja va2 s .c om-->
      <s>$1 each</s>
       $2 for 3.  
   </body>
</html>

Related Tutorials