Solved

Which Is the Correct Way to Reference the Href Attribute

Question 26

Multiple Choice

Which is the correct way to reference the href attribute of the element with the id value homeLink ?


A) document.getElementById("homeLink") .style.href
B) document.getElementById("homeLink") .attr.href
C) document.getElementById("homeLink") .attr("href")
D) document.getElementById("homeLink") .href

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions