In this article, I’ll teach you more HTML DOM element properties and attributes.
When you add an anchor link 🔗 to your website it has many attributes for example: href …ect as well img tag,p,h1…h6…
Today I want to access these attributes via DOM.
You can change the href destination for example https://www.youtube.com.
You can change any attribute you want for example you change img src attribute, you can retrieve input value using input.value or checking if checkbox is checked or not by using checkbox.checked etc.
If I type something inside input then the value will vary.
You can also check placeholder…etc.
If you didn’t grasp the concept I just scratched the surface you can google it.
Please learn more about this concept and let me know in the comment below.