LIS Quiz 6

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Each element on a Web page is represented in the HTML DOM by its own object.

true

The DOM is a W3C (World Wide Web Consortium) standard.

true

The getElementsByName () method always returns an array, even if there is only one element with a matching name attribute.

true

The innerHTML property is used to get or replace the content of an HTML element.

true

Through the ____ object you can access other objects that represent elements on a Web page.

Document

at the core of DHTML is _____.

DOM

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>

document.getElementById("demo").innerHTML = "Hello World!";

Which of the following is the correct syntax for accessing an element with the id value headline?

document.getElementById("headline")

Which of the following is the correct syntax for accessing the value of the href attribute for the third a element in a document?

document.getElementByTagName("a")[2].href

"DHTML" refers to a single technology.

false

The following example returns a list of all elements where the id="intro" var x = document.getElementsByClassName("intro");

false

The following statement finds all of the <span> elements in the HTML document: var x = document.getElementsByTagName("p");

false

The ______ method returns an array of elements that match a specified tag name.

getElementsByTagName ()

The ____ property of the Image object allows JavaScript to dynamically change an image.

src


संबंधित स्टडी सेट्स

What is the long term effect of the Crusades?

View Set

CH 14: Preoperative Nursing Management

View Set

White Fang Comprehension Chapters 4 - 7

View Set

Psychology Ch.1: Psychological Foundations

View Set

BIOD 121 Nutrition Class Module 2

View Set

Chapter 14: We Respond to God through Prayer

View Set

The Neurological System (part 2)

View Set

Digital Photography: Using Your Photos

View Set

Forging the MW - Study Guide 1 Part 2

View Set