Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to understand this code, when I put this on the revalidation site of W3Schools, it says that I have 3 errors and warnings. Where is the problem: I don't understand why it says that the is not finished.

<html>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> 

<table width="580" border="0" cellspacing="0" cellpadding="0">

<tr>
           <td class="permission" align="center">
              <p>You're receiving this newsletter because you have subscribed to us.</p>
              <p> If you would like to submit information, email us at mail@mail.com with the subject line "INFORMATION".</p>

           </td> </tr>   

 </table>
 </html>
share|improve this question

closed as off topic by Daniel Beck, iglvzx, Ellesa, Randolph West, Diogo Jul 19 '12 at 20:07

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 2 down vote accepted

The most serious error is that there are no head, title or body tags. These are required for your document to be valid.

The base of a HTML document should be:

<html>
    <head>
        <title>...</title>
        ...
    </head>
    <body>
        ...
    </body>
</html>

Also, you should really have a DocType and declare your character encoding.

Here's the "complete" basic template for XHTML 1.0 Strict, delivered as HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>...</title>
        ...
    </head>
    <body>
        ...
    </body>
</html>
share|improve this answer
    
thanks for the input will try to edit it again and I'll see if it works. cheers –  tintincutes Aug 5 '10 at 8:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.