Centre content with a class instead of the center element.
Acceptance criteria
- 1.Centre content with a class instead of the center element.
HTML Tutorial · HTML References
These 10 tasks go with the Deprecated Tags 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: “As HTML evolved, many tags that were once common became deprecated — meaning they are no longer recommended for use in modern web development. Deprecated tags may still work in some browsers for backward compatibility, but they are not supported in HTML5 and can cause SEO and accessibility issues .” .
1.Replace centerexercise · easy · 10 min
Centre content with a class instead of the center element.
Passes when: Centre content with a class instead of the center element.
2.Replace fontexercise · easy · 10 min · practice plan
Style text with a class instead of the font element.
Passes when: Style text with a class instead of the font element.
3.Replace bigexercise · easy · 10 min · practice plan
Use a heading where big was used for prominence.
Passes when: Use a heading where big was used for prominence.
4.Replace strikeexercise · easy · 10 min · practice plan
Use del for removed text.
Passes when: Use del for removed text.
5.Replace ttexercise · medium · 10 min · practice plan
Use code for a command instead of tt.
Passes when: Use code for a command instead of tt.
6.Fix the center elementbug fix · easy · 8 min
center was removed; centre with CSS.
Passes when: center was removed; centre with CSS.
7.Fix the font elementbug fix · easy · 8 min · practice plan
font was removed; style with a class.
Passes when: font was removed; style with a class.
8.Fix the big elementbug fix · easy · 8 min · practice plan
big was removed; prominence is a heading.
Passes when: big was removed; prominence is a heading.
9.Fix the strike elementbug fix · easy · 8 min · practice plan
strike was removed; a removal is del.
Passes when: strike was removed; a removal is del.
10.Fix the tt elementbug fix · easy · 8 min · practice plan
tt was removed; inline code is the code element.
Passes when: tt was removed; inline code is the code element.
Between them these tasks cover Removed elements, Modern replacements and CSS over markup.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.