⚡ Each correct answer carries +1 mark and each wrong answer carries -0.25 negative marking.
What does DOM stand for?
The DOM represents a web page as:
Which object is the root of the DOM hierarchy?
Which method is used to access an element by its ID?
Which DOM method returns a collection of elements by class name?
Which method selects the first matching element using a CSS selector?
Which method returns all matching elements using a CSS selector?
Which property is used to change HTML content inside an element?
Which property is used to change only text content (without HTML)?
Which DOM property is used to change CSS style of an element?
How do you change text color of an element using DOM?
Which DOM event occurs when a user clicks an element?
Which event occurs when a key is pressed?
Which event is triggered when the mouse moves over an element?
Which event is triggered when the page finishes loading?
Which property is used to add or remove CSS classes dynamically?
Which method is used to add an event listener to an element?
Which method removes an event listener from an element?
Which DOM method is used to create a new HTML element?
Which method is used to add a newly created element to the DOM?