Basically, if you want to align your text using HTML, then you need to use css and follow the proper process:
div.a {
  text-align: center;
}
 
div.b {
  text-align: left;
}
 
div.c {
  text-align: right;
}
 
div.c {
  text-align: justify;
}
The text-align property discusses the horizontal alignment of text in an element.