Categories
CSS HTML

HTML tags id vs. class

class can be used anywhere (on other elements in the page)

id should be associated to one tag only (although HTML won’t complain if it is not unique). id can also be used as anchors in the HTML to link in the page.

Leave a Reply

Your email address will not be published. Required fields are marked *