What’s the DOM? #2

Accessing HTML elements via class

HTML paragraph tag
accessing element by class name

Accessing HTML elements via tag name

Accessing HTML elements via ID

Accessing HTML elements via query selector

accessing HTML elements via querySelector
querySelectorAll

--

--

--

I am a web developer who writes web development content for you to make web development easier

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How we started JioMart-Clone….

JS in 3 minutes

Downloading “undownloadable” web PDFs with Fiddler.

React-Redux-RESTAPI

How to develop Shopify theme **really** locally?

How to dispatch multiple async actions in one function in Redux?

node-quickq: In memory queues. Do we really need rabbitMQ?

Compile PHP 7.3.13 on CentOS 7 with OCI8 and MongoDB extension.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmadullahnikzad

Ahmadullahnikzad

I am a web developer who writes web development content for you to make web development easier

More from Medium

Taking local storage values from one HTML and retrieving it on another!

code snippet fetching our data from the response from API. Gives us carbon emissions and flight distance based on airport input

Console.log tricks : How to style a log

Looping Through an Array in JS with ForEach() function

Javascript Spinner Example Code