<strong> vs <em>?

有什么不同? 他们都强调文字。 <em>标记以斜体显示文本,而<strong>使文本变为粗体,这是唯一的区别吗?

是的,“强调”与“强调”相比的定义非常模糊。 唯一的标准定义是“这是强调 ,但更多 !!”。

就我个人而言,我使用<em>作为正常的重点,在那里你用不同的语调读出强调的单词,而<strong>关键词和短语从文本中挑选出来,帮助人们浏览文本挑选主题。

这不是一个标准的解释,但它有一定的意义,并由默认的斜体/粗体显示。 无论你做什么, 都要保持一致

<strong>是一个标签,用于表示“这比周围文本更重要”。

通常用于表示句子中单词的压力。

例如:

尽pipe有些人可能会说,元素之间有语义上的区别。

为了清楚区分强调重点和重要性,以及更多示例, 请参阅HTML 5草案 。

在HTML4中:

EM表示重点。

强:表示更强调。

http://www.w3.org/TR/html4/struct/text.html#h-9.2.1

请注意, 差异将会改变

在HTML 4.01中, <strong>标签定义了强调的强调文本,但在HTML 5中定义了重要的文本。

这个问题不是更清楚吗?

来自WHATWG的生活标准HTML规范 :

em代表强调其内容:

 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> 

强烈的内容performance出强烈的重要性,严肃性或紧迫性:

 <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>