Check this screenshot of a challenge question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
6th Jul 2017, 5:58 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
6 Answers
+ 4
yes, but the question is which one is NOT valid.
6th Jul 2017, 6:08 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 3
1. yes because you first open <div> then <a>, but then first close the <div>. I mean <div><a></div></a> it should be <div><a></a></div> 2. On the other hand in the second answer you have a <div> in an <a> which is also considered bad practice.
6th Jul 2017, 6:06 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 1
Yes, that shows you the correct answer. Not the answer you chose.
6th Jul 2017, 6:04 PM
Ghauth Christians
Ghauth Christians - avatar
+ 1
oops 😅😅 am so positive that i missed it.. 😂😂 sorry
6th Jul 2017, 6:11 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
look the answer it is not nested properly.. div tag is closed first and then the <a> tag
6th Jul 2017, 6:06 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
@Nikolay in that case the very first option is correct. right?
6th Jul 2017, 6:07 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar