First, it's quite possible that there are already topics talking about it. It was not lack of research, I just believe that I did not find the correct keywords.
Self explanatory question. I need a given code to appear on the page, according to the class that was assigned to <div>
.
As an example, it would look something like this:
HTML:
<div class="a"></div>
<p>
<div class="b"></div>
CSS:
.a{
<img src="caminho/imagem1.png" title="Imagem 1" >
}
.b{
<img src="caminho/imagem2.png" title="Imagem 2" >
}
Is it possible?