I was wondering if you can define your own attributes in HTML. For example, in an HTML div there is a range of attributes such as style , title , class , etc. Can you compose and add your own while remaining syntactically correct?
For example: <div class="example" test_item="20"></div>
The need for this is related to Javascript and data.
jquery syntax html attr
Alex
source share