• Lucid Dreaming - Dream Views




    Results 1 to 2 of 2
    1. #1
      !DIREKTOR! Adam's Avatar
      Join Date
      Jan 2007
      Gender
      Location
      Aquanina's closet
      Posts
      5,194
      Likes
      34

      Display HTML on a website.

      Does anyone know how I can display HTML on a website page?

      I thought it was as simple as:

      <code><a href=http://www.link.com target="_blank"><img src=http://www.link.com/image.jpg ></A></code>

      But this still displays the picture, I want it to display the HTML within the <code> tags.


    2. #2
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      use
      Code:
      &lt;
      (HTML code for "less than") and
      Code:
      &gt;
      (HTML code for "greater than") instead of < and >


      *edit*
      look at the source of this page for an example
      Code:
      <div id="post_message_776674">Does anyone know how I can display HTML on a website page?<br />
       <br />
      I thought it was as simple as:<br />
      
       <br />
      &lt;code&gt;&lt;a href=<a href="http://www.link.com" target="_blank" rel="nofollow">http://www.link.com</a> target=&quot;_blank&quot;&gt;&lt;img src=http://www.link.com/image.jpg &gt;&lt;/A&gt;&lt;/code&gt;<br />
       <br />
      But this still displays the picture, I want it to display the HTML within the &lt;code&gt; tags.<br />
      
       <br />
      <img src="images/smilies/icon_confused.gif" border="0" alt="" title=":?" class="inlineimg" /></div>
      Last edited by Ynot; 04-17-2008 at 01:17 PM.
      (\_ _/)
      (='.'=)
      (")_(")

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •