How to Style Your Comment When You Leave a Reply

On some blog sites, there’s strange code below the comment box. A lot of people mistake it for bugs in the website code, and others just ignore it, as it looks too technical. It looks something like this:

You may use these HTML tags and attributes:
<a href=”” title=””> <abbr title=””> <acronym title=””> <b> <blockquote cite=””> <cite> <code> <del datetime=””> <em> <i> <q cite=””> <strike> <strong>

This is not a bug.

It is a ‘bit’ technical, but once you understand what it is, it could become very useful to you.

For those who’d like to know more…

It’s HTML, but it’s Ok, you can learn about it quickly and simply.

The first thing to know, is that this strange code instruction only tells you half the story.

HTML tags are (usually) made up of a start tag and an end tag, like this, <tag>some text</tag> and they ‘wrap’ around the text that you want them to effect. A start tag is simply the tag name within these two characters <> and the end tag is the same, except that it has a forward slash / before the tag name, indicating that it is ending the tag definition.

Now, a start tag can also have ‘attributes’ specified within it, but you’ll see that in the examples.

So, the best way to see what these tags are for, is to show you by using some examples, which I have done by leaving the first comment to this post… see below.

You can see the effect that the tags have on the text, and you’ll notice that some of them appear to be the same?
This is because some browsers may display different effects for each tag, and some tags are historic nowadays, as new and better tags are introduced.

One word of warning… be very careful to make sure you have both the start and end tags, and that they are spelled correctly, as you don’t get a second chance at entering the comment.

Also, I believe that WordPress blogs allow this tag specification even if it is not displayed below the comment box. The display is controlled by the Theme you are using, but the internals of WordPress still process and allow it.

Any questions or problems with this, just leave me a comment… I’ll do my best to assist.


One Response to How to Style Your Comment When You Leave a Reply

  1. wayne January 20, 2012 at 10:43 am #

    <b>Example text</b>
    <strong>Example text</strong>

    <em>Example text</em>
    <i>Example text</i>


    Example text


    <strike>Example text</strike>
    <del>Example text</del>

    <cite>Example text</cite>

    <code>Example text</code>

    And those with attributes:

    <abbr title=”Example text title”>Example text</abbr>

    <acronym title=”Example text title”>Example text</acronym>

Leave a Reply