---
title: "Discussion on \"Types of CSS Selectors\" | Hashnode"
description: "Discussion on \"Types of CSS Selectors\". Mainly three types are used to apply CSS style to HTML Content.\n1. Simple Name:-\nId Name Class Name HTML tag Name\nYou can able to apply the CSS style by targeting direct the id of the HTML tag, but make sure you need to add **'#' **before the id name..."
url: "https://hashnode.com/posts/types-of-css-selectors/63984db74fd0c8ba7ca98de9"
---

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

Discussion

# [Types of CSS Selectors](https://drashtijethvablogs.hashnode.dev/types-of-css-selectors?utm_source=hashnode&utm_medium=feed)

Mainly three types are used to apply CSS style to HTML Content. 1. Simple Name:- Id Name Class Name HTML tag Name You can able to apply the CSS style by targeting direct the id of the HTML tag, but make sure you need to add \*\*'#' \*\*before the id name...

Dec 13, 2022 · 3 min read · drashtijethvablogs.hashnode.dev  
Updated Mar 21, 2023  
Read the article

-   [#css-property](https://hashnode.com/tag/css-property)
-   [#css](https://hashnode.com/tag/css)
-   [#css-selectors](https://hashnode.com/tag/css-selectors)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Drashti Jethva](https://hashnode.com/@drashtijethva)

@drashtijethva · India

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

I am Frontend Developer & Developer blogger

Microsoft BETA Student Ambassador | Frontend Developer | Data Structure &amp; Algorithm Expert | Developer Blogger

## Responses 1

Markdown supported · ⌘↵ to post

[Drashti Jethva](https://hashnode.com/@drashtijethva)

[Dec 20, 2022](https://hashnode.com/posts/types-of-css-selectors/63984db74fd0c8ba7ca98de9/comment/63a15a9ca59cad9bdbba0f66)

Learn & Share this blog with excited learner & Subscribe my newsletter for more practical approach towards development.
