I found this on stackoverflow and I have a question regarding this. Can I use this code on CodePen to satisfy SEO and design part of the page?
<figure>
<img src="https://placehold.it/350x150" alt="something important">
<figcaption>
something important
</figcaption>
</figure>
*{
font-family: helvetica;
}
figure {
margin: 100px auto;
position: relative;
width: 500px;
height: 100px;
background-image: url(https://placehold.it/650x150);
background-size: cover;
background-position: center center;
}
img{
display: none;
}
figcaption{
position: absolute;
bottom: 0;
width: 100%;
background: maroon;
color: WhiteSmoke;
text-align: center;
font:small-caption;
font-style: italic;
}