/    Sign up×
Community /Pin to ProfileBookmark

What doctype should I use

I m confused, when I validate my code through different doctypes through W3C, I get different errors. Here is my code that i wrote 3 or 4 years ago.

[code=html]
<html>
<head>
<title>Contact Form</title>
<STYLE type=”text/css”>
Body {font-family:arial, helvetica, arial, sans-serif; color:#666666;top:0;left:0;margin:0;padding:0;}
A:link, A:visited, A:active { color:#666666; text-decoration:none;}
A:hover { color:#000000;}
form { font-family: Times New Roman;FONT-SIZE:8.5pt; }
textarea { background-color: #ECF0F8; FONT-FAMILY:Verdana,Arial,Helvetica;FONT-SIZE:8.5pt;COLOR:#000000;BORDER:1px solid black;}
input { background-color: #ECF0F8; FONT-FAMILY:Verdana,Arial,Helvetica;FONT-SIZE:8.5pt;COLOR:#000000;BORDER:1px solid black; }
.inputstyle { background: #fff url(“images/inputbg.jpg”) top left;height: 16px;border: 1px solid #999;border-top-width: 0px;margin-top: -1px; margin-top:0px;}
.pr_subtitle { width:500;font-weight: bold; font-size: 8pt; color: #ffffff; padding: 0px 0px 0px 0px; background-color: #ff8000; border-top: 2px solid #ffaa33; border-bottom: 2px solid #cc5500; }
.Link3 { width:500;background-color:#FFFF99;font-size: 12pt;text-align: left; color: #000000;}
</STYLE>
<meta name=”email” content=”[email protected]”>
<META HTTP-EQUIV=”ImageToolbar” CONTENT=”No”>
<meta http-equiv=”content-type” content=”text/html; charset=UTF-8″>
<META NAME=”ROBOTS” CONTENT=”NOARCHIVE”>
<script language=”JavaScript” type=”text/javascript” src=”stats.js”></script>
</head>
<BODY>
<CENTER>
<TABLE border=”0″ cellpadding=”0″ cellspacing=”0″>
<TBODY>
<TR>
<TD>
<img src=”images/head.jpg” border=”0″ usemap=”#vme” width=”705″ height=”110″ alt=”Virgin Mary Exports”></TD>
</TR>
</TBODY>
</TABLE>
<MAP name=”vme”>
<AREA shape=”rect” coords=”5, 77, 82, 104″ href=”index.php?page=aboutus” alt=”About us”>
<AREA shape=”rect” coords=”94, 78, 265, 105″ href=”index.php?page=ourproducts” alt=”Our products”>
<AREA shape=”rect” coords=”270, 78, 390, 105″ href=”index.php?page=catalogue_page_1″ alt=”Catalogue”>
<AREA shape=”rect” coords=”400, 79, 512, 105″ href=”index.php?page=contactus” alt=”Contact us”>
<AREA shape=”rect” coords=”521, 79, 621, 106″ href=”index.php?page=intro” alt=”Intro”>
<AREA shape=”rect” coords=”626, 79, 703, 106″ href=”index.php?page=main” alt=”Home”>
<AREA shape=”default” nohref alt=”None”>
</MAP>
<img src=”images/contactus.jpg” border=”0″ width=”120″ height=”50″ alt=”Contact us”>
<br><br>
<form action=”http://www.virginmaryexports.com/index.php?page=form” name=”contact” method=”POST”>
<table border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”>
<tr>
<td align=”left” valign=”bottom”><img src=”images/line3_1.gif” width=”6″ height=”6″ alt=””></td>
<td background=”images/line3_1_bg.gif”></td>
<td align=”right” valign=”bottom”><img src=”images/line3_2.gif” width=”8″ height=”6″ alt=””></td>
</tr>
<tr>
<td style=”border-left:1px solid #ADADAD; “>&nbsp;</td>
<td align=”center” style=”border:1px solid #fafafa;”>

<TABLE border=”0″ width=”721″ cellspacing=”0″>
<TBODY>
<TR>
<TD BGCOLOR=”#ECF0F8″ width=”139″ align=”left”><B>Full Name:</B></TD>
<TD BGCOLOR=”#ECF0F8″ width=”274″><INPUT type=”text” class=”inputstyle” name=”Name” size=”42″ value=””></TD>
<TR>
<TD width=”139″ align=”left”><B>Email:</B></TD>
<TD width=”274″><INPUT type=”text” class=”inputstyle” name=”Email” size=”42″ value=””></TD>
<TR>
<TD BGCOLOR=”#ECF0F8″ width=”139″ align=”left”><B>Company:</B></TD>
<TD BGCOLOR=”#ECF0F8″ width=”274″><INPUT class=”inputstyle” type=”text” name=”Company” size=”42″ value=””></TD>
<TR>
<TD BGCOLOR=”#FFFFFF” width=”139″ align=”left”><B>Website:</B></TD>
<TD BGCOLOR=”#FFFFFF” width=”274″><INPUT class=”inputstyle” type=”text” name=”Website” size=”42″ value=””></TD>
<TR>
<TD bgcolor=”#ECF0F8″ width=”139″ align=”left”><B>Address:</B></TD>
<TD bgcolor=”#ECF0F8″ width=”274″><INPUT type=”text” class=”inputstyle” name=”Address” size=”42″ value=””></TD>
<TR>
<TD bgcolor=”#FFFFFF” width=”139″ align=”left”><B>City/State/ZIP:</B></TD>
<TD bgcolor=”#FFFFFF” width=”274″><INPUT size=”12″ class=”inputstyle” type=”text” name=”City” value=””> <INPUT type=”text” size=”12″ class=”inputstyle” name=”State” value=””> <INPUT type=”text” class=”inputstyle” size=”12″ name=”Zip” value=””></TD>
<TR>
<TD BGCOLOR=”#ECF0F8″ width=”139″ align=”left”><B>Country:</B></TD>
<TD BGCOLOR=”#ECF0F8″ width=”274″><INPUT type=”text” class=”inputstyle” name=”Country” size=”42″ value=””></TD>
<TR>
<TD BGCOLOR=”#FFFFFF” width=”139″ align=”left”><B>Phone Number:</B></TD>
<TD BGCOLOR=”#FFFFFF” width=”274″><INPUT type=”text” class=”inputstyle” name=”Phone” size=”42″ value=””></TD>
<TR>
<TD BGCOLOR=”#ECF0F8″ width=”139″ align=”left”><B>Fax:</B></TD>
<TD BGCOLOR=”#ECF0F8″ width=”274″><INPUT type=”text” class=”inputstyle” name=”Fax” size=”42″ value=””></TD>
<TR>
<TD BGCOLOR=”#FFFFFF” colSpan=3 width=”742″><B>Type your message here:</B><BR>
<TEXTAREA name=”Comments” rows=”25″ cols=”112″></TEXTAREA></TR>
<TR>
<TD BGCOLOR=”#FFFFFF” width=”139″ align=”left”><B>Verification:</B></TD>
<TD BGCOLOR=”#FFFFFF” colSpan=3 width=”742″><B><br>Type the numbers you see in the picture below.</B><br><img id=”captcha” src=”security/securimage_show.php” alt=”Validate this number”><br><br><INPUT TYPE=”TEXT” name=”imagetext” size=”10″ class=”inputstyle”><br></TD></TR>
<TR>
<TD colSpan=2 bgcolor=”#FFFFFF” width=”613″><br><INPUT class=”input” type=”submit” name=”submit” value=”Send Form”> <input class=”input” type=”reset” value=”Reset” name=”B2″><br><br></TD></TR>
</TBODY>
</TABLE>
</td>
<td background=”images/line3_2_line.gif”>&nbsp;</td>
</tr>
<tr>
<td align=”left” valign=”bottom”><img src=”images/line3_4.gif” width=”6″ height=”9″ alt=””></td>
<td background=”images/line3_4_bg.gif”></td>
<td align=”right” valign=”bottom”><img src=”images/line3_3.gif” width=”8″ height=”9″ alt=””></td>
</tr>
</table>
</form>
<script language=”JavaScript” type=”text/javascript”>
<!–
document.contact.Name.focus();
//–>
</script>
<br><br>

<br>
<font size=”1″><b>You are our visitor number 32769 and 2 users currently online !</b>
</font><br>
<img border=”0″ src=”images/opposite.jpg” width=”120″ height=”27″ alt=”image”>
</center>
</body>
</html>
[/code]

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 06.2008 — If you do not want to change anything else, then HTML Transitional will be closest to what you have there.
<i>
</i>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&gt;
Copy linkTweet thisAlerts:
@saudauthorJul 06.2008 — Hi, thanks for the solution, Only one error is displayed:

there is no attribute "BACKGROUND".

<td background="images/line3_1_bg.gif"></td>


Actually it is the border of my table, rounded. http://www.virginmaryexports.com/index.php?page=form
Copy linkTweet thisAlerts:
@NogDogJul 06.2008 — Instead of the background attribute, use [b]style="background-image:images/line3_1_bg.gif"[/b].
Copy linkTweet thisAlerts:
@CentauriJul 06.2008 — Err... you would mean [COLOR="Blue"]<td style="background: url(images/line3_1_bg.gif)"></td>[/COLOR] wouldn't you?
Copy linkTweet thisAlerts:
@NogDogJul 07.2008 — Err... you would mean [COLOR="Blue"]<td style="background: url(images/line3_1_bg.gif)"></td>[/COLOR] wouldn't you?[/QUOTE]
Yeah, it was late, I copied-and-pasted, and forgot to finish editing. Oh, and the sun was in my eyes, and I had a pebble in my shoe.
×

Success!

Help @saud spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...