Posts

Showing posts with the label javascript dom properties

querySelector() and querySelectorAll() in Dom Manipulations Methods in Javascript

Image
querySelector() and querySelectorAll()

DOM Manipulation | How to get elements using ID , Class and Tags with working code and output snaps(Also covered "how to change CSS styles of different tags using JS")

Image
 How to get elements using ID , Class and Tags in Javscript  /*HERE IS THE CODE . JUST COPY AND PASTE IN YOUR TEXT EDITOR*/ <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <meta http-equiv="X-UA-Compatible" content="ie=edge">   <title>Test Page</title> </head> <body>         <h1 class="header-tag" style="text-align:center; color:red;">EXERCISE</h1>           <p>Lorem ipsum dolor sit amet.</p>           <p>Lorem ipsum dolor sit amet.</p>           <p>Lorem ipsum dolor sit amet.</p>           <p>Lorem ipsum dolor sit amet.</p>           <p>Lorem ipsum dolor sit amet.</p>       ...

Practice Exercise for drop down selection using DOM Manipulation

Image
Practice Exercise for drop down selection using DOM Manipulation