DEV Community

Sathish K
Sathish K

Posted on • Edited on

Dom and queryselector()

what is the DOM ?
DOM-Document Object Model.

The Document Object Model (DOM) in JavaScript is a programming interface for HTML and XML documents. It represents the structure of a document as a logical tree, where each part of the document (elements, attributes, text, etc.) is represented as a "node" or "object."

what is the queryselector() ?

JavaScript method used to select the first HTML element within the document that matches a specified CSS selector or group of selectors. It is a powerful tool for DOM manipulation, allowing developers to access and modify elements based on their tag name, class, ID, or any other valid CSS selector.

Top comments (0)