---
title: "Discussion on \"Why are CSS selectors used in HTML?\" | Hashnode"
description: "Discussion on \"Why are CSS selectors used in HTML?\". Selectors are the basic concept for styling HTML elements. Selectors are used to specifying which HTML elements will receive which styles. There are different types of selectors such as class type, ID type, and, attributes type, etc\nDifferent types o..."
url: "https://hashnode.com/posts/why-are-css-selectors-used-in-html/63e29c3cde1b1788476408bb"
---

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

Discussion

# [Why are CSS selectors used in HTML?](https://aakarshit.hashnode.dev/why-are-css-selectors-used-in-html?utm_source=hashnode&utm_medium=feed)

Selectors are the basic concept for styling HTML elements. Selectors are used to specifying which HTML elements will receive which styles. There are different types of selectors such as class type, ID type, and, attributes type, etc Different types o...

Feb 7, 2023 · 1 min read · aakarshit.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#html5](https://hashnode.com/tag/html5)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Aakarshit Choudhary](https://hashnode.com/@Aakarshit)

@Aakarshit

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

Full-Stacks Developer Beginner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
