html判断文字 查看更多
There are other tags that can be used to format text, a limited sample of which are given below. Note again that these describe what the content between the opening closing tags is; what it looks like is immaterial, in this context.
还有其他一些标签可用于格式化文本,下面提供了一些示例。 再次注意,这些描述了开始结束标记之间的内容 。 在这种情况下, 看起来像什么无关紧要。
-
<dfn>
tag requires a<dfn>
标签需要一个title
attribute with its value set to the definition of the term. You’ll see this title definition appear when you move your mouse over the word in a browser.)title
属性,其值设置为该术语的定义。当您将鼠标移到该单词中时,您会看到此标题定义出现浏览器。) -
<dfn>
above<dfn>
相同的要求和功能 - quotation 报价
- superscript ordinal text, such as for a 上标序数文本 ,如 footnote. 脚注 。
- defines subscript text
- 定义下标文字
<dfn>
<dfn>
<abbr>
<abbr>
<q>
<q>
<sup>
<sup>
<sub>
<sub>
Finally, note that all of these tags must be nested inside another that provides a context for the block of text as a whole: typically <p>
, although there are many other possibilities.
最后,请注意,所有这些标签都必须嵌套在另一个标签中,该标签为整个文本块提供上下文:通常为<p>
,尽管还有许多其他可能性。
建议的运动 (Suggested exercise)
Feel free to experiment with the above, but try to use the tags in the context of real-world examples – i.e. find a short quotation from a book and use the <q>
tag around it in a page, or define and use a real abbreviation in the context of the short biography you wrote in the last exercise, rather than using elements to “see what they look like”.
可以随意尝试上述内容,但是请尝试在实际示例中使用这些标记-即从书中找到一个简短的报价单,并在页面中使用它周围的<q>
标记,或者定义并使用一个真实的您在上一个练习中写的简短传记中的缩写,而不是使用元素“查看它们的外观”。
html判断文字 查看更多