I'm new to html/html5, just a question on properties of HTMLElement.
For example, HTMLInputElement
has properties such as name
, type
, value
, so I thought every available attributes is properties for an element, and of course class attribute should be a property since we can write:
<input class="XXX" type="submit" value="Submit"/>
but according to the link from MDN below, class
is not a property for HTMLInputElement
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement
we can see that class
is not in the properties list.
So what kind of attributes can be considered as properties
?