Hello
Is it possible to use an <a href> tag without adding any text link to it, usually we write <a href="....">Link to text</a>, but I want to omit the Link to text part, which however is completely removing my a tag. Any solution to this? I need the <a> tag because am using the hover part for rollover effect

Recommended Answers

how will the emplty a-Tag will remove the text?
if you use no content for a, it will have a width of 0 and a height of 0 too, if you want the a-tag not to be displayed use css:

#a {display:none;}

if you want to show …

Jump to Post

All 2 Replies

how will the emplty a-Tag will remove the text?
if you use no content for a, it will have a width of 0 and a height of 0 too, if you want the a-tag not to be displayed use css:

#a {display:none;}

if you want to show the a-tag but have a content, thats transparent use nbsp:

<a href="....">&nbsp;</a>

thanks, completely forgot the &nbsp; part...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.