Closed texnixe closed 6 years ago
<img src="<?= $image->resize(766, null, 85)->url() ?>"<?php e($image->alt()->isNotEmpty(), ' alt="' . $image->alt()->html() . '"') ?>>
If the alt field is empty, the image will not have an alt attribute. However, the alt attribute should always be present even if empty for accessibility reasons.
Thank you for letting me know.
If the alt field is empty, the image will not have an alt attribute. However, the alt attribute should always be present even if empty for accessibility reasons.