Underline #text.
Acceptance criteria
- 1.Underline #text.
CSS Tutorial · CSS Text & Fonts
These 10 tasks go with the CSS Text Decoration chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “The CSS Text Decoration property is used to add or remove decorative lines from text.” Read the chapter.
1.Underline the textexercise · easy · 10 min
Underline #text.
Passes when: Underline #text.
2.Strike the text throughexercise · easy · 10 min · practice plan
Draw a line through #text.
Passes when: Draw a line through #text.
3.Make it wavyexercise · easy · 10 min · practice plan
Give #text a wavy underline.
Passes when: Give #text a wavy underline.
4.Colour the underlineexercise · easy · 10 min · practice plan
Underline #text in red.
Passes when: Underline #text in red.
5.Thicken and offset itexercise · medium · 10 min · practice plan
A 3px underline sitting 4px below the text.
Passes when: A 3px underline sitting 4px below the text.
6.Fix the plural propertybug fix · easy · 8 min
The property is text-decoration.
Passes when: The property is text-decoration.
7.Fix the invalid valuebug fix · easy · 8 min · practice plan
The value is line-through.
Passes when: The value is line-through.
8.Fix the style with no linebug fix · easy · 8 min · practice plan
A decoration style needs a line to draw.
Passes when: A decoration style needs a line to draw.
9.Fix the wrong colour propertybug fix · easy · 8 min · practice plan
The underline should be red while the text stays blue.
Passes when: The underline should be red while the text stays blue.
10.Fix the missing unitbug fix · easy · 8 min · practice plan
A thickness needs a unit.
Passes when: A thickness needs a unit.
Between them these tasks cover Underlines and strikethrough, Decoration style and color and Thickness and offset.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.