@rohankhan5655
Posted
Well hopefully you was using this way to access html element
Let button = document.getElementbyId("button");
But, Now most of developers do not use this. Way to access html element.
Use this ( recommended)
Let button = document.querySelector(".button");
.button if Class other-wise # for id To access all element use this
Let p = document.querySelectorAll("p");
THAT CODE WILL BE ACCESS ON All P Tag Element
For more info kindly search on Google javascript queryselectors, For better understanding