title: Best practice for making web forms
body: <p>Is it ok to use tables to make web forms or should I use div's? I know how to use tables, but how should I make form with div's or is it better to use tables?</p>
  
  <pre><code>&lt;form method="post"&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;label for="username"&gt;Username:&lt;/label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;input type="text" name="username" id="username"/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;label for="password"&gt;Password:&lt;/label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;input type="password" name="password" id="password"/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;input type="submit" name="cancel" value="Cancel"/&gt;
              &lt;/td&gt;       
              &lt;td&gt;
                  &lt;input type="submit" name="send" value="Send"/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <blockquote>
    <p><strong>Possible Duplicate:</strong> <a href="https://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html">Why-not-use-tables-for-layout-in-html</a></p>
  </blockquote>