在 HTML 中,<strong> 的反义词是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5459518/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
In HTML, what is the opposite to <strong>?
提问by Muleskinner
Does there exist an opposite tag to <strong>
in HTML? Or will it be introduced in HTML5?
<strong>
HTML中是否存在相反的标签?还是会在 HTML5 中引入?
采纳答案by wildcard
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:小元素
回答by Justin Niessner
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.
回答by Konrad Rudolph
<strong>
stands for “strong emphasis”.
<strong>
代表“强烈强调”。
There is also normalemphasis, i.e. <em>
and of course no emphasis – normal text.
还有正常的强调,即<em>
当然没有强调 - 正常文本。
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.:
以德强调的是不常见的语义需求已经催生了一个自己的,接受的排版风格所以它没有特殊的标记。您需要通过<span>
s 和 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; }
回答by kevinji
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.
使用普通文本,不带任何<strong>
或<em>
标签;这将是一个适当的对立面。您可以使用 CSS 设置样式或使用<small>
,但这不是最佳解决方案。
回答by Wooble
No. The opposite of strong would be normal text.
不。strong 的反义词是普通文本。