一句话或一句话,如果不包含在句子中,似乎是最小的逻辑部分.忽略CSS,因为CSS仅用于布局而不是语义意义上,跨越提供额外的语义值时,通过剔除一个句子或一串字呢?
解决方法
Then the wizard called upon the <span class=”wizardword”>gravenwist</span> and bade it attack the approaching army. The <span class=”wizardword”>gavenwist</span> resisted but the wizard’s <span class=”wizardword”>wistwand</span> was too powerful.
这可以渲染为
Then the wizard called upon the gravenwist and bade it attack the approaching army. The gavenwist resisted but the wizard’s wistwand was too powerful.
这种事情的另一个很好的例子是microformats,它允许在HTML内创建任意结构:
<span class="tel"> <span class="type">home</span>: <span class="value">+1.415.555.1212</span> </span>
跨度与div的优点在于,跨度可以出现在几乎所有地方,因为它们是内联内容,而div是块元素,因此它们只能发生在某些其他元素内.
原文地址:https://www.jb51.cc/html/230332.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。