---
title: "Discussion on \"CSS Selectors 101: Targeting Elements with Precision\" | Hashnode"
description: "Discussion on \"CSS Selectors 101: Targeting Elements with Precision\". **\nWhy CSS selectors are needed**\nCSS selectors are the foundation of styling. CSS selectors are a way of selecting HTML elements that we want to style.\n1. Element selector\nElement selector selects all HTML elements of the same type.\n“paint all the h..."
url: "https://hashnode.com/posts/css-selectors-101-targeting-elements-with-precision/698dcf5dc630b116111c4339"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CSS Selectors 101: Targeting Elements with Precision](https://selectorscss.hashnode.dev/css-selectors-101-targeting-elements-with-precision?utm_source=hashnode&utm_medium=feed)

\*\* Why CSS selectors are needed\*\* CSS selectors are the foundation of styling. CSS selectors are a way of selecting HTML elements that we want to style. 1. Element selector Element selector selects all HTML elements of the same type. “paint all the h...

Feb 12 · 4 min read · selectorscss.hashnode.dev  
Read the article

-   [#targeting-elements](https://hashnode.com/tag/targeting-elements)
-   [#class-selector](https://hashnode.com/tag/class-selector)
-   [#universal-selector](https://hashnode.com/tag/universal-selector)
-   [#css](https://hashnode.com/tag/css)
-   [#selectors](https://hashnode.com/tag/selectors)
-   [#id-selector](https://hashnode.com/tag/id-selector)
-   [#group-selector](https://hashnode.com/tag/group-selector)
-   [#descendant-selector](https://hashnode.com/tag/descendant-selector)
-   [#chaicode](https://hashnode.com/tag/chaicode)

## Written by

[Shreya Kushwah](https://hashnode.com/@shreya124)

@shreya124

  
[View profile](https://hashnode.com/@shreya124)

Shreya Kushwah

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
