Forms aren't strict?

Discussion in 'HTML & Website Design' started by Matt Ridge, Sep 19, 2011.

  1. #1
    HTXML Strict seems to not like forms, is it me or am I coding it wrong to not be strict?

    <form id="form" method="post" action="database.php">		<label for="added_By" class="ab">Added By:</label>			<input type="text" name="Added_By" value="" />		<label for="added_by_date">On:</label>			<input type="text" name="Added_By_Date" value="" />		<label for="nexx_part">Nexx Part:</label>			<input type="text" name="Nexx_Part" value="" />		<label for="nexx_rev">Nexx Rev:</label>			<input type="text" name="Nexx_Rev" value="" />		<label for="nexx_part_description">Nexx Part Description:</label>				<textarea name="Nexx_Part_Description" rows="4" cols="17px"></textarea>		<label for="NCMR_Qty">Nexx Rev:</label>			<input type="text" name="NCMR_Qty" value="" />		<label for="JO">JO:</label>			<input type="text" name="JO" size="3" value="" />		<label for="SN">SN:</label>			<input type="text" name="SN" size="3" value="" />		<label for="INV">INV:</label>			<input type="text" name="INV" size="3" value="" />	
    	</form>
    HTML:
    Now mind you, I am going to be adding in classes and ids to each one of these items.
     
    Matt Ridge, Sep 19, 2011 IP
  2. Matt Ridge

    Matt Ridge Peon

    Messages:
    166
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I've been attempting to find a way to create a form as strict and so far it's not working well...




    
    <!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>PDI Non-Conforming Materials Report</title>
    <link rel="stylesheet" type="text/css" href="test.css" />
    </head>
    <body>
    
    
    <form id="form" method="post" action="database.php">
            <label id="ab1" for="added_By">Added By:</label>
    			<input id="ab2" type="text" name="Added_By" value="" />
    </form> 
    </body>
    </html>
    Code (markup):

    This is not strict for some reason, and yet I can't figure out why...


    Any ideas?
     
    Matt Ridge, Sep 20, 2011 IP