Computer Science, asked by nandita49some, 4 months ago

it is given to the attributes or property​

Answers

Answered by Ruchi332
1

Answer:

For a given DOM node object, properties are the properties of that object, and attributes are the elements of the attributes property of that object. ... The type property is a reflected property for the type attribute: Getting the property reads the attribute value, and setting the property writes the attribute value.

Answered by sahildudhal
1

Answer:

The Attributes are defined by HTML whereas the properties are defined by the DOM. The attribute's main role is to initializes the DOM properties. So, once the DOM initialization complete, the attributes job is done. Property values can change, whereas the attribute values can never be changed.

Similar questions