Is this challenge doing <u> justice?

Tell us what’s happening:

I feel I’m html-semantics-poisoned today, but… should this challenge be describing the <u> tag the way it currently is?

MDN Web Docs warns about what the <u> tag represents:

This element used to be called the “Underline” element in older versions of HTML, and is still sometimes misused in this way. To underline text, you should instead apply a style that includes the CSS text-decoration property set to underline .

The usage notes section also seems to suggest the tag shouldn’t be thought of as merely a mean to underline texts.




Your code so far
N/A

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.81.

Challenge: Use the u Tag to Underline Text

Link to the challenge:

You are correct, the semantic meaning of the <u> element has changed over time and doesn’t really mean what the challenge says it means any more. It may have been considered the “underlining” element back when the challenge was originally created and it just hasn’t been updated. It would probably be best to just remove the challenge completely since the <u> tag is used rarely nowadays except in very specific situations (or at least that’s the way it should be :slight_smile: ).

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.