html判断文字 查看更多_更多HTML文字元素

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> <dfn>
<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属性,其值设置为该术语的定义。当您将鼠标移到该单词中时,您会看到此标题定义出现浏览器。)
<abbr> <abbr>
<dfn> above <dfn>相同的要求和功能
<q> <q>
quotation 报价
<sup> <sup>
superscript ordinal text, such as for a 上标序数文本 ,如 footnote. 脚注
<sub> <sub>
defines subscript text
定义下标文字

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>标记,或者定义并使用一个真实的您在上一个练习中写的简短传记中的缩写,而不是使用元素“查看它们的外观”。

翻译自: https://thenewcode.com/374/More-HTML-Text-Elements

html判断文字 查看更多

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值