Apply a class to a br tag?

后端 未结 10 1423
感情败类
感情败类 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:54

    Yes you can, from the w3c specification : http://dev.w3.org/html5/markup/br.html


    element can make use of global attributes, and class is one of them.

提交回复
热议问题