← BYTES
HTML·Intermediate·Ref: 2.2.17
What is the purpose of pairing `<figure>` and `<figcaption>` elements?
Have a question about this video? Mention reference 2.2.17 when you contact us.
a.They create a floating sidebar with no semantic relationship to the main content
b.figcaption can only contain plain text, never links or other inline elements
c.`<figure>` groups self-contained content (an image, diagram, or code snippet) together with `<figcaption>`, its associated caption, so assistive technology and search engines understand the two are semantically linked, even if the figure is later moved elsewhere in the layout
d.figure and figcaption are purely decorative with identical behavior to a plain <div>
Unlike a generic <div> wrapping an image and a caption <p> with no formal relationship between them, <figure>/<figcaption> explicitly declares that the caption describes the figure's content -- a semantic link screen readers can announce, and one that survives the figure being referenced or relocated independently of its surrounding prose.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES2217#HTML