The Figure Element . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

The Figure Element .

There unfortunately isn't any easy or semantic way to associate the caption, wrapped in a paragraph tag, with the image element itself. HTML5 rectifies this, with the introduction of theĀ <figure>element. When combined with theĀ <figcaption>Ā element, we can now semantically associate captions with their image counterparts. https://code.sololearn.com/WsPp1o4qr1Et/?ref=app

2nd Oct 2017, 8:56 PM
Iman Gharaee
Iman Gharaee - avatar
2 Answers
+ 6
<img src="example.com/cat.jpg" alt="About image" /> do this with valid image path
7th Oct 2017, 8:17 PM
Scooby
Scooby - avatar
+ 4
In order to get your images to display you need to put in the url of image not the Path/image thing . Ty
7th Oct 2017, 8:14 PM
Kash
Kash - avatar