---
title: "Discussion on \"Pseudo elements: (::before) and (::after)\" | Hashnode"
description: "Discussion on \"Pseudo elements: (::before) and (::after)\". The ::before and ::after pseudo-elements in CSS allows us to insert content onto a page without it needing to be in the HTML.\n1. Some people gets confused in colons. Let me clarify this doubt first. It is used to be single colon initially, but in ord..."
url: "https://hashnode.com/posts/pseudo-elements-before-and-after/61f2ee5a22a38747671d6dcc"
---

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

Discussion

# [Pseudo elements: (::before) and (::after)](https://rajatgupta.net/pseudo-elements-before-and-after?utm_source=hashnode&utm_medium=feed)

The ::before and ::after pseudo-elements in CSS allows us to insert content onto a page without it needing to be in the HTML. 1. Some people gets confused in colons. Let me clarify this doubt first. It is used to be single colon initially, but in ord...

Jan 27, 2022 · 3 min read · rajatgupta.net  
Updated Jun 17, 2023  
Read the article

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

## Written by

[Rajat Gupta](https://hashnode.com/@therajatg)

@therajatg · Rajasthan, India

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

I write about CSS, JavaScript, React and everything in between.

Hi, I am rajat. I write about react, javascript or css 4 times a week. One more thing: I would love to work as a frontend engineer (focused on ReactJS). If you have any such role, ping me at dguptarajat@gmail.com.

## Responses 1

Markdown supported · ⌘↵ to post

[Manjushree](https://hashnode.com/@Manjushree)

[Jan 28, 2022](https://hashnode.com/posts/pseudo-elements-before-and-after/61f2ee5a22a38747671d6dcc/comment/61f43a5d6bb59d5767db4012)

Thanks Rajat! For writing daily blogs on css... It's helping me to learn atleast one new thing in css from your blogs.

Keep rocking with your blogs daily!!

[Rajat Gupta](https://hashnode.com/@therajatg)

[Jan 28, 2022](https://hashnode.com/posts/pseudo-elements-before-and-after/61f2ee5a22a38747671d6dcc/comment/61f43a5d6bb59d5767db4012#reply-61f43fbc4bea13573e62b476)

Thanks for the appreciation Manjushree! I'll write every single day related to whatever we are learning at neog.
