How do you display hyperlinks without an underline?
-
a {decoration:no underline}
-
a {underline:none}
-
a {text-decoration:none}
-
a {text-decoration:no underline}
In CSS, the text-decoration property controls underlines. To remove underlines from hyperlinks, use text-decoration: none. Option A uses the wrong property name, B uses underline which isn't a valid property, and D uses no underline instead of the keyword none.
The correct CSS is 'a { text-decoration: none; }'. text-decoration is the actual CSS property controlling underline/overline/strikethrough on text, and 'none' removes any decoration, including the default underline on anchor links. 'decoration:no underline' and 'underline:none' aren't valid CSS properties/values — 'decoration' isn't a property name and 'underline' isn't a boolean toggle. 'text-decoration:no underline' also isn't valid syntax; the value must be a single keyword like none, underline, overline, or line-through, not a two-word phrase. So only the exact property/value pairing text-decoration:none is syntactically correct.