Tuesday, May 13, 2008

Open Thread, with a bonus html lesson

*Posting will be sparse this week as I deal with some family issues. Consider this an open thread, with a bonus html lesson.*


I've noticed a decent amount of people try to post web addresses in the comments on this and other local blogs. Frequently the addresses are too long to fit in the box, and things get all messy.

Today I'll show you loyal readers a tiny piece of web language (html) that will solve this problem. In this case, the address that I want to link to is http://www.google.com, and I want the link to say Google.
I would need to type the following into the comments box:

<a href="http://www.google.com">Google</a>

This would then appear as:

Google

Simply replace the www.google.com with whatever web address you want to link to, and replace Google with the name of the website, or whatever text you want to use for the link. You always need the <a href=" before the web address, and another "> after it, followed by the text you want to use, and then end with the </a>

Here's another, more useful example, using a QCTimes article and its horribly long web address:

The code:

<a href="http://qctimes.com/articles/2008/05/13/opinion/editorials/doc48266ca8dc70f112067437.txt">Think outside of the car</a>

becomes:

Think outside of the car

I know it may be confusing to those of you who aren't into this sort of thing, but if you just copy/paste and change the applicable parts, it should be relatively painless. Feel free to ask questions about this. I believe it should also work on Cruiser's blog, but your comment may have to wait for him to approve it because of the link.

No comments: