Can i insert only link without any other information while coding in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Can i insert only link without any other information while coding in html

27th May 2017, 8:55 AM
Roshini Rachapalli
Roshini Rachapalli - avatar
19 Answers
+ 8
Try this code & tell me if this is what you are asking for. <!DOCTYPE html> <html> <head> <title>Link without writing</title> <style> div { border:2px solid #000000; height:10px; width:20px; } </style> </head> <body> <a href="https://www.google.co.in"> <div></div> </a> </body> </html>
27th May 2017, 9:36 AM
Biraj Patel
+ 4
but how
27th May 2017, 9:20 AM
Roshini Rachapalli
Roshini Rachapalli - avatar
+ 4
yes that means we cannot add a link without information right
27th May 2017, 9:25 AM
Roshini Rachapalli
Roshini Rachapalli - avatar
+ 4
yes,the code is working and this is what I asked for
27th May 2017, 9:41 AM
Roshini Rachapalli
Roshini Rachapalli - avatar
+ 4
yes I checked the code
27th May 2017, 9:48 AM
Roshini Rachapalli
Roshini Rachapalli - avatar
+ 3
u can leave it empty means there is no use of link class..
27th May 2017, 9:22 AM
Ramanan S
Ramanan S - avatar
+ 3
you can use link without any href it will underline it and change cursor but on click will not take anywhere
27th May 2017, 9:30 AM
Sandeep Chatterjee
+ 3
ur code is working bro..
27th May 2017, 9:38 AM
Ramanan S
Ramanan S - avatar
+ 3
you checked this code on ur PC??
27th May 2017, 9:43 AM
Ramanan S
Ramanan S - avatar
+ 2
hyy roshini
27th May 2017, 9:20 AM
Ramanan S
Ramanan S - avatar
+ 2
I know only little bit about html..lol
27th May 2017, 9:22 AM
Ramanan S
Ramanan S - avatar
+ 2
I want to refer.. can u please wait for a moment??otherwise refer any tutorials..like tutorials point..
27th May 2017, 9:28 AM
Ramanan S
Ramanan S - avatar
+ 2
@roshini...I am going to learn html...🙌
27th May 2017, 9:46 AM
Ramanan S
Ramanan S - avatar
+ 2
output...
27th May 2017, 9:49 AM
Ramanan S
Ramanan S - avatar
+ 1
Sure
27th May 2017, 9:17 AM
Lev Pencko
Lev Pencko - avatar
+ 1
it will create a link without anywhere to point or without any url.let me know if that's what you meant.
27th May 2017, 6:49 PM
saurabh sharma
saurabh sharma - avatar
+ 1
noo it is just showing the link but it is not directing to that page
28th May 2017, 4:34 AM
Roshini Rachapalli
Roshini Rachapalli - avatar
+ 1
u have to click on the link..sry if u already know
28th May 2017, 5:17 AM
Ramanan S
Ramanan S - avatar
0
roshini I guess you are trying to insert a blank link.then try this. <a href="#">link</a>
27th May 2017, 6:48 PM
saurabh sharma
saurabh sharma - avatar