Tuesday, February 26, 2008

Tuesday's Tech Tip: Formatting your comments

Did you know that you can use basic HTML tags to format your comments to blog posts?

Here's how. HTML works by telling it when to start doing something and when to stop doing something.

HTML knows you're telling it to start doing something when you put it in angle brackets like this: <HTML code goes in here>

HTML knows you're telling it to stop doing something when you put a slash ("/") at the start of the code you want to stop in the angle brackets like this: </HTML code goes in here> (see the slash?)

How to use italics

Let's say you write this: The quick brown fox.

But you want "brown" to be italicized like this: The quick brown fox.

The HTML code for italics is a simple "i": <i>

You tell it to stop by using a slash ("/") like this: </i>

So here's what you'll type to italicize "brown" in your comment: The quick <i>brown</i> fox.

How to embed a link

Embedding a link is a little more complex, but uses the same principle. The code is "a" (because you're anchoring a link to your text).

This is what the codes look like for embedding a link:

<a href="the link's address you want">text that should be a link</a>.

Let's say you want "fox" to be a link like this: The quick brown fox.

This is what you'll type: The quick brown <a href="http://en.wikipedia.org/wiki/Fox">fox</a>.

You see the bit that says "http://en.wikipedia.org/wiki/Fox"? Replace the bit in quotes with the address of the link you want to link to.

Clear as mud?

2 comments:

Anonymous said...

Thanks,Jay.

Did I do it right?

Jay said...

Sure did!