Multiple choice technology web technology

How do you display hyperlinks without an underline?

  1. a {text-decoration:no underline}

  2. a {text-decoration:none}

  3. a {underline:none}

  4. a {decoration:no underline}

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The text-decoration property controls underline on links. Setting 'text-decoration:none' removes the default underline. Option A is incorrect because 'no underline' is not a valid value (should be 'none'). Option C uses the wrong property name 'underline', and Option D incorrectly uses 'decoration' instead of 'text-decoration'.