Does S tag and line-through tags bring the same result ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

25th Mar 2019, 6:40 PM
tharindu daminda
tharindu daminda - avatar
1 Answer
+ 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.
25th Mar 2019, 6:56 PM
Victor Andersson
Victor Andersson - avatar