Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Aquamarine
I think you're asking for what is between the anchor tag (<a href=blah>) where blah is some ridiculously long URL. A lot of times people wrap the actual URL with the anchor tags. The long link as an attribute in the anchor tag is not seen by the user, but what's seen is between the opening and closing tags. What you want to do is put something other than the URL in between the tags.

For example if you have a link like:
http://freerepublic.com/focus/chat/3840032/posts?page=731#731 you'd just want to use that as the attribute and then provide some text in between the tags. This is how you'd do it:

<a href=http://freerepublic.com/focus/chat/3840032/posts?page=731#731 target=_new>See my post here.</a>

This would render as:

See my post here.

The target (target=_new) attribute is telling the browser to open the link in a new tab. This is good practice for discussion boards so the user doesn't lose their place.

752 posted on 04/30/2020 10:13:24 AM PDT by numberonepal (WWG1WGA)
[ Post Reply | Private Reply | To 731 | View Replies ]


To: numberonepal
That's the html commands I was referring to. When someone has an extra long link that is so long it shrinks down the page they can use the - a href commands you posted to name the link and make it smaller.

Important to note that the only space will be between *a href*.

763 posted on 04/30/2020 10:24:05 AM PDT by Aquamarine (Where we go one, we go all. ~ Q)
[ Post Reply | Private Reply | To 752 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson