Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories. Property is an
HTML global attribute and html global attribute
In addition to the original global attributes, HTML5 also adds 8 new global attributes.
1. Unique id of the element specified by the id attribute
The id attribute specifies the unique id of the HTML
This article mainly introduces the methods and attributes of JS operations on Array arrays in detail. If you need them, please refer to them, this article summarizes the three attributes of the Array, including the length attribute, prototype
All browsers support window objects. It indicates the browser window.
Difference between Property and Attribute: propertyattribute
Property and attribute are very confusing. the Chinese translation of the two words is also very similar (property: attribute, attribute: feature). However, the two are actually different
In the HTML DOM, all parts can be considered nodes, and element objects represent HTML elements. An element is a child of document that describes the methods and properties that are common to all elements, and all elements in the HTML dom inherit
Today, there is a small problem, in the building DOM, IE can not pass Element.setattribute (' name ', _variable); and element.name = _variable; In this form, add the name attribute to the element, whether it is IE6 or IE7. (IE8 is OK, but ie8rc1 not)
Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.