html - 维度中 "x"的正确 HTML 实体是什么?

标签 html character html-entities semantic-markup typography

× 是否是提供维度的正确 HTML 实体?我想在语义上是正确的,但这引出了一个问题,将维度列为 2"x 3" 甚至语义吗?如果 x 表示“by”,我会使用字母 x 还是 ×?

在我的代码中,我一直在使用 2″ × 3″,即 2″ × 3″。根据 The Elements of Typographic Style Applied to the Web 中的建议,不间断空格是为了防止维度被包裹。 .

最佳答案

×

  • Unicode:U+00D7 乘法符号
  • HTML: ×, ×
  • CSS:\00d7

请参阅有关 multiplication sign 的维基百科文章:

In mathematics, the symbol × (read as times or multiplied by) is primarily used to denote the […]

  • Geometric dimension of an object, such as noting that a room is 10×12 feet in area.

根据上下文,math element (对于 MathML )元素可能有用。

关于html - 维度中 "x"的正确 HTML 实体是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12009545/

相关文章:

php - 动态计算字段中的字符

Ruby gem 安装和 "No such file to load"

Java JTextPane HTML 编辑器 UTF-8 字符编码

javascript - 在 javascript 按钮中分配 html 实体代码不起作用

html - 引导网格系统不工作

java - 单击超链接时将所选信息从 JSP 发送到 servlet

javascript - 使用单个函数更新多个div的charcount

C++ 字符串比较

html - 图例 CSS 中的居中文本

html - 用于电子邮件通讯的带有 CSS 的选项卡菜单