Mark an inline code fragment.
Acceptance criteria
- 1.Mark an inline code fragment.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <tt> 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 stands for “teletype text.” It was used to display text in a monospaced (fixed-width) font , resembling the output of old teletype machines. This tag is deprecated in HTML5 , and developers should use CSS or the tag instead.” .
1.Mark up codeexercise · easy · 10 min
Mark an inline code fragment.
Passes when: Mark an inline code fragment.
2.Mark up typed inputexercise · easy · 10 min · practice plan
Mark what the user should type.
Passes when: Mark what the user should type.
3.Mark up outputexercise · easy · 10 min · practice plan
Mark sample output from a program.
Passes when: Mark sample output from a program.
4.Mark up a variableexercise · easy · 10 min · practice plan
Mark a variable name in prose.
Passes when: Mark a variable name in prose.
5.A command with its outputexercise · medium · 10 min · practice plan
Show a command and the output it prints.
Passes when: Show a command and the output it prints.
6.Fix the tt elementbug fix · easy · 8 min
tt is obsolete; inline code is the code element.
Passes when: tt is obsolete; inline code is the code element.
7.Fix code used for a keystrokebug fix · easy · 8 min · practice plan
Keys the user presses are kbd.
Passes when: Keys the user presses are kbd.
8.Fix code used for program outputbug fix · easy · 8 min · practice plan
Output from a program is samp.
Passes when: Output from a program is samp.
9.Fix italics used for a variablebug fix · easy · 8 min · practice plan
A variable name is the var element.
Passes when: A variable name is the var element.
10.Fix the output not marked upbug fix · easy · 8 min · practice plan
The printed result should be samp.
Passes when: The printed result should be samp.
Between them these tasks cover Monospace text, code and kbd and samp.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.