HTML: The difference between attribute and property

Attributes are in your HTML text document/file, whereas properties are in HTML DOM tree.

Attributes are static, whereas properties are dynamic (can be change by your JS code).

From: http://jquery-howto.blogspot.com

Advertisements