From the course: Practical HTML for No-Coders

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Creating figures and figure captions

Creating figures and figure captions

From the course: Practical HTML for No-Coders

Creating figures and figure captions

- [Instructor] In our previous image example, we had an image with text nearby but not necessarily directly associated with that image. It's also possible to make figures in our HTML. Figures consist of two pieces of information that go together as a unit. Most commonly, that's an image plus a caption for that image. Let's look at this in a little bit more depth. So here in our starting CodePen, we have exactly the same thing. We have our image, already given it to you with your alt text, and then underneath, we have some text that gives us a little bit more information. So the image is telling us that we have 75% of sales here are distributed over these five states in the following way. It doesn't actually mention that number 75%. That is an additional piece of information that is in the figure caption. So the way to present this information, the best way to do it, is to present it as a figure. Because…

Contents