<em>
: It serves to emphasize a particular text, as if you were increasing the intonation of your voice to make that word detached and visible.
Ex.:
<p>
<em> Faça sua lição! </em>
</p>
<strong>
: It gives importance/seriousness/urgency to a given text. Its rendering is currently made in bold, but in the past the underscore was applied. Only use it if the text in question is very important for the user.
Ex.:
<p>
<strong>Para agora</strong> com isso.
</p>
Another function of <strong>
is to give a higher hierarchy/prominence to a given word.
Ex.:
<h1> Capítulo 1 - <strong>A Crise</strong> </h1>
You can nest a <strong>
within a <strong>
or a <em>
within a <strong>
... to give even more emphasis/importance to the text in question, just don’t overdo the nesting (use at most 3 levels and look there).
These little guys above serve to replace the <b>
and the <i>
?
No! Each tag has to be semantic value and its utility. For example, let’s take a look at the <i>
<i>
: It is used in ideomatic texts, like when you want to write a Chinese proverb, or an English expression... You use <i>
, just be sure to use the attribute lang
together if possible.
EX.:
<p>
<i class="phrase" lang="en-us"> You are making up excuses </i> é uma frase que significa: você está criando desculpas.
</p>
Another case is when you want to name a taxonomic name.
Ex.:
<p>
O <i class="taxonomy"> Homo Sapiens </i> é o ser humano.
</p>
Psu: since the <i>
has low semantic value, put a class in it to help anyone reading the code and also to increase SEO.
Have more use cases also:
Names of vessels, transliterations, dreams, thoughts, technical terms... Anyway, you can see that the <i>
has much more uses than the <em>
, but that does not mean that the <i>
replaces the <em>
. Each element is special.
But what about the <b>
and the <strong>
?
It’s the same thing:
<b>
: It serves for material purposes, like when you want to give a little importance to an element, but nothing very considerable. It even serves to mark keywords in a document.
EX.:
<p>
O <b>HTML</b> é uma <b>linguagem de marcação</b> muito antiga. Ela foi criada por <b>Tim Bernes-Lee</b>
</p>
Again: no tag replaces each other, both have their use cases.
Note also that you can use a stylesheet to overwrite the styles of the above elements, this is normal and correct.
use <'i'> for italics and <'b'> for bold, ready, finished! :)
– Ale
This is neither recommended nor answers to what I asked!
– bfavaretto
I wonder, why complicate simple terms? Simple terms, as the name suggests, answer with simple arguments, now complicating the simple, is simply wasting time.. think!
– Ale