How to Display Sample HTML

If you’re looking to write about web design and HTML, you’ve no doubt run into this problem. How do you display sample mark-up that the user can see?

The problem is simple. You want to display the sample markup. The user’s browser wants to render it as actual mark up. You need to come up with something to tell the browser – “Hey, this isn’t supposed to be rendered!”

There are a few ways to do this, laid out in the articles below.

Bookmark and Share:
  • Digg
  • Furl
  • del.icio.us
  • StumbleUpon
  • MisterWong
  • DZone
  • Technorati

6 Comments to “How to Display Sample HTML”

  1. Dafydd said this on

    Hey, is there a section just for latest news

  2. Barry Green said this on

    What theme are you using here ? I like the design. Thanks for the post.

  3. Three Ways to Display Sample Html in a Web Browser said this on

    [...] Cash – a blog about web design, writing, and making cash on the net. You can read more about How to Display Sample HTML, or check out the latest HTML [...]

  4. Three Ways to Display Sample Html in a Web Browser | CSS Tutorial said this on

    [...] Cash – a blog about web design, writing, and making cash on the net. You can read more about How to Display Sample HTML, or check out the latest HTML Tutorials. Bookmark [...]

  5. Three Ways to Display Sample Html in a Web Browser | 4 U ALL Information said this on

    [...] Cash – a blog about web design, writing, and making cash on the net. You can read more about How to Display Sample HTML, or check out the latest HTML [...]

  6. Three Ways to Display Sample Html in a Web Browser | Bina-web.com said this on

    [...] Cash – a blog about web design, writing, and making cash on the net. You can read more about How to Display Sample HTML, or check out the latest HTML [...]

Leave a Reply