Syntax error with links | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Syntax error with links

Using default web code bit, the only thing I added is <a href=“https://www.google.com”>google</a>, and a javascript output box at the bottom says “syntax error” when I click the link, even though it directs me to Google. Anyone know why?

6th Jan 2020, 11:39 PM
buckwillie05
buckwillie05 - avatar
4 Answers
7th Jan 2020, 2:31 PM
buckwillie05
buckwillie05 - avatar
+ 1
chernxbyl42069 Share your code and help get rid of the doubts about what went wrong. These guys can help you much better if they can see your code. So, share the code?
7th Jan 2020, 6:30 AM
Ipang
0
「HAPPY TO HELP」 the quotation marks I used were indeed standard and changing them did not help. thank you for the answer though
7th Jan 2020, 3:22 AM
buckwillie05
buckwillie05 - avatar
0
Did you add it to the right tab? Web codes have tree code tab: one for html, one for css and a last one for js... It sounds like if you add this link in the js tab and not in the html tab ^^ Only css or js could be written in the html tab if you enclose them in respectively <style></style> and <script></script> tags ;)
7th Jan 2020, 5:21 AM
visph
visph - avatar