Write x squared using a superscript.
Acceptance criteria
- 1.Write x squared using a superscript.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <sup> 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 superscript text , which appears smaller and slightly above the baseline of normal text. It is commonly used in mathematical powers, chemical notation, footnotes, or references . It is an inline element .” .
1.Write an exponentexercise · easy · 10 min
Write x squared using a superscript.
Passes when: Write x squared using a superscript.
2.An ordinalexercise · easy · 10 min · practice plan
Write 4th with a superscript ending.
Passes when: Write 4th with a superscript ending.
3.A footnote markerexercise · easy · 10 min · practice plan
Add a superscript footnote number.
Passes when: Add a superscript footnote number.
4.Two exponentsexercise · easy · 10 min · practice plan
Write two powers in one line.
Passes when: Write two powers in one line.
5.A footnote inside a quoteexercise · medium · 10 min · practice plan
Put a superscript marker inside a blockquote.
Passes when: Put a superscript marker inside a blockquote.
6.Fix the caret used for a powerbug fix · easy · 8 min
Use a superscript, not a caret character.
Passes when: Use a superscript, not a caret character.
7.Fix the subscript used for an ordinalbug fix · easy · 8 min · practice plan
Ordinal endings sit above the line.
Passes when: Ordinal endings sit above the line.
8.Fix the bracketed footnotebug fix · easy · 8 min · practice plan
A footnote marker is a superscript.
Passes when: A footnote marker is a superscript.
9.Fix the missing second powerbug fix · easy · 8 min · practice plan
Both terms are squared.
Passes when: Both terms are squared.
10.Fix the marker outside the quotebug fix · easy · 8 min · practice plan
The footnote marker belongs in the quoted line.
Passes when: The footnote marker belongs in the quoted line.
Between them these tasks cover Superscript, Exponents and Ordinals.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.