In previous development, we always used the default HTML attributes, such as class, name, etc. I switched jobs to Huawei's outsourcing company and built a mall system using an open source framework. When coding, I encountered the following situation. There are many custom tags in the tags.
1. It has no impact on HTML JS. You can write n multiple attributes.
2. As long as the defined attribute name has the same name as the original default attribute.
3. This kind of custom attribute will not be parsed by the browser
4. JS can obtain its value through xxx.getAttribute("the attribute you wrote")
The benefits of this should be obvious. This should be used more in the future.