Please sign in to post.

Imbedded Hyperlinks

I've been asked how to put those hyperlinks in a posting.

You have to understand that what you put in that little text box is sent to a web browser which is an html code interpreter. You have to write the link in html code.

HTML code consist of instructions, or tags, imbedden in brackets, <tag>
<a... > opens the "anchor" to the link. &lt/a> closes it.

The format of a link is <a href="URL">link name</a>

"href=" means hyperlink reference
URL must start with "http://" or the browser will look for the link on the current website.

The link should include the statement target="_blank" for the link to open on a separate page.

So, for a link to the website in Bacharach, we would write

<a href="http://www.bacharach.de" target="_blank">Bacharach</a>

Bacharach.

Posted by
606 posts

Just curious how you entered that last string and and it did NOT show up as Bacharach! Generally when I try to show someone the syntax of an embedded link, it just shows the link, like "Bacharach", rather than the syntax string I'm trying to demonstrate.

Posted by
19273 posts

Funny, when people started embedding links on this website, I asked Kent how they were doing this, and he responded with the same questions. It has to do with writing in html code. See my website.

Posted by
19273 posts

Funny how this html editor works. If you go back and edit you previous post, you will find that the &lt; and &gt; have all turned back to < and >. So, it you hit the edit button, you'll get the link again, instead of the html code.

Posted by
19273 posts

Ops, I inadvertantly said "you previous post" instead of "your previous post", but if I go back to correct my misspelling, I'll have to redo all of my "&" codes.

Posted by
606 posts

"if I go back to correct my mispelling, I'll have to redo all of my "&" codes."

That's good to know too. Did you know that you misspelled misspelling above? ;-)

I don't ever have to go back and correct my many many misspellings because I use "ieSpell". It's a free Internet Explorer add-on that lets you spell check any web page text field (like this Rick Steves text editor) just by right-clicking on the box and selecting Check Spelling. It's great!

(And thanks to you, I can now have the ieSpell link above open a new browser window. I like that! On the ieSpell website, the download link is on the left side of the page, under the "Overview" section.)

Posted by
19273 posts

That I can easily fix. Just did.

& codes can be used on HTML pages to generate characters like ü (&uuml;) or € (&euro;). I've read that they are better to use than <alt> codes because all browser don't interpret <alt> codes correctly (you get boxes) but & codes are an HTML standard and should be correctly interpreted by any browser.

Here, the interpreter immediately changes & codes to ASCII characters, which is why when you try to edit a page the & codes are screwed up.

Posted by
276 posts

Thanks Lee!

I'm getting all kinds of good use from this!

Posted by
1266 posts

Lee - Thanks, I have always wondered how you and others did that magic.

Posted by
19273 posts

One last thing, if you insert the phrase target="_blank" into the opening 'a' tag, along with href=..., the link will open in a new window. That way if someone closes the link, they will still have the Rick Steves window open.

<a href="http://www.bacharach.de target="_blank">Bacharach</a>