+ 5
Need help understanding this html challenge answer
This particular question in the html challenge has been bothering me for a while ______________________________________ Which of the options contain errors? 1. <a source=âhttp://test.comâ>SOLOLEARN<\a> 2. <a href=âhttp://test.comâ>CODE PLAYGROUND<\a> 3. <a src=âhttp://test.comâ>COURSES</a> Answer: All three options ______________________________________ I thought the answer would be just 1 and 3, because you never use src attribute for "a" tags and same with source. So why is the href one wrong?
11 Respostas
+ 12
If I remember correctly (I have not done any HTML challenges for a long time), option 2 was also wrong:
<a href="http://test.com"> CODE PLAYGROUND <\a>
Basically it was because the slash is inverted.
+ 4
im such a potatoe
+ 4
Mickel SĂĄnchez is right.
+ 3
that's because I just edited in the back slashes after Mickel's comment lol, I didnt notice them befoređ
+ 2
wow, that's what I thought too , but then I reported that question a couple weeks ago and nothing happend, that's when the self doubt came and caused me to post.
+ 1
that's right, haven't noticed the backslash
+ 1
You should use this syntax for hyperlinks
<a href="http://www.sololearn.com">Sololearn</a>
So the problem in 2nd 1 is the closing tag. Replace it as </a> from <\a>
+ 1
All these are right.
0
The second answer doesn't contain errors. Probably a slip of the eye from SL to have accepted this question (cause some questions are submitted by users).
0
all three options are right.
0
all three options