Caption a figure containing an image.
Acceptance criteria
- 1.Caption a figure containing an image.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <figcaption> 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 defines a caption or description for a element. It provides context to the media (such as an image, chart, or video) grouped inside the . Usually, it appears either at the top or bottom of the content inside .” .
1.Add a captionexercise · easy · 10 min
Caption a figure containing an image.
Passes when: Caption a figure containing an image.
2.Caption firstexercise · easy · 10 min · practice plan
Put the caption above the image instead of below.
Passes when: Put the caption above the image instead of below.
3.A descriptive captionexercise · easy · 10 min · practice plan
Write a caption that adds information the image cannot.
Passes when: Write a caption that adds information the image cannot.
4.Caption a table figureexercise · easy · 10 min · practice plan
Caption a figure that holds a table.
Passes when: Caption a figure that holds a table.
5.A captioned code sampleexercise · medium · 10 min · practice plan
Caption a figure containing a code block.
Passes when: Caption a figure containing a code block.
6.Fix the caption in a small tagbug fix · easy · 8 min
A figure caption has its own element.
Passes when: A figure caption has its own element.
7.Fix the caption left outsidebug fix · easy · 8 min · practice plan
The caption must sit inside the figure.
Passes when: The caption must sit inside the figure.
8.Fix the caption repeating the alt textbug fix · easy · 8 min · practice plan
A caption should add something the alt text does not.
Passes when: A caption should add something the alt text does not.
9.Fix the table caption used for the figurebug fix · easy · 8 min · practice plan
The figure's own caption is a figcaption.
Passes when: The figure's own caption is a figcaption.
10.Fix the missing captionbug fix · easy · 8 min · practice plan
The code sample is unexplained.
Passes when: The code sample is unexplained.
Between them these tasks cover Captions, Placement and Describing figures.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.