Use blockquote for a multi-line quote.
Acceptance criteria
- 1.Use blockquote for a multi-line quote.
HTML Tutorial · HTML Text and Links
These 10 tasks go with the HTML Quotations & Citations 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: “HTML provides several tags to display quoted text , citations , and references properly. These tags give meaning and context to text quotes, making your content more readable and semantically correct for browsers and search engines.” .
1.Add a long quotationexercise · easy · 10 min
Use blockquote for a multi-line quote.
Passes when: Use blockquote for a multi-line quote.
2.Add an inline quotationexercise · easy · 10 min · practice plan
Use q for a short in-line quote.
Passes when: Use q for a short in-line quote.
3.Cite the sourceexercise · easy · 10 min · practice plan
Use cite for the title of the work.
Passes when: Use cite for the title of the work.
4.Attribute the quotationexercise · easy · 10 min · practice plan
Add a cite attribute to the blockquote.
Passes when: Add a cite attribute to the blockquote.
5.Expand an abbreviationexercise · medium · 10 min · practice plan
Use abbr with a title to expand HTML.
Passes when: Use abbr with a title to expand HTML.
6.Fix the indented divbug fix · easy · 8 min
A quotation should use blockquote, not an indented div.
Passes when: A quotation should use blockquote, not an indented div.
7.Fix the manual quote marksbug fix · easy · 8 min · practice plan
An inline quote should use q, which adds the marks.
Passes when: An inline quote should use q, which adds the marks.
8.Fix italics used for a titlebug fix · easy · 8 min · practice plan
A work's title belongs in cite.
Passes when: A work's title belongs in cite.
9.Fix the missing abbreviation titlebug fix · easy · 8 min · practice plan
Without a title the expansion is lost.
Passes when: Without a title the expansion is lost.
10.Fix the source in the wrong placebug fix · easy · 8 min · practice plan
The source URL belongs in the cite attribute.
Passes when: The source URL belongs in the cite attribute.
Between them these tasks cover blockquote, q, cite and abbr.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.