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,
ID differs from name in HTMLA name can correspond to multiple controls at the same time, such as checkbox and radioAnd the ID must be the only one in the full-text filePurpose of the ID1) ID is the identity of the HTML element, mainly in the client
ID differs from name in HTMLa name can correspond to multiple controls at the same time , such as checkbox and radioAnd the ID must be the only one in the full-text filePurpose of the ID1) ID is the identity of the HTML element, mainly in the client
Difference between ID and name in HTML
A name can correspond to multiple controls at the same time, such as checkbox and radio.
The ID must be unique in the entire document.
Purpose of ID1) ID is the identity of HTML elements, mainly used in client
A long time ago, I remember in ASP. net, as long as the name attribute is added to the server control, there will be a warning, as shown in, over time, that for HTML, the name attribute is redundant and can be removed, until ASP. the emergence of
It can be said that almost every person who has done web development has asked, exactly what is the difference between the ID and name of the element? Why is there an ID and name?! And also we can get the classical answer: ID is like a person's
Analyzes the advantages of class over id when marking HTML elements. htmlclass
This article mainly introduces the advantages of class over id when marking HTML elements. The CSS priority of id is higher than that of class, therefore, it is more
How to Create helpcontextid in HTML Help Workshop, Press F1 in the vbprogram to pop up the corresponding context, the documents in chm format have been written, the tables of context and index file have been written. What should I do next? Please
Difference
It can be said that almost every person who has done web development has asked, exactly what is the difference between an element's ID and a name? Why do I have ID and name?! And also we can get the most classical answer: ID is like a
HTML Experiment:1. Create a new webpage, enter the content, open it in the browserHTML> Head> Metahttp-equiv= "Content-type"CharSet= "Utf-8"/> Head> Body>Name:inputtype= "text"ID= "Intxt"/>BR/>Password:inputtype= "text"ID= "Intxt"/>
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.