DISQUS

Tech-Recipes: Displaying HTML code inside an HTML document | HTML | Tech-Recipes

  • marce · 5 years ago
    This didn't work...

    I'm trying to get this to work with html, but the code remained invisible.

    mpamphile @ hotmail.com
  • Rex · 5 years ago
    One way to do this is to use the < plaintext > tag:

    <plaintext>Here is a link: tech-recipes</plaintext>

    This should display as:

    Here is a link:
    tech-recipes
  • tech9 · 5 years ago
    Everything after the <plaintext> tag is plain text including my </plaintext> tag and everything after that. Is there any other way to do this easily?

    Dave
  • wav syntax · 5 years ago
    just include the blank tag with the slash in it "</>" before the inner contents of the actual displayed tag.

    <</>a href="http://tech-recipes.com">tech-recipes<</>/a>

    this is a link.



    this is the only working example that ive come accross once and for all,
    this is the best way to do it.
  • None · 5 years ago
    Don't you mean to use the <XMP> tag?

    It's depreciated but it's the only way I know of displaying HTML in a page. The standards people want you to use <PRE> tags but they don't stop browsers interpreting the block.

    See here for more details: http://www.w3schools.com/tags/tag_pre.asp

    Cheers

    None
  • varinder · 5 months ago
    from where i can download the HTML ebook from internet.....
    plz snd me link