Add a paragraph carrying a highlight class.
Acceptance criteria
- 1.Add a paragraph carrying a highlight class.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <font> Tag 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 tag was historically used to change the font face, size, and color of text in HTML. It is deprecated in HTML5 , and modern web design uses CSS ( font-family , font-size , color ) instead.” .
1.Style with a classexercise · easy · 10 min
Add a paragraph carrying a highlight class.
Passes when: Add a paragraph carrying a highlight class.
2.Style a spanexercise · easy · 10 min · practice plan
Wrap one word in a classed span.
Passes when: Wrap one word in a classed span.
3.Two styled wordsexercise · easy · 10 min · practice plan
Give two words the same class.
Passes when: Give two words the same class.
4.A styled headingexercise · easy · 10 min · practice plan
Give a heading a class rather than a font element.
Passes when: Give a heading a class rather than a font element.
5.A styled list itemexercise · medium · 10 min · practice plan
Give one list item a class.
Passes when: Give one list item a class.
6.Fix the font elementbug fix · easy · 8 min
font is obsolete; style with a class.
Passes when: font is obsolete; style with a class.
7.Fix the font used inlinebug fix · easy · 8 min · practice plan
Use a span with a class instead.
Passes when: Use a span with a class instead.
8.Fix the second word left unstyledbug fix · easy · 8 min · practice plan
Both words should carry the class.
Passes when: Both words should carry the class.
9.Fix the size attributebug fix · easy · 8 min · practice plan
The size attribute was removed; use a class.
Passes when: The size attribute was removed; use a class.
10.Fix the inline style used for a reusable lookbug fix · easy · 8 min · practice plan
A repeated look belongs in a class.
Passes when: A repeated look belongs in a class.
Between them these tasks cover Deprecated styling, Classes and Separation of concerns.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.