What DOM method is used to load HTML files?
Suggested Answer: C
Get Premium 200-710 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
38 comments · newest first
SH
Sheron
11 months ago
Agreed, loadHTML() is the right one!
HE
Hermila
12 months ago
Wait, are we sure about that? Sounds off.
AL
Alline
12 months ago
Nope, it's loadHTMLFile() for sure!
SH
Shawnna
1 year ago
I thought it was loadXML() at first.
SA
Samira
1 year ago
It's definitely loadHTML()!
BO
Bong
1 year ago
I thought it was just load(), but that seems too simple for loading HTML files. I wish I had reviewed this topic more!
OR
Oretha
1 year ago
I’m leaning towards loadHTMLFile(), but I can't recall if that's a standard DOM method or something specific to a library.
DE
Deane
1 year ago
I remember practicing a question about loading files, and I feel like loadXML() was mentioned, but that seems more for XML files.
BL
Blair
1 year ago
I think the method might be loadHTML(), but I'm not entirely sure if that's the exact name.
GE
Gerardo
1 year ago
I'm stumped on this one. I can't recall the specific method for loading HTML files. I'll have to guess and hope for the best.
VE
Veronica
1 year ago
I've got this! The answer is C. loadHTML(). That's the method used to load HTML files into the DOM. Easy peasy.
DO
Dona
1 year ago
Okay, let me think this through. I know there's a loadHTML() method, but I'm not sure if that's the right one for this question. I'll have to review my notes on DOM manipulation.
EL
Elfriede
1 year ago
Hmm, I'm a bit confused on this one. I know there are methods for loading XML and HTML, but I can't remember the exact names. I'll have to think this through carefully.
DA
Dacia
1 year ago
I'm pretty sure the answer is A. load(). That's the standard method for loading HTML files in the DOM.
JO
Johnetta
1 year ago
I thought it was loadLunchMenu(), but I guess that's only for the cafeteria website.
DE
Destiny
1 year ago
C) loadHTML() is not the method used for loading HTML files.
BE
Becky
1 year ago
B) loadXML() is not the method used for loading HTML files.
TH
Theron
1 year ago
A) load() is the correct method to load HTML files.
JU
Junita
2 years ago
Wait, is it loadHTMLFile()? That sounds more specific to HTML files.
MA
Mable
1 year ago
Oh, I see. Thanks for clarifying!
TH
Theola
1 year ago
No, it's actually loadHTML(). That method is used to load HTML files.
ME
Merilyn
1 year ago
D) loadHTMLFile()
MA
Maira
1 year ago
C) loadHTML()
AR
Artie
1 year ago
B) loadXML()
PE
Pedro
1 year ago
A) load()
CU
Curtis
2 years ago
Ah, I bet it's load(), that's the generic one for loading files, right?
MA
Marcos
1 year ago
The correct method is actually loadHTML().
HE
Helga
2 years ago
Actually, it's not load(), but good guess!
LU
Luther
2 years ago
Yes, you're correct! It is load() method.
EL
Elli
2 years ago
Hmm, I thought it was loadXML(), but maybe that's for XML files specifically.
TA
Tanja
1 year ago
D) loadHTMLFile() is also not a valid DOM method.
GA
Gayla
1 year ago
C) loadHTML() is not a valid DOM method.
LI
Ligia
2 years ago
Yes, loadXML() is specifically for XML files.
HA
Haley
2 years ago
A) load() is the correct method for loading HTML files.
CO
Corrie
2 years ago
I'm pretty sure it's loadHTML(), that's the one we used in class.
EM
Emelda
2 years ago
I'm not sure, but I think it might be C) loadHTML(). It sounds like it could be the right method for loading HTML files
CL
Claudio
2 years ago
I agree with Madonna, because the load() method is commonly used for loading HTML files
MA
Madonna
2 years ago
I think the answer is A) load()