alt
attribute.alt
attribute blank, do not remove it. For example: alt=""
.width
and height
attributes, so the space that the image would take up is already calculated before the image finishes loading. This helps to reduce cumulative layout shifts.<img>
element instead.{% include '@bolt-elements-image/image.twig' with {
attributes: {
alt: 'Alt text.',
src: 'path/image.jpg',
width: 400,
height: 225,
},
} only %}
<img alt="Alt text." src="path/image.jpg" width=400 height=225 class="e-bolt-image">