Mark a variable name in prose.
Acceptance criteria
- 1.Mark a variable name in prose.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <var> 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 define a variable in a mathematical expression or in a programming context. The content inside the element is typically displayed in italic by default in most browsers to distinguish it from regular text. It helps semantically indicate that the enclosed text is a variable name.” .
1.Mark a variableexercise · easy · 10 min
Mark a variable name in prose.
Passes when: Mark a variable name in prose.
2.Mark a maths variableexercise · easy · 10 min · practice plan
Mark the variable in an equation.
Passes when: Mark the variable in an equation.
3.Two variablesexercise · easy · 10 min · practice plan
Mark both variables in an equation.
Passes when: Mark both variables in an equation.
4.A variable in a listexercise · easy · 10 min · practice plan
Mark a variable inside a list item.
Passes when: Mark a variable inside a list item.
5.A described formulaexercise · medium · 10 min · practice plan
Write a formula marking both variables.
Passes when: Write a formula marking both variables.
6.Fix the variable left plainbug fix · easy · 8 min
A variable name should be marked up.
Passes when: A variable name should be marked up.
7.Fix italics used for a variablebug fix · easy · 8 min · practice plan
A variable is var, not plain italics.
Passes when: A variable is var, not plain italics.
8.Fix the second variable not markedbug fix · easy · 8 min · practice plan
Both letters are variables.
Passes when: Both letters are variables.
9.Fix code used for a variablebug fix · easy · 8 min · practice plan
A variable name in prose is var, not code.
Passes when: A variable name in prose is var, not code.
10.Fix the formula with one variable markedbug fix · easy · 8 min · practice plan
Both dimensions are variables.
Passes when: Both dimensions are variables.
Between them these tasks cover Variables, Maths and var vs code.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.