+ 1
Why was removed underline tag <u>
in html we can see <u> and <ins> are both work as same. so which is best in both.
4 Respostas
+ 5
<u> and <ins> use for different purpose though they bring same result
<u> is mainly use to underline texts and
<ins> use to declare the Text that has been inserted after <del>(deleting) texts
+ 2
thanku all of you
+ 1
because you can personalize the appearance with CSS, which was mean for that
+ 1
So to rephrase earlier posts in this thread, use <ins> if your use case lines up with the intended meaning behind <ins> (as per Shudarshan Rai👑 ) and use CSS "text-decoration: underline;" if you just want the formatting / styling /appearance (as per Xavier Heugue ).
"The <u> element was deprecated in HTML 4.01. (the <u> element was used to define underlined text).
The <u> element is redefined in HTML5, to represent text that should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese."
https://www.w3schools.com/tags/tag_u.asp
I try to avoid using <u>, generally.