How can I open another page by clicking on a text using Html??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I open another page by clicking on a text using Html???

For example,...when you click on something to open another page

11th Jan 2017, 1:20 PM
Orga Valentine
Orga Valentine - avatar
3 Answers
+ 13
<a href="link" target="_blank">Link</a>
11th Jan 2017, 1:21 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
if you want to open your link in a new tab in this tag<a> write down target="_blank" but if you want to when you click on a text opent the page you want write the link in href and then write your text in <p></p> like this <a href="www.google.com"><p>this is my text</p></a>
3rd Feb 2017, 12:53 AM
saman hoseini
saman hoseini - avatar
0
use link
30th Jan 2017, 5:42 AM
fahad
fahad - avatar