Write H2O with a subscript.
Acceptance criteria
- 1.Write H2O with a subscript.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <sub> 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 in HTML is used to display subscript text , which appears smaller and slightly below the baseline of normal text. It is commonly used in mathematical formulas, chemical formulas, and footnotes . It is an inline element .” .
1.Write a chemical formulaexercise · easy · 10 min
Write H2O with a subscript.
Passes when: Write H2O with a subscript.
2.Carbon dioxideexercise · easy · 10 min · practice plan
Write CO2 with a subscript.
Passes when: Write CO2 with a subscript.
3.A variable indexexercise · easy · 10 min · practice plan
Write x with a subscript index of 1.
Passes when: Write x with a subscript index of 1.
4.Two subscriptsexercise · easy · 10 min · practice plan
Write a formula with two subscripts.
Passes when: Write a formula with two subscripts.
5.A formula in a listexercise · medium · 10 min · practice plan
Put a subscripted formula inside a list item.
Passes when: Put a subscripted formula inside a list item.
6.Fix the plain number in a formulabug fix · easy · 8 min
The 2 in H2O should be a subscript.
Passes when: The 2 in H2O should be a subscript.
7.Fix the superscript used for a formulabug fix · easy · 8 min · practice plan
Formula counts sit below the line.
Passes when: Formula counts sit below the line.
8.Fix the small tag used for an indexbug fix · easy · 8 min · practice plan
An index is a subscript, not small print.
Passes when: An index is a subscript, not small print.
9.Fix the missing second subscriptbug fix · easy · 8 min · practice plan
Both numbers are subscripts.
Passes when: Both numbers are subscripts.
10.Fix the formula outside the itembug fix · easy · 8 min · practice plan
The formula belongs inside the list item.
Passes when: The formula belongs inside the list item.
Between them these tasks cover Subscript, Formulas and Footnote markers.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.