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
Today, when I was working on a job interview, David asked me to add a title: The difference between ID and name in HTML. A listen to Ah, the HTML ID and name what is the difference, but usually in use, not how to think, just so use it, oh, in fact,
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
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
This is not a mistake, it is recommended to label the corresponding form element with the UX convenience. For example, the Name field:Then give an examplenazwa:Make the label's for point to the ID of input, so that when you click the label, input
the difference between the ID and the name attribute in inputWeb site for a long time, but has not yet figured out the difference between the name and ID in input, recently learning jquery, and encountered this problem, on the Internet to collect
The difference between the ID and Name attributes of HTML elements. The idname attribute of html elements
Differences between the ID and Name attributes of HTML elementsToday, I was suddenly excited. I want to learn more about the specific
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 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
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.