What is the proper HTML entity for the “x” in a dimension?

别等时光非礼了梦想. 提交于 2019-11-29 23:28:32

×

  • 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.

The proper question is which character should be used. The use of entity references for characters adds no semantics. There is no formal standard on denoting dimensions, but clearly this is about multiplication rather than the Latin letter x, so “x” (×) is the correct character.

In practice, this is more of an orthography and typography question than about “semantic web”. Search engines, browsers, etc., don’t really care; it’s the human readers that matter.

You're doing everything correctly. I believe × here is [semantically] related to the operation of multiplication, i.e. in fact you write the area by specifying two dimensions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!