9
What’s the difference between <q>
and <blockquote>
and <cite>
, because everything seems to be for quote. Is there any good practice or correct way to use these tags correctly?
We can use these tags inside each other since in HTML there is also the attribute cite=""
and single quotes " "
.
I also noticed that each of these tags is rendered differently on the page. It seems to me that the user-agent
has a particular CSS style for each of the tags, one has italics (<cite>
) one has some spacing (<blockquote>
) others not...
<q>Lorem ipsum dolor sit amet.</q><br>
<blockquote>Lorem ipsum dolor sit amet.</blockquote><br>
<cite>Lorem ipsum dolor sit amet.</cite><br>
After all, how should these tags be used? There is a different semantic value for each of them, or they all mean the same thing and there is no difference between them?
Yeah, I’ve seen the
cite
as attribute of a<blockquote>
, informing the url of the origin... but I think not a browser does something with it.– Leandro Angelo
Yes, it is just to give semantics anyway, there is a clear function. So you can use as you want. Google should understand in a special way, your app can do the same.
– Maniero
@Maniero thank you very much for the answer, very enlightening. I only accepted the other answer because it came a few minutes earlier :)
– hugocsl