If you are using JavaScript/CSS, you must use 'id' of control to apply any CSS/JavaScript stuff on it. The name attribute, however, is used in the HTTP request sent by your browser to the server as a variable name associated with the data contained in the value attribute. I would expect a SO answer to contain some semantic info regarding the difference between id and name, when to use each one, etc. Are there two ways to jump to a fragment identifier in HTML? The id will give an element a id, so once you write real code, (like JavaScript) you can use the id to read elements. A checkbox is a form element that allows the user to select multiple options from a range of options. 1) It is used to identify the HTML element through the Document Object Model (via Javascript or styled with CSS). The use of segments in non-relocating assemblers. Is bitcoin.org or bitcoincore.org the one to trust? It will just make it easier to hook it with CSS and JavaScript. Which to use? Getting Elements by ID, Tag Name, or Class to Code with JavaScript By Chris Minnick, Eva Holland In JavaScript, the getElementBy methods provide easy access to any element or groups of elements in a document without relying on parent/child relationships of nodes. For example, it can provide a control for the user to enter text. However, id must be unique, and name in some cases shouldn’t—think radio buttons. site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. table3: ID, Equipment, EquipmentOwner. attribute must be unique. What are valid values for the id attribute in HTML? Where should I put