COLOR PICKER. There are four core attributes that are majorly used. HTML tag. So if we want to find that element by id, it should return one element. 3.2.5.1 The id attribute. The HTML id attribute is a unique characteristic, which is used to specify the HTML element or document. You can use IDs in CSS or also may refer div by id in jQuery etc. The HTML ID attribute provides a way to uniquely identify an area of a web page for CSS styles, anchor links, and targets for scripts. HTML id attribute Syntax. The div with ID attribute and CSS example. The id is also an attribute of the div tag. The id property of the Element interface represents the element's identifier, reflecting the id global attribute.. It may be used by an a element to create a hyperlink to this particular element. The class Attribute. In CSS we define the id with # hashtag, and in html we set that id… This is the color which the link will change to at the moment it is clicked. But unlike id, the class attribute does not have to be unique in the document. Attribute selectors have less specificity than an ID, more than an element/tag, and the same as a class. The active link changes the color of the link the moment it is clicked by a user. The visited attribute changes the color of the link once you user has clicked on it (and visited the site). Like id attribute, the class attribute is also used to identify elements. If the id value is not the empty string, it must be unique in a document.. Let’s see the id syntax, which is given below: data-* attributes allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, extra properties on DOM, or Node.setUserData(). The value of this attribute must be the id attribute of a