Mark the term being defined.
Acceptance criteria
- 1.Mark the term being defined.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <dfn> 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 identifies the defining instance of a term or concept within a document. It is used the first time a term appears, usually alongside its explanation. Browsers may style it in italics by default, but the real purpose is semantic — helping search engines, accessibility tools, and documentation systems understand term definitions.” .
1.Define a termexercise · easy · 10 min
Mark the term being defined.
Passes when: Mark the term being defined.
2.Add the full formexercise · easy · 10 min · practice plan
Give the definition a title attribute.
Passes when: Give the definition a title attribute.
3.Define in a listexercise · easy · 10 min · practice plan
Mark the defined term inside a list item.
Passes when: Mark the defined term inside a list item.
4.Two definitionsexercise · easy · 10 min · practice plan
Define two terms in one paragraph.
Passes when: Define two terms in one paragraph.
5.A defined term in a glossaryexercise · medium · 10 min · practice plan
Use a definition inside a description list.
Passes when: Use a definition inside a description list.
6.Fix the term left unmarkedbug fix · easy · 8 min
The word being defined should use dfn.
Passes when: The word being defined should use dfn.
7.Fix the missing full formbug fix · easy · 8 min · practice plan
An abbreviation being defined needs its expansion.
Passes when: An abbreviation being defined needs its expansion.
8.Fix italics used for a definitionbug fix · easy · 8 min · practice plan
The defined term is dfn.
Passes when: The defined term is dfn.
9.Fix the second term not markedbug fix · easy · 8 min · practice plan
Both words are being defined here.
Passes when: Both words are being defined here.
10.Fix the definition in the wrong halfbug fix · easy · 8 min · practice plan
The term goes in dt, not dd.
Passes when: The term goes in dt, not dd.
Between them these tasks cover Defining terms, title attribute and Glossaries.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.