Which of the following methods returns an array of all the elements in a Webpage, with a specified class name?
uCertify JavaScript Chapter 9 and 10

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Greg Baker
Used 11+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
getElementsByName
getElementsByTagName
getElementsByClassName
getElementByClassName
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method allows you to delete entire HTML attributes from an element?
getElementById
setAttribute
innerHTML
removeAttribute
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method retrieves the corresponding value of an attribute?
getAttribute
setAttribute
removeAttribute
innerHTML
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods will access all occurrences in the page of an element with a specified name value and return them in an array?
getElementsByTagName
getElementById
innerHTML
getElementsByName
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code will center <div id="mydiv"> on the page?
document.getElementsByName("mydiv").setAttribute("align", "center");
document.getElementById("mydiv").getAttribute("align", "center");
document.getElementsByName("mydiv").getAttribute("align", "center");
document.getElementById("mydiv").setAttribute("align", "center");
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods lets you access all occurrences of an HTML tag in a Webpage?
getElementByID
getElementsByName
getElementsByTagName
innerHTML
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method will return only the first occurrence of a specified element in a script, rather than finding all occurrences of a specified element and returning them in an array?
getElementsByTagName
getElementById
innerHTML
getElementsByName
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
SDA Chapter 2 Vocabulary

Quiz
•
7th - 9th Grade
20 questions
HTML

Quiz
•
KG - University
20 questions
HTML / CSS

Quiz
•
11th Grade
20 questions
HTML & CSS Review

Quiz
•
7th - 12th Grade
18 questions
HTML & CSS

Quiz
•
9th - 12th Grade
20 questions
WEB DESIGN QUIZ P2

Quiz
•
12th Grade
20 questions
uCertity SDA Lesson 2 Quiz

Quiz
•
8th - 12th Grade
25 questions
HTML, CSS & JS

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University