Mark a command as code inside a sentence.
Acceptance criteria
- 1.Mark a command as code inside a sentence.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <code> 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 is used to display a fragment of computer code in a monospace (fixed-width) font. It is typically used for inline code, not for large code blocks.” .
1.Mark inline codeexercise · easy · 10 min
Mark a command as code inside a sentence.
Passes when: Mark a command as code inside a sentence.
2.Name a functionexercise · easy · 10 min · practice plan
Mark a function name as code.
Passes when: Mark a function name as code.
3.A code blockexercise · easy · 10 min · practice plan
Put code inside a preformatted block.
Passes when: Put code inside a preformatted block.
4.Two code fragmentsexercise · easy · 10 min · practice plan
Mark two commands in one sentence.
Passes when: Mark two commands in one sentence.
5.Code inside a listexercise · medium · 10 min · practice plan
Put a code fragment inside a list item.
Passes when: Put a code fragment inside a list item.
6.Fix the code left as plain textbug fix · easy · 8 min
A command should be marked as code.
Passes when: A command should be marked as code.
7.Fix the italics used for a function namebug fix · easy · 8 min · practice plan
Code is the code element, not italics.
Passes when: Code is the code element, not italics.
8.Fix the code block losing its spacingbug fix · easy · 8 min · practice plan
A multi-line block needs pre around the code.
Passes when: A multi-line block needs pre around the code.
9.Fix the second command left plainbug fix · easy · 8 min · practice plan
Both commands are code.
Passes when: Both commands are code.
10.Fix the code outside the list itembug fix · easy · 8 min · practice plan
The command belongs inside the step.
Passes when: The command belongs inside the step.
Between them these tasks cover Inline code, code in pre and Technical writing.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.