---
title: "Discussion on \"querySelector() & querySelectorAll() in javaScript\" | Hashnode"
description: "Discussion on \"querySelector() & querySelectorAll() in javaScript\". Whenever we make a website or web app using javaScript, the foremost thing which we do is to make reference variables of our HTML elements."
url: "https://hashnode.com/posts/queryselector-and-queryselectorall-in-javascript/6142750b9c949972b85c797d"
---

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

Discussion

# [querySelector() & querySelectorAll() in javaScript](https://simrancodes.hashnode.dev/queryselector-and-queryselectorall-in-javascript?utm_source=hashnode&utm_medium=feed)

Whenever we make a website or web app using javaScript, the foremost thing which we do is to make reference variables of our HTML elements.

Sep 15, 2021 · 3 min read · simrancodes.hashnode.dev  
Updated May 10, 2022  
Read the article

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

## Written by

[Simran Gangwani](https://hashnode.com/@freelancewithsimran)

@freelancewithsimran · Indore, India

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

Frontend developer Intern @MekmihansTechnologies | Ex Technical Content Writer @ScalerTopics & @Codedamn

Frontend developer | ReactJs | UI Designer | Graphic Designer | Frontend developer Intern @MekmihansTechnologies | Ex Technical Content Writer @ScalerAcademy &amp; @Codedamn | Web Dev Lead @TedX DAVV | GDSC Campus Lead'23 &amp; Tech Lead'23

## Responses 1

Markdown supported · ⌘↵ to post

[Atul Tameshwari](https://hashnode.com/@codingWolf-at)

[Sep 16, 2021](https://hashnode.com/posts/queryselector-and-queryselectorall-in-javascript/6142750b9c949972b85c797d/comment/61431f872d0e2479882a1d07)

Very well explained 👍

[Simran Gangwani](https://hashnode.com/@freelancewithsimran)

[Sep 16, 2021](https://hashnode.com/posts/queryselector-and-queryselectorall-in-javascript/6142750b9c949972b85c797d/comment/61431f872d0e2479882a1d07#reply-61438bed2d0e2479882a2dc2)

Thank you, glad you liked it !!
