1) Avoid Duplication of code, 2) Browser doesn't have to repeatedly load the same CSS, 3) Consistency of design, 4) Entire website's look can be changed from 1 place.
11 of 13
HTML ID notes
ID tags are used to identify individual <div>'s on our page; 2) each id tag is only used once on a page to identify a particular area, 3) can have different id tags but no duplcates, ID is used w/ JS to act on diferent areas on a page, in CSS id is #
12 of 13
ID vs Class Q
Only 1 elmenet can hae a given ID (unique); class can be assigned mltiple elements
Comments
No comments have yet been made