
data-gb-speech
HTML tag. If we specify the HTML tag without a value, the reader will take its content as a base. If you want to modify this, or if the content is such that there is nothing to read (e.g. an image), you can specify the content to be read as the value of the tag. In the case of buttons and links (as long as the screen reader is active), the content will be read on the first click, the page will navigate on the second click.
<!-- Without value: -->
<p>This content will be automatically recognised and read.</p>
<div data-gb-speech>
This content cannot be automatically recognized,
so the data-gb-speech tag is required.
</div>
<a href="#" data-gb-speech>This is a link</a>
<button type="button" data-gb-speech>Button titlee</button>
<!-- With value: -->
<div data-gb-speech="This content will be read aloud">
This content will only be displayed
</div>
<img src="image.jpg" data-gb-speech="Click on the image to read its content."/>
Example of incorrect setting:
<!-- Incorrect syntax (nested data-gb-speech tags): -->
<div data-gb-speech="Avoid nesting">
<div data-gb-speech="There is already one of these in the parent element.">
...
</div>
</div>
data-gb-content
HTML tag.
data-gb-content
HTML tags should be inserted on the element containing the page content.
Examples of the correct setting:
<header>...</header>
<main data-gb-content>
<div id="content-block-1">
...
</div>
<div id="content-block-2">
...
</div>
</main>
<footer>...</footer>