Attribute selectors have less specificity than an ID, more than an element/tag, and the same as a class. The id is also an attribute of the div tag. The hover attribute changes the color of the link when a user hovers over it. Another common case is to use an element's ID as a selector when styling the document with CSS. The id attribute specifies a unique id for an HTML element; the id value must be unique within the HTML document. In CSS we define the id with # hashtag, and in html we set that id… Case-insensitive attribute values. It will get the attribute value for only the first element in the matched set. It also acts as an identifier in the HTML document. It's interactive, fun, and you can do it with your friends. Using the ID attribute as a hook for styles, while also using them as anchors for links or targets for scripts, means that they still have an important place in web design today. @Thomas: There is no necessary tie between name and id at all. If this attribute is present and the element has an ID, then the attribute's value must be equal to the element's ID. The identifier uniquely identifies a particular HTML element on the page. The data() method used for updating data does not affect attributes in the DOM. Codecademy is the easiest way to learn how to code. In earlier versions of the language, this attribute was intended as a way to specify possible targets for fragment identifiers in URLs. The .data() method allows attaching data of any type to DOM elements in a safe way from circular references and memory leaks. The name attribute of an HTML form element, by contrast, does not have to be unique, and often isn't, such as with radio buttons or pages with multiple