Jump to content

[SOLVED] Help need validating HTML 4.0 contact form (code included)


leet8845

Recommended Posts

Hi all,

 

I have built a web site in dreamweaver, and i have been validating my pages as I go along.

 

Everthing has been fine so far however, I get a error for every text field on my contact form;

 

'the tag: "input" has an XML style closing syntax for an empty element even though version: "HTML4" is not an XML tag language.

'

I'm not sure what the proper way for inserting a input tag is, so it validates.

Any help appreciated

Thanks for looking

Here is my form;

[code]]<form id="form1" name="form1" method="post" action="">
      <table width="100%" cellpadding="3">
        <tr>
          <td width="23%" class="style1">Name: </td>
          <td width="54%"><input type="text" name="textfield" /></td>
          <td width="23%"> </td>
        </tr>
        <tr>
          <td class="style1">Company Name: </td>
          <td><input type="text" name="textfield2" /></td>
          <td> </td>
        </tr>
        <tr>
          <td class="style1">Message:</td>
          <td><textarea name="textarea" rows="3" cols="21"></textarea></td>
          <td> </td>
        </tr>
        <tr>
          <td class="style1">Address Line 1: </td>
          <td><input type="text" name="textfield4" /></td>
          <td> </td>
        </tr>
        <tr>
          <td class="style1">Address Line 2 </td>
          <td><input type="text" name="textfield5" /></td>
          <td> </td>
        </tr>
        <tr>
          <td class="style1">Postcode:</td>
          <td><input type="text" name="textfield6" /></td>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
          <td><input type="submit" name="Submit" value="Submit"></td>
          <td> </td>
        </tr>
      </table>
        </form>
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.