0

Help me syntax error after opening website from “hindi”

https://code.sololearn.com/WVY6Sy19Bsd7/?ref=app

14th Jul 2022, 8:08 AM
Chetan Shiva
5 Respuestas
+ 1
Your code works fine if ran from the app. When I click the link there is no error and the link sends me to w3schools's homepage. However, if I run the code from Sololearn.com playground, I get www.w3schools.com refused to connect To fix this issue. add the following attributes target="_blank" rel="noopener noreferrer" <a href="https://www.w3schools.com" target="_blank" rel="noopener noreferrer">
14th Jul 2022, 8:29 AM
Chris Coder
Chris Coder - avatar
0
Everything worked with out error. What syntax error did you see?
14th Jul 2022, 8:14 AM
Chris Coder
Chris Coder - avatar
0
Run code click on hindi after website opened you see console syntax error
14th Jul 2022, 8:17 AM
Chetan Shiva
0
Chris Coder thank you, if i use my code in diffrent app like visual studio code, spck editor, koder still need to edit and add ? Target=“_blank” rel=“noopener noreferrer”>
14th Jul 2022, 9:31 AM
Chetan Shiva
0
It is always best to include the attributes. You can find a list of target and rel attribute values here for more info https://www.w3schools.com/tags/att_a_target.asp https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
14th Jul 2022, 9:37 AM
Chris Coder
Chris Coder - avatar