Recording for JavaScript Masterclass #16 HTML and JavaScript || Hindi #javascriptmasterclass



Recording for JavaScript Masterclass #16 HTML and JavaScript || Hindi #javascriptmasterclass

Recording for JavaScript Masterclass #16 HTML and JavaScript || Hindi #javascriptmasterclass

https://drive.google.com/file/d/1-ToHtoG2367KDBOjPNq5j9f9K5w5RBzT/view?usp=share_link This is a link for the PDF of today’s lecture.

DOM(Document Object Modal)
The Born of JavaScript
Accessing/Selecting Element
document.getElementById() method to select an element by its id attribute.
document.getElementsByClassName() method to select an element by its class attribute.
document.getElementsByTagName() method to select an element by its tag.
document.getElementsByName() method to select an element by its name attribute

document.querySelector() You can select documents on many different kinds of CSS selectors.
e.g
#id: id selector
.class: Class Selector
[attr]: Attribute selector

document.querySelectorAll() method multiple elements that match the selector

.setAttribute()
.innerHTML

#javascriptmasterclass
#javascript