Print image with alt text In the node template, I print an image gallery. I need to add the alt text.

&lt;div class="field--name-field_gallery"&gt;
  {{ content.field_gallery }}
  {{ content.field_gallery.alt_field }}
&lt;/div&gt;


There are many images, which are printed, but the alt text is not printed.

How can I print it?
Print the image field in the node template like any other field:

{{ content.field_gallery }}

And then use a field twig to loop through multiple field items:

field--field-gallery.html.twig

 &lt;div class="row expanded"&gt;
  {% for item in items %}
     {{ item.content }}
     {{ item.alt }}
    {% endfor %}
  &lt;/div&gt;