+ 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.

7th Oct 2018, 6:54 AM
Rohit Kumar
Rohit Kumar - avatar
4 Réponses
+ 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
7th Oct 2018, 7:16 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
thanku all of you
11th Oct 2018, 2:32 PM
Rohit Kumar
Rohit Kumar - avatar
+ 1
because you can personalize the appearance with CSS, which was mean for that
7th Oct 2018, 7:13 AM
Xavier Heugue
Xavier Heugue - avatar
+ 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.
7th Oct 2018, 7:53 AM
Janning⭐
Janning⭐ - avatar