latex 文本斜体
HTML is designed to be as independent of medium and client as possible. While you interact with the majority of web pages visually via a screen, there are numerous other possibilities for how the content may be shown, such as print, text-to-speech readers, braille translators, and more.
HTML被设计为尽可能独立于媒体和客户端。 当您通过屏幕与大多数网页进行可视化交互时,还有许多其他方式可以显示内容,例如印刷品,文本语音朗读器,盲文翻译器等等。
For this reason, tags that format text in HTML are as broadly applicable as possible. <em>
, for instance, emphasizes text. In most cases, visually rendered <em>
content means it is italicized, but a text-to-speech tool will emphasize the text verbally, just as you would reading the text out loud.
因此,以HTML格式设置文本格式的标签应尽可能广泛地适用。 例如, <em>
强调文本。 在大多数情况下,可视化呈现的<em>
内容表示它是斜体,但是文本到语音转换工具会口头强调文本,就像您大声朗读文本一样。
<strong>
, visually, bolds the content between the opening and closing <strong>
tags, but again, the tag will have different meanings in different contexts.
<strong>
视觉上使<strong>
标记之间的内容加粗,但是同样,该标记在不同的上下文中将具有不同的含义。
Both tags are intended to be used on a short portion of text – a word or two, perhaps a sentence in a paragraph that is several sentences long. If you find yourself coding this:
这两个标签都打算在文本的一小部分上使用-一个或两个单词,也许是一个句子中的句子 ,句子长几个句子。 如果您发现自己编写此代码:
<p><em> .. lots of content here .. </em></p>
… it is almost always a sign that you should not be using <em>
or <strong>
but CSS instead.
......它几乎总是一个迹象,表明你不应该使用<em>
或<strong>
但是CSS来代替。
Similarly, <strong>
makes little to no difference inside of heading elements. Use CSS instead.
同样, <strong>
在标题元素内部几乎没有差异。 请改用CSS。
HTML5 reintroduces the <b>
and <i>
tags, but I would recommend sticking with <strong>
and <em>
, as the latter have greater applicability and accessibility.
HTML5重新引入了<b>
和<i>
标记,但是我建议坚持使用<strong>
和<em>
,因为后者具有更大的适用性和可访问性。
latex 文本斜体