I'm not really sure what I'm doing incorrectly here. The question asks us to Set the href attribute of the a tag to https://www.zybooks.com/.
This is the given tag <a href = "https://www.example.org>Link</a>
Here is my answer:
var x;
x = document.getElementsByTagName("a").href = "https://www.zybooks.com/";
The following error is given:
Testing the value of the href attribute Yours and expected differ. See highlights below. Yours https://www.example.org/ Expected https://www.zybooks.com/
I'm not sure why this is incorrect.