HTML5中 b 和 i 标签将语义化

作者:blank 来源:蓝色理想 时间:2008-03-16 13:43:00 

b 和 i 标签在现在的 Web 标准潜规则中是不推荐使用,甚至是反对使用的,因为认为他们只是“表现”粗体和斜体,而没有任何“语义”。更多的用 strong 和 em 标签代替。

而在新的 HTML5 工作草案 中对于 b 和 i 标签是这样定义的


    The b element now represents a span of text to be stylistically offset from the normal prose without conveying any extra importance, such as key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is emboldened.

    // b 元素现在描述为在普通文章中仅从文体上突出的不包含任何额外的重要性的一段文本。例如:文档概要中的关键字,评论中的产品名。或者代表强调的排版方式。

    The i element now represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized. Usage varies widely by language.

    // i 元素现在描述为在普通文章中突出不同意见或语气或其他的一段文本,例如:一个分类名称,一个技术术语,一个外语中的谚语,一个想法等。或者代表斜体的排版方式。

从规范中可以注意到:b 和 i 元素将被赋予真正的语义。更应有预见性注意 b 、i 与 strong 、em 的不同使用 。

扩展阅读:

标签:html5,b,标签,标准
0
投稿

猜你喜欢

  • vuex中数据持久化插件vuex-persistedstate使用详解

    2024-04-26 17:41:54
  • .net 上传文件前所未有的简单

    2023-07-17 23:20:04
  • 推荐几款MySQL相关工具

    2024-01-23 10:42:12
  • [欣赏] 情景互动广告

    2008-08-06 12:59:00
  • function.inc.php超越php

    2024-06-05 09:22:40
  • Django 数据库同步操作技巧详解

    2024-01-28 02:26:14
  • python引入导入自定义模块和外部文件的实例

    2023-01-25 10:02:18
  • pyinstaller打包成无控制台程序时运行出错(与popen冲突的解决方法)

    2023-05-15 02:03:20
  • Project Reference优化TypeScript编译性能示例

    2024-04-19 09:43:03
  • 解决Dreamweaver不支持中文文件名

    2008-06-04 09:37:00
  • 解决python调用matlab时的一些常见问题

    2022-10-13 16:11:01
  • Golang 内存模型The Go Memory Model

    2024-05-25 15:16:50
  • Python完成哈夫曼树编码过程及原理详解

    2023-10-16 03:09:39
  • Python函数学习笔记

    2022-10-29 03:51:07
  • Python对多个sheet表进行整合实例讲解

    2021-01-15 06:18:24
  • python基于paramiko库远程执行 SSH 命令,实现 sftp 下载文件

    2022-11-09 23:31:31
  • python实现按关键字筛选日志文件

    2022-12-28 21:45:49
  • 常用一些Javascript判断函数

    2024-05-05 09:23:12
  • Python爬取你好李焕英豆瓣短评生成词云的示例代码

    2021-04-06 12:13:21
  • Django 自动生成api接口文档教程

    2022-09-11 06:40:26
  • asp之家 网络编程 m.aspxhome.com