在HTML中,与相反的是什么?

时间:2020-12-28 15:44:34

Does there exist an opposite tag to <strong> in HTML? Or will it be introduced in HTML5?

HTML中的是否存在相反的标记?或者它会在HTML5中引入吗?

5 个解决方案

#1


25  

To mark text as not emphasized or important, simply do not mark it up with the em or strong elements respectively.

要将文本标记为不强调或重要,请不要分别用em或strong元素标记它。

Source: HTML 5: The small element

来源:HTML 5:小元素

#2


13  

No, there's no opposite. Regular text would be the closest unless you create a custom css class like:

不,没有相反的意思。除非您创建自定义css类,否则常规文本将是最接近的:

span.weak {
    font-weight: lighter;
}

Which would, of course, allow you to have markup that looks like:

当然,这将允许您具有如下标记:

This is some <span class="weak">very weak</span> text.

#3


8  

<strong> stands for “strong emphasis”.

代表“强调”。

There is also normal emphasis, i.e. <em> and of course no emphasis – normal text.

还有正常的重点,即,当然没有强调 - 正常文本。

To deemphasise is not a common semantic need that has spawned an own, accepted typographic style so there is no special tag for it. You need to go the route via <span>s and CSS, e.g.:

强调不是一种常见的语义需求,它产生了一种自己的,可接受的排版风格,所以它没有特殊的标签。你需要通过和CSS去路线,例如:

This is is <strong>very important</strong>. You should remember it.
<span class="deemphasized">This, on the other hand, isn’t important
at all. Ignore it.</span>

Printed slightly smaller and with a lighter colour (assuming the normal colour is black, and the background is white):

打印稍小,颜色较浅(假设正常颜色为黑色,背景为白色):

.deemphasized { color: #444; font-size: 0.9em; }

#4


3  

No. The opposite of strong would be normal text.

不。与强者相反的是普通文本。

#5


2  

Use normal text, without any <strong> or <em> tags; that would be an appropriate opposite. You could style something with CSS, or use <small>, but that's not the best solution.

使用普通文本,不带任何标记;这将是一个恰当的对立面。您可以使用CSS设置样式,或使用,但这不是最佳解决方案。

#1


25  

To mark text as not emphasized or important, simply do not mark it up with the em or strong elements respectively.

要将文本标记为不强调或重要,请不要分别用em或strong元素标记它。

Source: HTML 5: The small element

来源:HTML 5:小元素

#2


13  

No, there's no opposite. Regular text would be the closest unless you create a custom css class like:

不,没有相反的意思。除非您创建自定义css类,否则常规文本将是最接近的:

span.weak {
    font-weight: lighter;
}

Which would, of course, allow you to have markup that looks like:

当然,这将允许您具有如下标记:

This is some <span class="weak">very weak</span> text.

#3


8  

<strong> stands for “strong emphasis”.

代表“强调”。

There is also normal emphasis, i.e. <em> and of course no emphasis – normal text.

还有正常的重点,即,当然没有强调 - 正常文本。

To deemphasise is not a common semantic need that has spawned an own, accepted typographic style so there is no special tag for it. You need to go the route via <span>s and CSS, e.g.:

强调不是一种常见的语义需求,它产生了一种自己的,可接受的排版风格,所以它没有特殊的标签。你需要通过和CSS去路线,例如:

This is is <strong>very important</strong>. You should remember it.
<span class="deemphasized">This, on the other hand, isn’t important
at all. Ignore it.</span>

Printed slightly smaller and with a lighter colour (assuming the normal colour is black, and the background is white):

打印稍小,颜色较浅(假设正常颜色为黑色,背景为白色):

.deemphasized { color: #444; font-size: 0.9em; }

#4


3  

No. The opposite of strong would be normal text.

不。与强者相反的是普通文本。

#5


2  

Use normal text, without any <strong> or <em> tags; that would be an appropriate opposite. You could style something with CSS, or use <small>, but that's not the best solution.

使用普通文本,不带任何标记;这将是一个恰当的对立面。您可以使用CSS设置样式,或使用,但这不是最佳解决方案。