title: How to align form at the center of the page in html/css
body: <p>I am new to html/css. i am trying to build up my own form and i am trying to align it in the center. I used the align property in css but its not working.</p>
  
  <p>Html code:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;head&gt;
      &lt;title&gt;Web Page Having A Form&lt;/title&gt;
      &lt;link rel = "stylesheet" type="text/css" href="Form.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Create a New Account&lt;/h1&gt;
        &lt;form &gt;
         &lt;table&gt;
          &lt;tr&gt;
           &lt;td&gt;Name :&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="name"&gt;&lt;/td&gt;&lt;br&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td&gt;Email :&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="email"&gt;&lt;/td&gt;&lt;br&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td&gt;Password :&lt;/td&gt; &lt;td&gt;&lt;input type="password" name="pwd"&gt;&lt;/td&gt;&lt;br&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td&gt;Confirm Password :&lt;/td&gt; &lt;td&gt;&lt;input type="password" name="cpwd"&gt;&lt;br&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
           &lt;td&gt;&lt;input type="submit" value="Submit"&gt;&lt;/td&gt;
          &lt;/tr&gt;
         &lt;/table&gt;
        &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Css Code:</p>
  
  <pre><code>    body
  {
      background-color : #484848;
  }
  h1
  {
      color : #000000;
      text-align : center;
      font-family: "SIMPSON";
  }
  form
  {
      align:"center";
  }
  </code></pre>
  
  <p>How should i change my code to align the entire form in the center?</p>