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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.