Can I add custom attribute to HTML tag like this: <tag myAttri="myVal" />
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
Here is the example:
Here is another example how to set custom attributes into body tag element:
Then read the attribute by:
You can test above code in Console in DevTools, e.g.