Why is the answer to this question "false"? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

Why is the answer to this question "false"?

http://imgur.com/8KgZl7E

10th Apr 2019, 10:05 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
4 Answers
+ 7
Maybe because "script" is a tag and not an attribute. For me, an attribute would be something like "href" in <a href=""></a>. But I might be totally wrong
10th Apr 2019, 10:30 AM
Anna
Anna - avatar
+ 9
Ah... Script is an tag , I forgot.😫 Thank you!
10th Apr 2019, 10:33 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 5
It's a mean question though, because the answer "false" makes it look like you can't add inline JavaScript with <script>
10th Apr 2019, 10:37 AM
Anna
Anna - avatar