June 14, 2009

How to write HTML code in your post

When we want to write our HTML code in our post , unfortunately we cannot write the code directly as we type.This is because whatever we write is executed in HTML and PHP form and thereby , making the actual code disappear.

There are coupleof methods and in this post we discuss one of them



firstly we need to convert following HTML parts in our code to the following

  1. Replace all & symbol with &
  2. Replace all <> with &lt; &gt;
  3. and finally all " with &quot;

for example- if we need to post



<code><strong>techQE code</strong></code>



we replace all to get the following code to be written



&lt ;code&gt ;&lt ;strong&gt ;techQE code&lt ;/strong&gt ;&lt ;/code&gt ;



other methods will crop up in later posts .

for any DBTS plz comment

0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP