PRACTICAL 4
Create one webpage using javascript DOM methods.THEORY
Javascript DOM methods are used in this webpage.
IMPORTANT TAGS & ATTRIBUTES:
- getElementsById(id): Find an element by element id.
- getElementsByTagName(name):Find elements by tag name.
- getElementsByClassName(name): Find elements by class name.
- querySelectorAll(): The querySelectorAll() method returns a collection of an element's child elements that match a specified CSS selector(s).
- getAttribute(): The getAttribute() method returns the value of the attribute with the specified name, of an element.
SCREENSHOT WEB PAGE:
NAME:AYUSH SINGLA
ID:18CE122
LINK:18ce122.blogspot.com
Comments
Post a Comment