Tag: dom

Task using Manipulating Elements

Task 1 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <ul id="menu"> <li>Home</li> <li>Services</li> </ul> ...
READ MORE   >>

Manipulating Elements in DOM

1. createElement() – create a new element and returns a new Node with the Element type. Syntax let element = document.createElement(htmlTag); 2. appendChild()  – append a node to a list of child nodes of a specified parent...
READ MORE   >>

Task Using Selecting Attribute of DOM

In the Below HTML Code task perform the following : First select the button with the id send by using the querySelector() method.Second, set the value of the name attribute to submit using the setAttribute() method. Then get the value of name...
READ MORE   >>

Dom in JavaScript

DOM is Document Object Model that is used to represent the data of a document on the web and mainly it is an object-oriented representation of the web page that can be modified easily with a scripting language like JavaScript. DOM is an...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved