Apply a class to a br tag?

后端 未结 10 1436
感情败类
感情败类 2021-02-06 21:10

Is the following valid HTML?


As an HTML element I can\'t see why it wouldn\'t be, but I don\'t think I\'ve eve

10条回答
  •  星月不相逢
    2021-02-06 21:51

    It is valid in HTML 4.01, because the class attribute is allowed for the br element. It is also valid in HTML5 in HTML serialization, because the class attribute is allowed for all elements. It is not valid XHTML without a matching
    .

提交回复
热议问题