Most photos to your website online need now not the rest more than what Divi already does. Add an Image Module, style it, and likewise you’re completed. Alternatively there are times when you want to workforce an image with a caption someway that your HTML explicitly defines as a single unit.
That’s where decide and figcaption are to be had in. The ones HTML parts create a built-in semantic dating that simple image-plus-text layouts continuously don’t specific as clearly. The question isn’t whether they’re upper, it’s when they’re value the usage of. Divi 5 makes together with the ones HTML wrappers simple when your content material subject material needs that further development. Proper right here’s the best way to make a decision.
Working out The Resolve And Figcaption Parts
Every parts come from HTML5 and art work together to mark up content material subject material that benefits from a visible caption. Previous to you’ll be capable of make a decision when to use them, you need to take hold of what each and every one in reality does and the way in which they interact with browsers and assistive generation. Let’s destroy down each and every phase one by one, then check out why their dating problems:
What Is The Resolve Section
The decide phase wraps content material subject material that can stand on its own as a self-contained reference. Footage, diagrams, code blocks, or charts all fit this serve as. You’ll continuously switch this content material subject material elsewhere to your internet web page without breaking the float of your main text.

Browsers expose a decide as a grouped piece of content material subject material throughout the accessibility tree, and a figcaption is semantically tied to it. Serps can use surrounding text, at the side of captions, to higher interpret what an image is able. The use of decide and figcaption makes that dating explicit on your markup.
Figures can also wrap motion pictures, audio clips, code samples, and information visualizations. The content material subject material type doesn’t matter. What problems is whether or not or now not that content material subject material functions as a self-contained reference that is helping your main text without being part of the learning float.
What Is The Figcaption Section
The figcaption phase supplies a visible caption to your decide. Place it as each the main or ultimate child all the way through the decide, and browsers will take care of it since the caption (or legend) associated with that decide.

This isn’t merely text floating as regards to an image. Figcaption creates a programmatic link between the caption and the decide. Many assistive technologies will expose the caption someway that makes the association clear, alternatively the best announcement depends on the browser and show reader. When any individual the usage of assistive generation encounters your decide, they are going to pay attention the image’s alt text and the caption content material subject material in sequence, with the markup indicating that the caption belongs to the decide.
You’ll most straightforward use one figcaption consistent with decide. For many who add multiple, browsers will most straightforward recognize the main one as the real caption. The rest merely becomes commonplace text. Position problems less than you’d suppose. Whether or not or now not you put the caption above or beneath your content material subject material, the semantic connection stays intact.
The phase can contain other HTML inside it as neatly. Links, emphasis tags, or inline code all art work improbable inside of a figcaption. Merely keep it associated with describing or crediting the decide content material subject material. That focused serve as makes the caption useful for each and every people and machines in search of to understand your content material subject material.
How They Artwork Together And Why They Topic
Whilst you combine decide and figcaption, you create a semantic package that serves different needs immediately. Alt text describes the image itself for show readers and search engines. The figcaption supplies context or attribution that each and every sighted shoppers and assistive generation can get right to use. They art work in tandem, not as replacements for each and every other.
Serps parse this dating differently than they may free text as regards to an image. They know the caption describes the decide content material subject material, which helps them understand the topic and relevance of your internet web page. That development can be in agreement with interpretation and indexing, in particular when captions add clear context.
Choosing When To Use Resolve Parts
You’ve found out what the ones parts do. Now comes the harder segment: deciding when they’re in reality smartly well worth the effort. Not each and every image needs this treatment, and overusing semantic markup may also be merely as problematic as ignoring it. This segment walks via the essential factor selection problems:
Resolve vs Div With An Image
Every approaches can display an image alongside text. The difference lies in what that markup communicates to browsers and assistive tech. Proper right here’s a at hand information a coarse table that can assist you understand the variations:
| Facet | Div With Image | Resolve With Image |
|---|---|---|
| Semantic that suggests | None | Self contained content material subject material |
| Caption fortify | Information text placement | Built in figcaption phase |
| Accessibility | No dating offered | Presented as connected unit |
| search engine optimization value | Image and text indexed one by one | Caption indexed with image context |
Proper right here’s a at hand information a coarse rundown of when to use what:
| Use Resolve When | Use Div When |
|---|---|
| Content material subject material needs a visible caption | Image is handiest decorative |
| Content material subject material references something on your text | Image is part of internet web page layout |
| It’s very important switch it without breaking learning float | Eliminating it will destroy internet web page development |
| Visual display unit readers should announce it as a unit | No semantic dating problems |
When Not To Use Resolve
Not each and every image deserves semantic markup. Many photos to your website online serve as decoration, branding, or layout parts. The ones don’t reference your content material subject material, so wrapping them in decide tags merely supplies noise.
Decorative photos fall into this magnificence. Icons, background patterns, and ornamental graphics exist purely for visual design. Use CSS backgrounds for purely decorative visuals, or use an image with an empty alt function when it’s purely presentational. Emblems on your header or navigation art work the equivalent approach. They’re branding parts that form part of your website online development, not content material subject material references. Hero photos and banner graphics fortify your layout quite than explaining your text.
Button icons, thumbnail grids, and UI controls serve helpful purposes. They be in agreement shoppers navigate or engage at the side of your website online. Together with decide markup to these parts confuses their precise serve as.
Proper right here’s A Rapid Check out…
Probably the most most straightforward tactics to make a decision is to perform two simple checks. First, remove the image mentally. Your content material subject material should nevertheless make entire sense without having to provide an explanation for what was once as soon as missing. A product {photograph} in an ecommerce grid passes this take a look at. A chart showing your product sales wisdom fails it.
second, check out relocating the image. Resolve content material subject material should be moveable. Moving it to every other spot on the internet web page shouldn’t destroy your layout or interrupt the learning float. Footage that are supposed to stay in one actual spot to make sense aren’t really self-contained.
For example, profile photos in creator bio sections infrequently need decide markup. Screenshots in tutorials continuously have the good thing about it, in particular when a caption supplies context.

