Asked • 05/30/19

What is the difference between properties and attributes in HTML?

After the changes made in jQuery 1.6.1, I have been trying to define the difference between properties and attributes in HTML.Looking at the list on the <a href="http://blog.jquery.com/2011/05/12/jquery-1-6-1-released/">jQuery 1.6.1 release notes</a> (near the bottom), it seems one can classify HTML properties and attributes as follows:- Properties: All which either has a boolean value or that is UA calculated such as selectedIndex. - Attributes: 'Attributes' that can be added to a HTML element which is neither boolean nor containing a UA generated value.Thoughts?

1 Expert Answer

By:

Shah Newaj S. answered • 10/19/19

Tutor
New to Wyzant

Programming Tutor Specialized in C, C++, Python and Javascipt

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.