0
Does S tag and line-through tags bring the same result ?
Line through is a substitute for s tag. S tag can be used when inline css is needed while line-through tag can be used when external css is used
1 Antwort
+ 3
The visual presentation of <s>, <del> and <span> with css strike through are the same. However:
There are two tags that perform strike through, its the <s> tag for content that is no longer correct, accurate or relevant. There is also the <del> tag that is used to represent replaced or deleted text.
Thats what they’re used for, if you want strike through but those cases do not apply, use a <span> tag and define a css rule to achieve the same result.
Its not of great importance but that’s the use cases that they’re meant for.
Hope it helped.