---
title: "Discussion on \"Everything Related to Document.querySelector()\" | Hashnode"
description: "Discussion on \"Everything Related to Document.querySelector()\". The blog shows how to use document.querySelector() method to select or give reference of HTML elements in JavaScript .\nDocument.querySelector() :-\nThe querySelector() method returns the first element that matches a specified CSS Selector(s) in the do..."
url: "https://hashnode.com/posts/everything-related-to-documentqueryselector/5fddf525b78ac62dff80c6e6"
---

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

Discussion

# [Everything Related to Document.querySelector()](https://anjalirohira.hashnode.dev/everything-related-to-documentqueryselector?utm_source=hashnode&utm_medium=feed)

The blog shows how to use document.querySelector() method to select or give reference of HTML elements in JavaScript . Document.querySelector() :- The querySelector() method returns the first element that matches a specified CSS Selector(s) in the do...

Dec 19, 2020 · 3 min read · anjalirohira.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Anjali Rohira](https://hashnode.com/@anjalirohira)

@anjalirohira

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

Full-stack Web App Developer , UI/UX Designer , Freelancer Guide

Striving to solve real-world problems with the design and code that revolves around crafting delightful human experiences

## Responses 1

Markdown supported · ⌘↵ to post

[Prakhar Varshney](https://hashnode.com/@Prakhar10V)

[Dec 19, 2020](https://hashnode.com/posts/everything-related-to-documentqueryselector/5fddf525b78ac62dff80c6e6/comment/5fde2ee41485f22e24b34f5e)

Amazing explanation!

[Anjali Rohira](https://hashnode.com/@anjalirohira)

[Dec 20, 2020](https://hashnode.com/posts/everything-related-to-documentqueryselector/5fddf525b78ac62dff80c6e6/comment/5fde2ee41485f22e24b34f5e#reply-5fdeef9db78ac62dff80d5ff)

Thankyou so much Prakhar . Glad you liked it .
