htmlescapingsymbolshtml-entities

printing "<html>" using html


How do I print the "html" tag, including '<' and '>'? How can I do this for any tag, without using text areas and Javascript?


Solution

  • Use HTML character references:

    &lt;html&gt;
    

    Should output

    <html>