关闭HTML标记标记可以有属性吗? [英] Can I have attributes on closing HTML markup tags?

查看:91
本文介绍了关闭HTML标记标记可以有属性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我心中有一个问题。就像我们打开HTML标记标签的属性一样,

我们可以在关闭HTML标记标签时拥有属性吗?如果没有那么为什么?

I have a question on my mind. Like we have attributes on opening HTML markup tags,
Can we have attributes on closing HTML markup tags? If not then why ?

推荐答案

没有。由于结束标记仅用于定义范围,因此必须在打开标记时加载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[^].


这篇关于关闭HTML标记标记可以有属性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