CSS Selectors

currently unavailable img

Many of us are familiar with HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets) as they are the core technologies used for Front End Web Development, one of it is used to construct and layout the webpage, and another one is responsible for the styling, and appearance of the webpage

The browser first layouts the structure of the page and then combines the CSS styles to the document. But, ever wondered how does the browser come to know which styling is to be applied to which element in external CSS? Here, CSS Selector plays the role.

CSS Selectors select the HTML element. and apply the set of CSS rules to the selected element.
The CSS Selectors are classified into five types.