---
title: "Discussion on \"pseudo selector\" | Hashnode"
description: "Discussion on \"pseudo selector\". div:first-child{\ncolor:red\n}\ndiv :fist-child{\ncolor:green\n}\nthe difference is of space between div and child if not space means only direct child\nif space is given all the element"
url: "https://hashnode.com/posts/pseudo-selector/6590b917772aba69fafb04d6"
---

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

Discussion

# [pseudo selector](https://simpledsa.hashnode.dev/pseudo-selector?utm_source=hashnode&utm_medium=feed)

div:first-child{ color:red } div :fist-child{ color:green } the difference is of space between div and child if not space means only direct child if space is given all the element

Dec 31, 2023 · 1 min read · simpledsa.hashnode.dev  
Read the article

-   [#psudo-selector](https://hashnode.com/tag/psudo-selector)

## Written by

[unknown](https://hashnode.com/@sklfje)

@sklfje

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
