HTML5 Compliant - Trailing Space in Class Attribute

后端 未结 4 2097
心在旅途
心在旅途 2021-01-12 22:20

I know that technically HTML5 is a \'living spec\' but I\'m wondering if it\'s compliant to have trailing spaces inside of a class name. I didn\'t see any reference to this

4条回答
  •  无人共我
    2021-01-12 22:34

    Anything that knows how to handle class attributes should be fine with this. It is possible to give a tag multiple classes by separating them with spaces so anything which reads them had better know how to deal with spaces.

提交回复
热议问题