<strong> against?
What is the difference? Both of them emphasize the text. The <em> shows the text in italics, while <strong> makes the text bold, is that the only difference?
Yes, the definition that "a strong accent is only compared to an" accent "is rather puffy. The only standard definition will be" emphasized, but more !! ".
Personally, I use <em> for a normal accent, where you read the underlined word in a different tone and <strong> for this thing, where you take keywords and phrases to select them from text, to help people hide the text, highlight the topics.
This is not a standard interpretation, but it makes sense and is rendered accordingly by default in italic / bold styles. Whatever you do, be consistent .
<strong> is the tag that you put on a sentence or phrase to indicate that "this is more important than the surrounding text."
<em> is usually used to indicate stress words in a sentence.
For example:
Although some may say, there is a semantic difference between the elements.
For a clear distinction between underlining and importance, as well as other examples, see the HTML 5 project .
In HTML4:
EM indicates emphasis.
STRONG: indicates a stronger emphasis.
Please note that the difference will change :
In HTML 4.01, the
<strong>tag defines strong underlined text, but in HTML 5 it defines important text.
Doesn't make the problem clearer, does it?
From WHATWG Standard HTML HTML :
em represents an emphasis in its content:
These examples show how changing the stress emphasis changes the meaning. First, a general statement of fact, with no stress: <p>Cats are cute animals.</p> By emphasizing the first word, the statement implies that the kind of animal under discussion is in question (maybe someone is asserting that dogs are cute): <p><em>Cats</em> are cute animals.</p> Moving the stress to the verb, one highlights that the truth of the entire sentence is in question (maybe someone is saying cats are not cute): <p>Cats <em>are</em> cute animals.</p> By moving it to the adjective, the exact nature of the cats is reasserted (maybe someone suggested cats were mean animals): <p>Cats are <em>cute</em> animals.</p> Similarly, if someone asserted that cats were vegetables, someone correcting this might emphasise the last word: <p>Cats are cute <em>animals</em>.</p> By emphasizing the entire sentence, it becomes clear that the speaker is fighting hard to get the point across. This kind of stress emphasis also typically affects the punctuation, hence the exclamation mark here. <p><em>Cats are cute animals!</em></p> Anger mixed with emphasizing the cuteness could lead to markup such as: <p><em>Cats are <em>cute</em> animals!</em></p> strong represents the seriousness, seriousness, or relevance of its contents:
<p>Welcome to Remy, the reminder system.</p> <p>Your tasks for today:</p> <ul> <li><p><strong>Turn off the oven.</strong></p></li> <li><p>Put out the trash.</p></li> <li><p>Do the laundry.</p></li> </ul>