13
It is acceptable in question SEO and semantics to use tags like <h2>
, <h3>
, <p>
and <div>
inside <a href=""></a>
?
I noticed that to make items on a page people usually use a structure similar to this:
<div class="item">
<a href="produto/1">
<figure>
<img src="images/produto-1.jpg" alt="produto 1">
</figure>
<h2>Produto</h2>
<p class="price">R$ 1000</p>
</a>
</div>
I know the tag <a>
is inline and needs the display: block
for it to work, but the question really is about SEO and semantics.
In HTML5 the tag
<a>
can be inserted whole paragraphs, lists, tables,and so on, even whole sections, as long as there is no interactive content within it, I believe I would only miss the semantics if there was something from the<a>
which changes its natural behaviour.– Gabriel Rodrigues
William, I know your question is about CEO, but in HTML5 the concept of
inline
xblock
has matured, now the elements are organized by categories, and an element can receive a different classification depending on some conditions... to better understand, read: Content Categories... in the case of <to> he can both be aconteúdo de texto
as to aconteúdo de fluxo
.– Tobias Mesquita
@Tobymosque only one CEO detail != SEO.
– Guilherme Nascimento
ops, I typed CEO by mistake, it was SEO itself.
– Tobias Mesquita
Just to increase the answers, I’ll leave that answer on webmasters.
– Randrade