html center text

To text align all yuo have to do this:
  .yournameforclass {
    background: #fff; //which does not have to be there
    text-align: center;
    width: 100%;  //all of this can be varied. Text align can be used in these forms: left, which is to the left, right, to the right of the screen
    height: 300px;
  }<!-- use the center tag -->
  <!-- your code -->
</center>    <html>
h1 {text-align: center;}
p {text-align: 

<h1>This is a 
<p>This is a paragraph.</p>

 <center></center><center>Dieser Text wird zentriert.
<p>Ebenso dieser Paragraph.</p></center>
<div style="text-align:center">Dieser Text wird zentriert.
<p>Ebenso dieser Paragraph.</p></div>


Also in HTML: