+ 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?

11th Apr 2018, 4:57 AM
Caleb Taylor
Caleb Taylor - avatar
11 Antworten
+ 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.
11th Apr 2018, 5:10 AM
Mickel
Mickel - avatar
+ 4
im such a potatoe
11th Apr 2018, 5:13 AM
Caleb Taylor
Caleb Taylor - avatar
+ 4
Mickel Sánchez is right.
11th Apr 2018, 5:14 AM
Vikash Pal
Vikash Pal - avatar
+ 3
that's because I just edited in the back slashes after Mickel's comment lol, I didnt notice them before😅
11th Apr 2018, 5:19 AM
Caleb Taylor
Caleb Taylor - avatar
+ 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.
11th Apr 2018, 5:06 AM
Caleb Taylor
Caleb Taylor - avatar
+ 1
that's right, haven't noticed the backslash
11th Apr 2018, 5:15 AM
CHMD
CHMD - avatar
+ 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>
25th Jul 2018, 2:30 PM
Seniru
Seniru - avatar
+ 1
All these are right.
25th Aug 2021, 2:31 PM
Shubham Bhatia
Shubham Bhatia - avatar
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).
11th Apr 2018, 5:03 AM
CHMD
CHMD - avatar
0
all three options are right.
25th Aug 2021, 2:46 PM
Shubham Bhatia
Shubham Bhatia - avatar
0
all three options
25th Aug 2021, 5:33 PM
Shubham Bhatia
Shubham Bhatia - avatar