Streaming live at 10am (PST)

Figure and figcaption


#1

Hello,
i'm a starter in webflow and coding. now i will do any things in webflow with html5 but when i use a div, i can tag with "figure" and in this container i will integrate a image with "figcaption". i'cant do it like here: https://webflow.com/blog/html5-semantic-elements-and-webflow-the-essential-guide. I didn't find the tag "figcaption". Can anybody help me?

Greetings Sylvio


Here is my public share link: LINK
(how to access public share link)


#2

Hi Sylvio.

You can add the tag <figure> to any element as you've found. However, ebflow doesn't allow for tagging elements with <figcaption>.

The article mentions it like this:

The HTML5 spec also includes several other tags with more precise uses. With the exception of , which Webflow automatically adds to image captions, these aren’t yet available in Webflow.

But I omitted to specify "Inside a Rich Text element". In a RT element, for any image you'll add using the "+" icon in front of a new line, you'll be proposed to add a caption. If you do so, it will get the <figcaption> element.

It's not a big deal that you can tag any caption with it, outside RTs. Simply make a .caption class and style it as you want. If you want your site to be as accessible as you can, what you must do is to write good ALT for each image of your site. That's way more important than anything else.

I could not stress that aspect enough: take the time to write all the ALTs and write it good, it is extremely important.


#3

Hi Vincent, thanks a lot for the information!


#4

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.