Friday, May 1, 2009

Display HTML / Javascript Code in Your Blog

You can make HTML codes escape from the default blogger codes and thus display the codes in your blog for demonstration or tutorial purposes.
The task is very easy and you need not be an expert in HTML.

You will make it with a few simple steps.
Here's a look at its 'How-To'.

In order to display a code snippet in your blog, you have to make it an escaped code.
The code snippet you see below is an escaped code.

<title><data:blog.pagetitle/></title>
<link href='URL of your icon file' rel='shortcut icon' type='image/vnd.microsoft.icon'/>

This is achieved through the following technique.
Just follow the simple steps :-

- Replace every < symbol with &lt;

- Replace all > symbols with &gt;

That's all. You have just made it.
This is a pretty easy task and even beginners can handle such cases.

0 comments:

Post a Comment