<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
After wading through and correcting all the errors that W3C Validation picked up, I am left with 2 that appear in a Javascript routine that I use to allow a reader to send me an email. I am not versed in the intricacies of Javascript. Can I have some help please?
The routine is:-
<script type="text/javascript">
//-- Mail Variables -
emailname = "info"
emailserver = "irishtype3dna.org"
emailsubject = "?Subject=Information Requested"
// -- Show Envelope Here:
document.write("<a href='mailto:" + emailname + "@" + emailserver + emailsubject + "' >");
document.write("<img src='images/envelope.jpg' width="61" height="31" border="0" alt="" />");
document.write("</a>");
// -- Show a Text Reference Here:
document.write("<font face='Monotype Corsiva' color='008000' size="3" >");
document.write("<a href='mailto:" + emailname + "@" + emailserver + emailsubject + "' >");
document.write(" Mail: Information Requested");
document.write("</a>");
document.write("</font>");
</script>
Errors are:-
Line 399, Column 89: document type does not allow element "a" here
…ite("<a href='mailto:" + emailname + "@" + emailserver + emailsubject + "' >");
Line 403, Column 73: document type does not allow element "font" here
document.write("<font face='Monotype Corsiva' color='008000' size="3" >");

Help
















