How do i know what to put after the <a href> in other to get to another webpage.Do i create the link, if yes how do i create it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do i know what to put after the <a href> in other to get to another webpage.Do i create the link, if yes how do i create it.

17th Dec 2020, 9:54 AM
mofe_sanya
mofe_sanya - avatar
4 Answers
17th Dec 2020, 9:58 AM
Иван Чикyнов
Иван Чикyнов - avatar
+ 1
Tioluwanimofe Adesanya First clarify You need like create a link or want your webpage to me redirected to some other page as soon as the page loads.
17th Dec 2020, 11:02 AM
Krish
Krish - avatar
+ 1
If the point is second one then you need to write window.location.href = "https://example.com";
17th Dec 2020, 11:04 AM
Krish
Krish - avatar
0
Tioluwanimofe Adesanya If you are using <a href then you are creating a link. You just need to pass the path in href attribute.
17th Dec 2020, 10:26 AM
A͢J
A͢J - avatar