title: HTML how to center content
body: <p>Ive already tried a few stuff and nothing seems to work! I tried looking at other posts but didnt find anything.
     I want to center my name, and the links! as well as the middle portion.</p>
  
  <p>Also wanted to but a border at the top, kinda like facebook has but didnt find anything online.</p>
  
  <p>Heres the link to the website
  <a href="http://electron.cs.uwindsor.ca/~rammal1/" rel="nofollow noreferrer">http://electron.cs.uwindsor.ca/~rammal1/</a></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Hassen Rammal &lt;/title&gt;
  
  &lt;/head&gt;
      &lt;h1 style="color: red"&gt;&lt;center&gt; Hassen Rammal  &lt;/h1&gt;
  &lt;body&gt;
  &lt;body bgcolor="#A9A9A9"&gt;
  
  &lt;h3 align="center"&gt; Welcome to my online porfolio. &lt;/h3&gt;
  
  &lt;div id="table" style="width:80%;margin-left:auto;margin-right:auto;"&gt;
  
  &lt;table height="230px" background="GOT.jpg"&gt;
      &lt;tr&gt;
          &lt;td colspan="3"&gt;&lt;/td&gt;
          &lt;td colspan="3" style="font-size: 4em; font-weight: bold" valign="bottom" &gt;&lt;center&gt;Hassen Rammal&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="2"&gt;&lt;/td&gt;
          &lt;td colspan="4" style="font-size: 1.3em; font-weight: bold;" valign="top"&gt;All the stuff you need to know me&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;&lt;ul &gt;
          &lt;th width="900px"&gt;&lt;/td&gt;
          &lt;th width="70px"&gt;&lt;a href = "AboutMe.html"&gt;&lt;ul&gt;About Me&lt;/ul&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;th width="120px"&gt;&lt;a href = "Education.html"&gt;&lt;ul&gt;Education&lt;/ul&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;th width="120px"&gt;&lt;a href = "Experience.html"&gt;&lt;ul&gt;Work Experience&lt;/ul&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;th width="80px"&gt;&lt;a href=" ThingsILike.html"&gt;Things I Like&lt;/a&gt;&lt;/td&gt;
     &lt;/u&gt; &lt;/tr&gt;
  &lt;/table&gt;
  
  
  
  
  
  
  
  
  &lt;p&gt;  &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thank you for the help.</p>