Why is
an HTML element rather than an HTML entity?

前端 未结 8 1656

Why indeed? Wouldn\'t something like &br; be more appropriate?

8条回答
  •  粉色の甜心
    2020-12-09 08:06

    Yes. An HTML entity would be more appropriate, as a break tag cannot contain text and behaves much like a newline.

    That's just not the way things are, though. Too late. I can't tell you the number of non-XML-compatible HTML documents I've had to deal with because of unclosed break tags...

提交回复
热议问题