diff options
author | Jason Lee <huacnlee@gmail.com> | 2022-01-04 17:38:26 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-15 22:48:15 +0800 |
commit | 01b845e6d402777fe03cc4dd7ed5f21af400eed1 (patch) | |
tree | b3d3d8272d9c7c5207ebb016d072a10d9b7e04ea /files/zh-cn/web/html/element/b | |
parent | c1ed2f39d8921536444e3334bab549d7100a286e (diff) | |
download | translated-content-01b845e6d402777fe03cc4dd7ed5f21af400eed1.tar.gz translated-content-01b845e6d402777fe03cc4dd7ed5f21af400eed1.tar.bz2 translated-content-01b845e6d402777fe03cc4dd7ed5f21af400eed1.zip |
Improve copywriting for add spaces between Chinese and English words for files/zh-cn/web/html/element.
Diffstat (limited to 'files/zh-cn/web/html/element/b')
-rw-r--r-- | files/zh-cn/web/html/element/b/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/html/element/b/index.html b/files/zh-cn/web/html/element/b/index.html index e01455a131..a9758d7016 100644 --- a/files/zh-cn/web/html/element/b/index.html +++ b/files/zh-cn/web/html/element/b/index.html @@ -11,7 +11,7 @@ tags: - 参考 translation_of: Web/HTML/Element/b --- -<p id="摘要"><strong>HTML提醒注意(Bring Attention To)元素(<code><b></code>)</strong>用于吸引读者的注意到该元素的内容上(如果没有另加特别强调)。这个元素过去被认为是<strong>粗体(Boldface)元素</strong>,并且大多数浏览器仍然将文字显示为粗体。尽管如此,你不应将 <code><b></code> 元素用于显示粗体文字;替代方案是使用 CSS {{cssxref("font-weight")}} 属性来创建粗体文字。</p> +<p id="摘要"><strong>HTML 提醒注意(Bring Attention To)元素(<code><b></code>)</strong>用于吸引读者的注意到该元素的内容上(如果没有另加特别强调)。这个元素过去被认为是<strong>粗体(Boldface)元素</strong>,并且大多数浏览器仍然将文字显示为粗体。尽管如此,你不应将 <code><b></code> 元素用于显示粗体文字;替代方案是使用 CSS {{cssxref("font-weight")}} 属性来创建粗体文字。</p> <table class="properties"> <tbody> @@ -56,7 +56,7 @@ translation_of: Web/HTML/Element/b <p>不要将<b>元素与 {{HTMLElement("strong")}}、{{HTMLElement("em")}}或{{HTMLElement("mark")}}元素混淆。 {{HTMLElement("strong")}}元素表示某些重要性的文本,{{HTMLElement("em")}}强调文本,而{{HTMLElement("mark")}}元素表示某些相关性的文本。 <code><b></code>元素不传达这样的特殊语义信息;仅在没有其他合适的元素时使用它。</p> </li> <li>类似的,也不要用 <code><b></code> 元素来标记标题。如果需要表示标题,请使用 {{HTMLElement("h1")}} 到 {{HTMLElement("h6")}} 标签。此外,可以通过样式表来改变这些元素的的默认样式,结果就是它们并<em>不一定</em>都是粗体。</li> - <li>通过在 <code><b></code> 元素上添加<strong> </strong>{{htmlattrxref("class")}} 属性来表示额外的语义信息是一个很好的方式(例如 <code><b class="lead"></code> 来表示段落中的第一句)。这可以在样式需要变动的情况下更轻松地处理不同应用场合的 <code><b></code> 元素,无须改动HTML。</li> + <li>通过在 <code><b></code> 元素上添加<strong> </strong>{{htmlattrxref("class")}} 属性来表示额外的语义信息是一个很好的方式(例如 <code><b class="lead"></code> 来表示段落中的第一句)。这可以在样式需要变动的情况下更轻松地处理不同应用场合的 <code><b></code> 元素,无须改动 HTML。</li> <li>以前 <code><b></code> 元素的意思就是让文本变成粗体。但从 HTML4 开始,不赞成标签表示带样式信息,于是 <code><b></code> 元素的含义发生了变化。</li> <li>如果不是出于语义目的而使用 <code><b></code> 元素,那么让文本显示粗体更好的方式是使用将 CSS 的 {{cssxref("font-weight")}} 属性设置为 <code>"bold"</code>。</li> </ul> |