0
0
CSSmarkup~5 mins

Text decoration in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the CSS property text-decoration do?
It adds visual effects like underline, overline, or line-through to text.
Click to reveal answer
beginner
Name three common values for text-decoration.
underline, overline, line-through
Click to reveal answer
beginner
How do you remove all text decoration from a link?
Use text-decoration: none; to remove underline or other decorations.
Click to reveal answer
intermediate
What is the difference between text-decoration-line and text-decoration?
text-decoration-line sets the type of line (underline, overline, etc.), while text-decoration is a shorthand that can set line, style, and color.
Click to reveal answer
intermediate
How can you change the color of an underline using CSS?
Use text-decoration-color to set the underline color separately from the text color.
Click to reveal answer
Which CSS property removes the underline from a link?
Atext-decoration: underline;
Btext-decoration: none;
Ctext-decoration-color: transparent;
Dtext-decoration-style: none;
What value of text-decoration-line adds a line above the text?
Aoverline
Bunderline
Cline-through
Dnone
Which property controls the style of the text decoration line (like dashed or dotted)?
Atext-decoration-thickness
Btext-decoration-color
Ctext-decoration-line
Dtext-decoration-style
How do you make a line-through effect on text?
Atext-decoration-line: line-through;
Btext-decoration-line: underline;
Ctext-decoration: none;
Dtext-decoration-style: line-through;
Which shorthand property can set line, style, and color of text decoration?
Atext-decoration-style
Btext-decoration-line
Ctext-decoration
Dtext-decoration-color
Explain how to add and customize an underline on text using CSS.
Think about line type, color, and style properties.
You got /3 concepts.
    Describe how to remove default link underlines and why you might want to do that.
    Consider user experience and design choices.
    You got /3 concepts.