什么是适用于“x”的HTML实体?在一个维度? [英] What is the proper HTML entity for the "x" in a dimension?

查看:173
本文介绍了什么是适用于“x”的HTML实体?在一个维度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

维度& times; 是合适的HTML实体吗?我想要在语义上是正确的,但这引发了问题,将维列为 2x 3甚至语义?如果 x 表示by,我会使用字母x还是×?



在我的代码中,我一直使用 2& Prime;& nbsp;& times;& prime; 或2″ ×  3&Prime ;.根据适用于印刷风格的元素的建议,不间断空格可防止尺寸被包装。

×




  • Unicode: U + 00D7 MULTIPLICATION SIGN

  • HTML :& times; ×
  • \00d7


请参阅维基百科有关乘法符号


在数学中,符号× (读取时间或乘以)主要用于表示一个对象的几何尺寸,例如注意到一个对象的几何尺寸[...]房间面积为10×12英尺。






根据具体情况, 数学元素(对于 MathML )元素可能有用。 p>

Is the proper HTML entity for giving dimensions ×? I want to be semantically correct, but that begs the question, is listing a dimension as 2" x 3" even semantic? If the x represents "by", would I use the letter x or ×?

In my code I've been using 2″ × 3″, or 2″ × 3″. The non-breaking spaces are to prevent the dimension from being wrapped, as per the suggestions found in The Elements of Typographic Style Applied to the Web.

解决方案

×

  • Unicode: U+00D7 MULTIPLICATION SIGN
  • HTML: ×, ×
  • CSS: \00d7

See the Wikipedia article about the 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.


Depending on the context, the math element (for MathML) element could be of use.

这篇关于什么是适用于“x”的HTML实体?在一个维度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