Is it correct to use single quotes for HTML attributes?

前端 未结 15 2704
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 05:57

Recently I\'ve been seeing a lot of this:


    

        
15条回答
  •  孤城傲影
    2020-12-01 06:51

    It's certainly valid to use single quotes (HTML 4.01, section 3.2.2). I haven't noticed such a trend, but perhaps there's some framework that powers web sites you've visited that happens to quote using single quotes.

提交回复
热议问题