Comments on: The figure & figcaption elements https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: Steve Faulkner https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-1654050 Tue, 03 Mar 2015 04:53:02 +0000 http://html5doctor.com/?p=1646#comment-1654050

So I have a html5 page, there is an article and there is a gallery, is the code above semantically correct?

Yes. Note in HTML5:

The theme of each section should be identified, typically by including a heading (h1-h6 element) as a child of the section element.

]]>
By: Rares https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-1634244 Fri, 27 Feb 2015 17:12:34 +0000 http://html5doctor.com/?p=1646#comment-1634244 [sorry, I forgot about the special characters for brackets]

Hi guys,

Can someone tell me if the it is appropriate to use multiple <figure> tags in an image gallery and if the code below is correct:
<section>
<figure>
<img />
<figcaption>
Image 1
</figcaption>
</figure>

<figure>
<img />
<figcaption>
Image 2
</figcaption>
</figure>

<figure>
<img />
<figcaption>
Image 3
</figcaption>
</figure>
</section>

So I have a html5 page, there is an article and there is a gallery, is the code above semantically correct?

]]>
By: Vivek Arora | Simple animated image captions using HTML5 figure & jquery https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-113565 Sat, 12 Jul 2014 16:57:13 +0000 http://html5doctor.com/?p=1646#comment-113565 […] classes or ids to give images with img tag their captions. In this tutorial we are going to use HTML5 figure and figcaption elements to give the image its caption and animate it using […]

]]>
By: Gil https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-102097 Wed, 09 Jul 2014 04:37:25 +0000 http://html5doctor.com/?p=1646#comment-102097 Thanks you for the post. I didn’t know that HTML5 had builtin support for this!

]]>
By: Sean Walsh https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-49560 Fri, 23 May 2014 16:53:18 +0000 http://html5doctor.com/?p=1646#comment-49560 I know this is an old post and that much of discussion has passed but I wanted to chime in. John Faulds is wrong in a major way.

To apply his rational to someone with sight the image is not necessary since we have the caption. That is 100% incorrect. The alt attribute and the figure should not have the same content. The alt attribute is almost always poorly written for screen readers providing bad UX. In example #2 it reads “Macaque in the trees.” It should read something like, “A Macaque monkey resting in the trees looking down through the foliage.” It should be very descriptive. It should be the auditory equivalent of the image. Then the caption gives you context by which the image should then be placed. In example two it gives us the location — something neither sighted nor the blind could tell, and the photographer.

Don’t discount the blind just because the example, and just bout 100% of web sites, use alt incorrectly.

]]>
By: Bobby https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-49337 Tue, 13 May 2014 01:36:18 +0000 http://html5doctor.com/?p=1646#comment-49337 @peter, you can use <aside> for non essential pictures.

If the content is simply related and not essential, use <aside>

]]>
By: Peter https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-49246 Mon, 05 May 2014 14:15:02 +0000 http://html5doctor.com/?p=1646#comment-49246 I find the concept of an image being ‘essential’ very vague. When is a picture essential?
the more I think about it the more I get confused. Isn’t a picture always essential except when it is a filler or presentational (in which case they should be placed in a css background, not an img).
Example: when writing a blogpost about a home project, placing a picture of the end result, is that an essential picture?
I can guess the picture of a t-shirt on a webshop site is essential, but what about a picture of a usb-cable on the same site? Is it really essential to show a usb cable (most people know what it looks like and is not really essential to know what the product looks like). But if a t-shirt is essential and a usb-cable is not, then using figure seems arbitrary from a design point of view (think about standard product html templates). Then do I need one template for products with essential pictures and one without?
I am getting a headache.

]]>
By: Quickredfox https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-49078 Fri, 18 Apr 2014 21:14:38 +0000 http://html5doctor.com/?p=1646#comment-49078 Lets say I want to markup bird pictures each within a figure element, can I also include and audio tag of the bird’s call and If so, where? In the Caption?

]]>
By: Table Saw Expert https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-38725 Thu, 31 Oct 2013 04:39:48 +0000 http://html5doctor.com/?p=1646#comment-38725 So this is nothing to be confused with in HTML. I thought it was alternate way to address images. But now you have made it clear that it has some uses in image gallery setup in a website.

]]>
By: Novel https://stevefaulkner.github.io/html5doctored/the-figure-figcaption-elements/#comment-38722 Tue, 29 Oct 2013 19:40:40 +0000 http://html5doctor.com/?p=1646#comment-38722 How to display ‘figure’ elements side by side? without enclosing in any other elements. Please…

]]>