Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll
14/04/2025, by Ivan

Hiding content is very useful for accessibility. We can visually hide content and display it only to screen reader users, hide content from screen readers and display it only visually, or hide it from both. Drupal comes with some built-in CSS classes to help make intentions clear. We do not recommend using { display: none; } as it is often misused.

Technique Visually Hidden Screen Reader Hidden Additional Info

CSS:

<div class="visually-hidden"></div>

Yes No Built into Drupal 8. In Drupal 7, it was class="element-invisible".

CSS:

<div class="hidden"></div>

Yes Yes Built into Drupal 8. In Drupal 7, it was also class="element-invisible".

HTML5 attribute:

<div hidden></div>

Yes Yes In supported browsers, this is the same as CSS { display: none; }

ARIA attribute:

<div aria-hidden="true"></div>

No Yes Supported by modern browsers. Very similar to the HTML5 hidden attribute.

CSS:

<div class="visually-hidden focusable"></div>

Yes Yes Built into Drupal 8. In Drupal 7, it was class="element-invisible element-focusable"

This format is adapted from the 18F hidden content page.

Source authors:

Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.