Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Creating HTML Content Add Image Gallery Content

Nicholas Akright
Nicholas Akright
2,039 Points

You used the <p> element to include a caption for images. Why not use <figcaption> in conjunction with <figure>?

Is the <figure> element not supported by most browsers yet or does using it pose some problem?

2 Answers

Semantically speaking using figure along with figcaption would likely be the best course of action moving forward, for more information on its use I highly recommend this detailed article: http://html5doctor.com/the-figure-figcaption-elements/

Nicholas Akright
Nicholas Akright
2,039 Points

Thank you for the information.

This is the way I see it. "figure" is used for visual or auditory content that is significant to the content found on the page. An example would be an image or diagram that is used to supplement a concept in a school textbook to better understand it.

In the context of our web page, are the images essential to the point where a description is needed to explain what was done to each image? On the Portfolio page I would like to believe so.

Here's an article I found: http://blog.digitaltutors.com/whats-difference-image-figure-tags-html5/