Web Technology20795 marksInserting CSS
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]
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...