Overview - Figure component
What is it?
The Figure component in Bootstrap is a simple way to display images with optional captions. It groups an image and its caption together in a clean, styled block. This helps keep images and their descriptions visually connected on a webpage. It uses semantic HTML elements to improve accessibility and structure.
Why it matters
Without a clear way to pair images with captions, websites can look messy and confuse users about what the image represents. The Figure component solves this by providing a consistent style and structure, making content easier to understand and more visually appealing. This improves user experience and accessibility, especially for screen readers.
Where it fits
Before learning the Figure component, you should understand basic HTML image tags and captions. After this, you can explore more advanced Bootstrap components like cards or modals that also display images with text. Knowing CSS basics helps to customize the Figure component further.