Click here to Skip to main content
15,881,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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 ?
Posted

1 solution

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[^].
 
Share this answer
 
Comments
[no name] 3-Sep-14 7:30am    
Thank you nathan for your valuable answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900