Wednesday, December 23, 2009

When trying to make a HTML code tutorial, how do you make the tags so that they don't get read by the browser?

When I want to learn HTML, I go to tutorial sites. I want to know how they can display their tags as text, without letting it get read by the browser.


When trying to make a HTML code tutorial, how do you make the tags so that they don't get read by the browser?
http://allmyfaqs.net/faq.pl?Show_HTML_ex鈥?/a> explains in detail.





In short: use the ampersand character followed by gt or lt and then a semi-colon along with %26lt;code%26gt; tags.When trying to make a HTML code tutorial, how do you make the tags so that they don't get read by the browser?
You can replace all %26lt; with %26amp;lt ; and all %26gt; with %26amp;gt ; in the code.





For example,





%26lt;html%26gt;%26lt;/html%26gt; can be written as %26amp;lt ;html%26amp;gt ; %26amp;lt ;/html%26amp;gt ;





(remove the spaces before the semicolons)
  • vegetable oil
  • laser toner
  • No comments:

    Post a Comment