Sweet ‘n Simple HTML: Use those codes for Comments

by SBA · 16 comments

in Resources

HTML tips

Surely no one can call you a ‘dummie’ if you have one or two html tricks up your sleeves.  You may have noticed that  many comment boxes state:

“  some HTML allowed: img code em strong ul ol li

This gives you the go-ahead to use html codes to make your comments stand out even more.  This post gives samples for these seven sweet and simple tags.

<img src=”http://your image url here”>
<code> Your html/css code here </code>
<em> words to make italics here </em>
<strong> words to make bold here </strong>
<ul>your line items here </ul>
<ol>your line items here </ol>
<li>line item</li>

Each example shows what you type directly into the comment form and how it appears after you press the Submit button.

Add an image

Every want to add a photo to a BlogCatalog  discussion? What about inserting one in a comment you leave on someone’s blog? Just use the ‘img‘ tag, substituting your image url in the src=” ” attribute. Your image must exist already on a publicly accessible host.  Unless there is a preview feature, you will not see the image until you submit the comment. So make sure it’s not that photo you keep forgetting to destroy!

EXAMPLE -To show our logo image:

Hi everyone this our header logo
<img src=”http://bloggingwithsuccess.net/wp-content/uploads/2009/03/logo-bws1.png”>

This is what readers see:

Hi everyone this our header logo

Add preformatted html code

Sometimes you want to show html code in the comment. This tag tells the website editor to not use it as html, but display the text version. Everything between the opening code and end tag is ignored.  This requirement is common in tuturial posts, where you want the tags to be plain text that readers can copy and paste into their html editors.

EXAMPLE -  I want to tell a discussion group how to add an image:

Use this tag to display your logo, substituting your url for mine:
<code>
<img src=”http://bloggingwithsuccess.net/wp-content/uploads/2009/03/logo-bws1.png”>
</code>

This is what readers see:

Use this tag to display your logo, substituting your url for mine:
<img src=”http://bloggingwithsuccess.net/wp-content/uploads/2009/03/logo-bws1.png”>

Add Emphasis to selected words

The two codes ‘em’ and ’strong’ work the same way to add ‘emphasis’ or ’strongness’ to words in your text.  The rest of us call this italics and bold!

EXAMPLE -Emphasize and strengthen certain words:

I could not <em>emphasis</em> this any more, you must be <strong>stronger</strong> in your approach!

This is what readers see:

I could not emphasis this any more, you must be stronger in your approach!

Add numbered or bulleted lists

Not many of us will use this, but here the mechanics are the same. First decide if you want your points in an ordered (‘ol’) or unordered (‘ul’) list. Each requires a matching end tag and line items for the list (‘li’).

EXAMPLE -an unordered list with 2 elements:

My list consists of <ul>
<li>First things first</li>
<li>Second things next</li>
</ul>

This is what readers see:

My list consists of

  • First things first
  • Second things next

That’s it. You’ll be smart to learn a few of these tricks.  For more detail,  read our background on CSS/HTML for the beginners. Give it a try and let us know how it worked.

  • Share/Bookmark
SBA
SBA is a web designer and co-founder of BloggingWithSuccess.net. She publishes BPWebNews a place for Blogspot tips and tricks. You can also find her on Twitter. Read SBA's other posts. She's also published a couple of guest posts.

{ 1 trackback }

Serious Monday Roundup #4 | Serradinho
August 10, 2009 at 10:32 AM

{ 15 comments… read them below or add one }

Creative Junkie August 5, 2009 at 5:57 PM

Would you believe that I actually understood this? There’s hope for me yet!

Reply

SBA August 6, 2009 at 1:47 AM

Y E S !

Reply

George Serradinho August 5, 2009 at 5:57 PM

This is an informative post. I know the codes well, but I’m sure many out there don’t. You can make your comment stand out from the rest.

Thanks for sharing this :)

Reply

SBA August 6, 2009 at 1:51 AM

Appreciate your feedback. You’re well on your way to branding your comments — distinctive gravatar!

Reply

Louise | UPrinting August 6, 2009 at 6:07 AM

Can we do those HTML tips here on your site? Just wondering. :)
Thanks for sharing them, btw. There are actually sites that don’t offer this feature, which is quite a bummer. I think allowing HTML codes on the comments field is a big help for the commenters. It helps them emphasize or organize their comments.

Reply

SBA August 6, 2009 at 10:31 PM

Well ‘wonder’ no more! We just added a note on the comment form listing our allowed tags. As I told another reader, most blogs permit some html even if not stated in their form. Thanks for stopping by.

Reply

iWrite2Know August 6, 2009 at 1:08 PM

I never knew html tags do work in comments form as well. This is something new and interesting. By doing so, the comment may grab the attention of its readers.

Reply

SBA August 6, 2009 at 4:48 PM

The basic tags will work on most blogs even if the comment form (like ours) does not list the valid tags. Normally the link tag (a href=) is excluded since links are discouraged in comments text (considered spam unless relevant to the post not for promotion.) On most forums and discussion boards if you type the full url it’s converted automatically to a clickable link. Using the full url as the link words avoids any surprises in text links that users could make up!

Reply

Mr. I August 7, 2009 at 5:57 AM

From my experience, most WP blogs and Blogspot blogs let you leave HTML.

Reply

vinay August 7, 2009 at 12:39 PM

Thanks for your valuable tips just learnt how to use HTML effectively in comment section of blogs.

Reply

Ruchi August 7, 2009 at 2:14 PM

Hey Thanks for the post. I never used HTML codes in comments. Comments will look attractive. I will surely try .

Reply

Ricky Peterson August 7, 2009 at 5:16 PM

Thanks for an informative post. HTML codes in comments wil look attractive.

Reply

Chris Peterson August 18, 2009 at 11:25 AM

I will certainly try HTML codes in comment, Comments would be eye-catching ones

Reply

About HTML codes September 1, 2009 at 4:46 AM

Very interesting article and well structured. If you are interested in sharing tutorials via my site please get in touch.

Thnaks again take care

Reply

SBA September 1, 2009 at 6:04 AM

I appreciate the feedback and offer! Thanks. Will take a look.

Reply

Leave a Comment

You can 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>

Previous post:

Next post: