Month: May 2021

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   >>

Use of Attribute in DOM

HTML Attributes & DOM Object’s Properties – understand the relationship between HTML attributes & DOM object’s properties. setAttribute() – set the value of a specified attribute on a element. getAttribute() – get the value...
READ MORE   >>

Task Using Traversing Elements in DOM

Task 1 : In the below task find all the next sibling of "spl" id H1 Tag  <div id="demo">                 <h1>This is Heading...
READ MORE   >>

Traversing Elements in DOM

Get the parent element – get the parent node of an element. Get child elements – get children of an element. Get siblings of an element – get siblings of an element. Get the parent...
READ MORE   >>

Recent Comments

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