when should I use <u> and when <ins>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

when should I use <u> and when <ins>?

in output both are same, just underline the txt....

8th Sep 2016, 2:06 PM
udipta
udipta - avatar
4 Answers
+ 8
In practice, the effect is mostly the same, except that ins tags are ignored by some old browsers. Some exotic browser could use different rendering. I have not seen any evidence of any browser, search engine, or any other relevant software make any distinction between the two; their “semantic difference” has no practical impact. However, I would not use ins for anything except inserted text in some sense, just because some future browsers might treat it in some way that makes sense for inserted text but not otherwise. And there would be no tangible benefit from using ins just for underlining: u is shorter markup and more widely supported. Then again, situations where you should underline text, except links, on web pages are rare. Why not use it on your CSS style? :) text-decoration: underline;
8th Sep 2016, 2:58 PM
Scotti
Scotti - avatar
0
#Scotti wht do you mean by rendering Can you clearly meaningful it?
17th Mar 2018, 5:39 PM
Sajan Grover
Sajan Grover - avatar
- 1
underline
10th Sep 2016, 12:13 PM
Asad Khan
Asad Khan - avatar
- 2
when you go stop doing this
12th Sep 2016, 12:56 PM
Cengizhan
Cengizhan - avatar