且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

关闭HTML标记标记可以有属性吗?

更新时间:2023-12-05 21:19:10

没有。由于结束标记仅用于定义范围,因此必须在打开标记时加载HTML元素的属性和属性。它是如何被解析的,因为它是从字符串值解析为格式化数据,并且格式的维护和执行方式是通过具有标准化的结构并且易于从浏览器用户消费内容的JIT过程中理解。 br />


如果您真的对Web框架和操作感兴趣,请查看 http://www.w3.org/standards/webdesign/htmlcss [ ^ ]。
No. Because end tags are solely to define scope, the properties and attributes of the HTML element must be loaded when the tag is opened. It's how it's parsed, since it is parsed from a string value into formatted data, and the way that format is maintained and executed is by having a structure that is standardized and easily understood from the JIT processes that the browser users to consume content.

If you are genuinely interested in web framework and operation, please have a look at http://www.w3.org/standards/webdesign/htmlcss[^].