word

页面

mouse snow

2014年1月9日星期四

How to show the HTML code in webpage?

The HTML code will automatic become the command, so that cannot like the words or text show on the webpage. Here, I will show you how to show the HTML code in webpage :)

Method 1: use textarea ~ codecontiner

Example:

use this code:
<textarea class="codecontainer" rows="8" cols="45" wrap="virtual">


Method 2: separate the code

Example:
If you want show :

then you can write like this :

so that the <script type="text/javascript"> can be show :)

没有评论:

发表评论

back to top