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
The property is an attribute in the DOM, an object in JavaScript, an attribute on an HTML tag, and its value can only be a string; many friends are easily confused.analyzing property and attribute based on JavaScriptThere is such a piece of code in
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
JavaScript Window browser object model method and attribute summary, window Object Model
Window object
All browsers support window objects. It indicates the browser window.
All JavaScript global objects, functions, and variables are automatically
JavaScript is a big way, how can I come to join in the ride ^_^Basically their knowledge of JS storage is very few, previously useful jquery to achieve some simple functions, to talk about JS's past life, the ins and outs, I was a small white.
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.
property
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.