Nov 21, 2011

HTML code appears in posting

There was a friend to ask this, bang Rohman how to do that HTML code can appear in the blog's posts? So from there came the idea to create this post's, there may be among his friends all that also have a question like that? the answer may be this way. In order for the HTML code may appear on your blog's posts, there are several ways and I know when it's just a new two-way.

The first is that you must replace those characters with the command of an HTML program specific notation. for more details I will give you an example, suppose in your post contain words like these:

To make it enough to just put the program below:
 
<meta http-equiv="refresh" content="10">

</meta>


in your post, if you want to look like that so that the write is not exactly like the code above, because later in the post post code will not appear, that is precisely the effect of the code that you write. trus way out how? As I write on the tables, you must replace those characters with a notation of existing orders successor, so that should you write on the post is like this:

To make it enough to just put the program below:  

<br/><br/> <code>
&lt;meta http-equiv="refresh" content="10"&gt;
<br/>
&lt;/meta&gt;
</code>
 

Affixing <code> command and </ code> is to signify that you write is an HTML code, and eventually even the writings that are in this order will tanpil different from other writings, for example, please see my post the other, which put the HTML codes. affixing <br/> command is to make the text move down, if you do not affix <br/> command earlier, although in post-the further you write down, the result will remain united. 

The second way is to use the text area. 
Sebagai contoh, untuk menuliskan kode-kode di atas, pada posting-an anda harus menuliskan seperti ini : 
To make it enough to just put the program below:
<br/><br/>
<p align="left"><textarea name="code" rows="6" cols="400">
&lt;meta http-equiv="refresh" content="10"&gt; &lt;/meta&gt;</textarea></p>



So that will appear on your blog is like this:

To make it enough to just put the program below:

<meta http-equiv="refresh" content="10">

</meta>


easy is not it? good luck and work.

oupss ... I forget my friend, for the post as I described him over, you have to Edit HTML in a position not in a position compose.

okay my friend, for the second time ... good luck.

0 komentar:

Post a Comment

"Dozo Yoroshiku Onengaishimasu"
UMEDA TAKAHIRO © 2008 Template by:
SkinCorner