1

我已经搜索并阅读了这个问题。这里有一些问题:
大写还是小写文档类型?
HTML 元字符集应该是小写还是大写?
其他地方已经部分讨论了它(正如您在这两个问题中看到的那样)。
但是标签名称和属性呢?
我知道大写和小写都有效,但我想知道使用它们是否有好处?

更新:我看到的唯一好处是与 xhtml 以小写方式兼容。

4

2 回答 2

0

You should use lowercase letters because they are the 'correct' way of doing things (XHTML). It's basically a standard among everyone so that everything is consistent.

Even if you don't agree with the HTML is XML argument (I certainly do), almost all web developers use lowercase and many will get upset when they are forced to use uppercase letters and it will certainly lead to inconsistencies in your markup and CSS which is not a good thing.

Words formed all in capital letters are actually more difficult to read also without having the varying heights of letters (eg. a, l, p) to give your brain hints so you can skim the text faster.

于 2013-03-24T03:44:35.063 回答
0

没有任何好处。这只是关于可读性。选择适合您的那一款。

事实:通常,在互联网上,当有人用全部大写的文字书写时,这意味着他是“粗鲁”。

于 2013-03-24T07:39:34.267 回答