HTML5: which is better - using a character entity vs using a character directly?

后端 未结 5 2121
忘掉有多难
忘掉有多难 2021-02-01 15:42

I\'ve recently noticed a lot of high profile sites using characters directly in their source, eg:

“Hi there”

Rather than:

5条回答
  •  别那么骄傲
    2021-02-01 16:10

    Using characters directly. They are easier to read in the source (which is important as people do have to edit them!) and require less bandwidth.

提交回复
热议问题