How To Activate Emphasize < em > Tag In Your Blog : Blogger Tutorial

ADVERTISEMENTS

To give more interest to your text we use <em> tag. In my template, this tag is activated by default. Let me show you how the text looks when I use this tag.

This is how em tag looks

Yesterday, I got an email from one of the readers of this blog Amadh, asking me how to give a yellow colored background to the text. He also asked me to share this tutorial with all. So here is a post on Amadh’s request.

To activate this tag first we have to use CSS.

First open Blogger and then go to Layout and then Edit HTML. Here put a tick on Expand Widget Templates.

Now search for </style> tag and put the following code above it.

em{color:#000000; font-style:normal; background:#fbfbdd;}

What is this code :

Well, this code is written in CSS where we have defined a HTML tag called EM and between the curly brackets we have given the text properties i.e color of the text, style of the text and background. In the above code we have given a Yellow color background, if you want another color you can change the given code.

How to use EM tag :

EM tag works same as bold, italic and underline tag. Simply put em tag in your post where you want yellow background to appear.

Below is a simple example on how to us this tag.

<em> Your text here </em>


If you are facing any problem in using this tag, feel free to drop your comments here and I’ll reply to all your queries.


If you like this post, you will love these :

  1. How To Write Text On Colored Background : XML Tutorial
  2. How To Add Gravatar Beside Post Title In Blogger : Tutorial
  3. How To Show Only Post Titles In Blog Archives : Blogger Hack
  4. How To Create Horizontal Tab Menu For Blogger Templates : Best And Simple Method
  5. How To Create Sticky Posts In Blogger : Tutorial
  6. How To Add Page Element To Header : Blogger Blogspot Tutorial
  7. Top 10 Steps To Launch A Successful Blog : Tutorial For Upcoming Bloggers

Gaganpreet Singh on March 30, 2009 | Filed Under Blogger Tricks

{ 1 trackback }

BeepTheGeek New Blogger Template | Beep the geek
April 25, 2009 at 1:21 pm

{ 4 comments… read them below or add one }

1 Harsh Agrawal March 31, 2009 at 5:04 am

This is nice find dude..You should start making a round up post for easy references..

Reply

2 Cidão August 6, 2009 at 1:19 am

There’s no tag /style in blogger template CSS. All CSS rules are between b:skin and /b:skin tags.
So I put this CSS above /b:skin and it works fine in my poetry blog, but it does not work in my main blog. I wonder if another CSS rule is in conflict with this one.

Reply

3 Gagan August 6, 2009 at 8:42 am

@ Ciadao

Can you send me link of your main blog ?

Reply

4 Avi Singh August 6, 2009 at 1:15 pm

Very useful for highlighting Text.

Reply

Leave a Comment

Previous post:

Next post: