0% found this document useful (0 votes)
18 views1 page

DOM Manipulation Interview Questions

The document outlines four web technology tasks involving JavaScript. These tasks include creating a toggle for light and dark modes, updating greeting text based on system time, changing font size and color of a paragraph, and explaining the structure of the DOM Tree with a diagram. Each task focuses on different interactive elements and functionalities in web development.

Uploaded by

vishwaranjan41
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

DOM Manipulation Interview Questions

The document outlines four web technology tasks involving JavaScript. These tasks include creating a toggle for light and dark modes, updating greeting text based on system time, changing font size and color of a paragraph, and explaining the structure of the DOM Tree with a diagram. Each task focuses on different interactive elements and functionalities in web development.

Uploaded by

vishwaranjan41
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Web Tech Questions:

1. Write a JavaScript code to toggle between "Light Mode" and "Dark Mode" on a
webpage when a button is clicked. Change both background and text color
accordingly.

2. Create a section that updates the greeting text ("Good Morning", "Good
Afternoon", "Good Evening") and background color dynamically based on the
user's system time using JavaScript.

3. Create a button that, when clicked, changes the font-size and color of a
specific paragraph using JavaScript.

4. Explain the structure of the DOM Tree with a diagram. Show how tags like
<div>, <p>, and <ul> are represented as nodes in the tree.

You might also like