Click to See Complete Forum and Search --> : <A> Tags In A <TEXTAREA>
JavaHead Jonnie
08-29-2004, 08:03 AM
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
Charles
08-29-2004, 08:23 AM
<!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>&lt;a href="http://www.w3.org/"&gt;W3C&lt;/a&gt;</code></p>
</body>
</html>
JavaHead Jonnie
08-29-2004, 10:05 AM
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;.