Semantic HTML

  • Espresso Translations

    Hi there,

    we were wondering if it’s possible to:

    1. Wrapping standalone content blocks (like key informational areas) in <article> or <section> instead of only <div>.

    2. Using <figure> and <figcaption> for images with relevant captions.

  • Hi there,

    1. not sure what you mean by standalone content block, but if you can wrap the block with a GB container block, then you can set the container blocks’s html tag to <article> or <section>.

    2. you can wrap a container outside the image block, and set its HTML tag to <figure>. And you can set a text block’s HTML tag to <figcaption>.

  • Espresso Translations

    Thanks, now that we have our site built, and it’s pretty big, about 1000 pages, is it possible to programmatically change the blocks tags to <article> or <section> and add <figure>?

  • Hi there,

    Unfortunately this needs to be done through a manual process. There’s currently no way to do it programmatically, unless you use a custom script — but even then, it would be a complicated task and unlikely to work flawlessly.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.