HTML CSS examples for HTML Tag:s
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
Item | Value |
---|---|
Element | s |
Local Attributes | None |
Tag Style | Start and end tag required |
New in HTML5 | No |
Changes in HTML5 | HTML5 s element has the semantic meaning |
Style Convention
s {
text-decoration: line-through;
}
Using the s Element
<!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>