When To Use Figcaption
You don’t desire a figcaption each and every time you add a decide wrapper. The phase becomes useful in 3 particular situations where visible text helps shoppers understand your content material subject material upper.
Use figcaption when:
- Attribution problems. Charts sourced from research papers, photos from other web pages, or graphics with licensing prerequisites all need right kind credit score rating. The caption gives you a clean place to cite your provide where everyone can see it.
- Footage need context previous alt text. Data visualizations, technical diagrams, or historic photos continuously contain details that each and every sighted shoppers and show reader shoppers need outlined. A map showing election results works upper with a caption noting the three hundred and sixty five days and particular race.
- The decide needs a label that clarifies what the reader is looking at, such since the three hundred and sixty five days of a map, the dataset at the back of a chart, or the phase confirmed in an architectural diagram.
Skip figcaption when:
- Your image already explains itself. Product photos in a grid, icons next to serve as descriptions, or screenshots that are compatible the encircling text don’t succeed in anything from visible captions. Alt text nevertheless problems for accessibility in the ones instances, and the encircling text continuously provides enough context without a visible caption.
The caption exists to serve readers. If together with one seems like busywork or just repeats what people can already see, leave it out.
What Content material subject material Goes Within Figcaption
Write in simple language. “The Brooklyn Bridge at sunset” works improbable. Avoid overly flowery captions like “A large ranging view of the enduring Brooklyn Bridge bathed in golden night time time delicate.”
One or two sentences most often do it. The remaining longer belongs on your main text. You’ll nest links, emphasis tags, or other HTML when sought after, like wrapping photographer credit score in an anchor tag or highlighting keywords.
Place the figcaption as each the main or ultimate child inside your decide phase. Every positions art work the equivalent approach for browsers and show readers.
The use of Resolve And Figcaption In Divi 5 The use of Semantic HTML
You employ the Visual Builder to build your internet websites, alternatively together with semantic HTML to your parts approach choosing between a visual workflow and right kind markup. It’s very important assemble throughout the Visual Builder or write semantic markup by the use of hand, alternatively doing each and every used to take further steps.
Divi 5 changes that with its contemporary serve as release: Customized HTML Wrappers. This selection puts semantic control instantly throughout the Visual Builder, where you already art work. Without improving theme data, writing custom designed code, disrupting your layout, or jumping between interfaces.
Every Divi phase now accommodates an HTML selection workforce throughout the Difficult tab. The Section Type dropdown incorporates the tags you need for right kind semantic development:
- div (default wrapper)
- decide (for self-contained content material subject material)
- segment (for thematic grouping)
- article (for impartial content material subject material)
- aside (for tangential content material subject material)
And additional.
Plus, beneath the Section Type, there are two fields known as HTML Previous to and HTML After. The ones let you inject custom designed markup spherical any module without touching your theme data.

