TertuliaEnRedX
Well-known member
The provided code seems to be a mix of HTML and PHP, but it's not complete or well-formed. The `<figure>` tags are nested within each other, which is not valid in HTML.
Here is an example of how the same content could be formatted using HTML:
```html
<p>/Fotos: Miguel Fuentes/</p>
<figure>
<img loading="lazy" decoding="async" width="1200" height="800" src="image1.jpg" alt="Image 1">
<figcaption>Image 1</figcaption>
</figure>
<figure>
<img loading="lazy" decoding="async" width="1200" height="799" src="image2.jpg" alt="Image 2">
<figcaption>Image 2</figcaption>
</figure>
```
And the PHP code could be used to generate the images and captions dynamically, like this:
```php
<?php
$images = array("image1.jpg", "image2.jpg");
$captions = array("Image 1", "Image 2");
foreach ($images as $index => $image) {
echo '<figure>';
echo '<img loading="lazy" decoding="async" width="1200" height="800" src="' . $image . '" alt="' . $captions[$index] . '">';
echo '<figcaption>' . $captions[$index] . '</figcaption>';
echo '</figure>';
}
?>
```
Please note that this is just an example, and the actual code would depend on your specific requirements and how you want to structure your content.
Here is an example of how the same content could be formatted using HTML:
```html
<p>/Fotos: Miguel Fuentes/</p>
<figure>
<img loading="lazy" decoding="async" width="1200" height="800" src="image1.jpg" alt="Image 1">
<figcaption>Image 1</figcaption>
</figure>
<figure>
<img loading="lazy" decoding="async" width="1200" height="799" src="image2.jpg" alt="Image 2">
<figcaption>Image 2</figcaption>
</figure>
```
And the PHP code could be used to generate the images and captions dynamically, like this:
```php
<?php
$images = array("image1.jpg", "image2.jpg");
$captions = array("Image 1", "Image 2");
foreach ($images as $index => $image) {
echo '<figure>';
echo '<img loading="lazy" decoding="async" width="1200" height="800" src="' . $image . '" alt="' . $captions[$index] . '">';
echo '<figcaption>' . $captions[$index] . '</figcaption>';
echo '</figure>';
}
?>
```
Please note that this is just an example, and the actual code would depend on your specific requirements and how you want to structure your content.