2079 6

CSC329 ยท 2079 ยท 5 marks

What are the usages of class and id selectors in CSS? Illustrate with example.

What are the usages of class and id selectors in CSS? Illustrate with example. [5]

Web TechnologyChapter 3: Cascading Style SheetsInserting CSS

The ID selector uses the id attribute of an HTML element to select a specific unique element. The id of an element must be unique within a page, so the ID selector is used to select only one unique element. To select an element with a specific ID, we write a hash () character followed by the ID o...