Your Ad Here

Tuesday, August 14, 2007

How to show html code in blogger

Often web designers/ bloggers need to show examples of HTML code in their pages, such as:

<a href="http://ibytes.blogspot.com" target="_blank">Computers | Tech | Gadgets</a>

How do you render HTML as text not as HTML elements?

Most HTML tags require an 'opening' and 'closing'. Just replace "<" with &lt; and &gt; for ">".

or using Frontpage:
  • Choose Show Design View, type your html code.
  • Change to Code View and copy the selected code.
  • Paste into your post in Compose Mode.
Another technic is using Form, ex: Text Area

[Go to Insert > Form > Text Area]

Sample Text Area

No comments: