dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: <A> Tags In A <TEXTAREA>

  1. #1
    Join Date
    Nov 2003
    Location
    Cyberspace, last time I checked.
    Posts
    166

    <A> Tags In A <TEXTAREA>

    Hi, I want to be able (On my 'Link To Us' page) put snippets of HTML into a <TEXTAREA> so it isn't parsed and is easy to copy. however this doesn't validate becuase according to The W3C <A>'s don't go there.
    Is there an alternative HTML 4.01 Trans. valid method of displaying code that isn't parsed?


    Thanks & Regards, Jonnie

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Content-Script-Type" content="text/javascript">
    <meta name="Content-Style-Type" content="text/css">
    <title>Example</title>
    </head>
    <body>
    <p><code>&amp;lt;a href="http://www.w3.org/"&amp;gt;W3C&amp;lt;/a&amp;gt;</code></p>
    </body>
    </html>
    Last edited by Charles; 08-29-2004 at 08:30 AM.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Nov 2003
    Location
    Cyberspace, last time I checked.
    Posts
    166
    Thanks for those two points. My stupid HTML book doesn't even have <CODE> in it (Thank God for W3's HTML Element List) and I forgot about & lt; and & gt;.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles