HTML ids and classes
HTML ids and classes. Ids are unique within the HTML document, they can be used to identify HTML elements.
Classes are not unique, they can be used more than once.
Ids and classes can be used within CSS documents to specify how specific HTML elements need to look like.
Ids can be used within JavaScript code to perform specific actions to that HTML element.
Comments
Post a Comment