CSS selectors are used to select HTML elements based on their id,
classes, types, attributes, values of attributes etc.
CSS Selectors are of different types:-
GROUPING SELECTOR
then we have output as
ID Selector
CSS Selectors are of different types:-
- Element selector
- ID selector
- Class selector
- Grouping selector
GROUPING SELECTOR
- It is used to minimize the code.
- To group selectors, separate each selector with a comma.

then we have output as
ID Selector
- it is used to select the id attribute of an HTML tag to find the specific element.
- find an element with a specific id, write a hash character, followed by the id of the element.
0 comments:
Post a Comment