The Visual Builder updates in precise time as you’re hired, so you notice exactly what your semantic development produces. This setup works for decide and figcaption parts very similar to any other semantic markup. Your photos get right kind semantic wrappers while staying part of your visual workflow.
Together with A Resolve And Figcaption Wrapper
Select the Image Module you want to wrap and open its settings panel. Navigate to the Difficult tab, scroll to the HTML selection workforce, and click on at the Section Type dropdown.
Select decide from the checklist. Your image now sits inside right kind semantic markup as an alternative of a generic div.

Add a Text or Heading Module correct beneath your image. Divi AI can generate succinct descriptions for each and every image instantly all the way through the Text Modules.

Once finalized, open its settings, head to the Difficult tab, and to seek out the HTML selection workforce another time. Set its Section Type to figcaption.

The two modules now function as a connected semantic unit that browsers and assistive generation recognize routinely. Alternatively, the figcaption module behaves like any other Text or Heading Module in Divi.
Style it with entire design control over fonts, colors, and spacing. Design Variables let you link captions to your typography scales and logo colors. Exchange those core values once, and each and every caption to your website online updates routinely.

Possibility Workforce Presets and Part Presets keep your captions consistent without guide copying. Follow one preset, and your whole photos and captions inherit the equivalent HTML wrapper and styling.
Your markup stays clean and available in the market while your float stays visual, rapid, and most importantly, exactly the position you’re hired.
A Few Use Cases
Resolve and figcaption art work easiest when development particular internet web page types in Divi. Listed below are some ideas:
- About pages with workforce member photos: Headshots paired with captions that include names, titles, or brief credentials create right kind semantic connections between the image and the person’s wisdom. That’s the process used in this publish’s example.
- Landing pages with statistics or metrics: Charts showing purchaser pleasure ratings, growth percentages, or comparison wisdom get decide wrappers. The figcaption cites the availability and offers credibility to your claims.
- Product sales pages with product serve as comparisons: Side-by-side photos showing different plan tiers, serve as gadgets, or package alternatives get clearer when captions specify which type turns out in each and every shot.
The ones scenarios share one trait: you’re development a selected internet web page where individual photos need visible context that serves each and every sighted shoppers and show readers.
Check out Building In Divi 5 Lately!
Resolve and figcaption transparent up precise problems when photos need attribution or require explanation previous alt text. They create a semantic connection this is serving to each and every readers and machines interpret the content material subject material.
Divi 5 puts the HTML controls where you already make design picks. Together with semantic wrappers becomes part of internet web page development quite than a separate procedure that calls for custom designed code. Get began together with semantic development where it problems. Download Divi 5 and assemble available in the market web pages with clearer, additional descriptive content material subject material.
The publish When To Use Determine and Figcaption HTML Components In Divi 5 appeared first on Sublime Topics Weblog.
Contents
- 1 Working out The Resolve And Figcaption Parts
- 2 Choosing When To Use Resolve Parts
- 3 The use of Resolve And Figcaption In Divi 5 The use of Semantic HTML
- 4 Check out Building In Divi 5 Lately!
- 5 Subject Clusters: The Subsequent Evolution of search engine marketing
- 6 Get a FREE Conference Layout Pack for Divi
- 7 9 Black Friday Advertising and marketing Methods for 2022


0 Comments