HTML Tutorial | Text Alignment


HTML text-alignment is used to give different alignments (like right,center or left) to the text on web page.

  • HTML Text alignment are define by style="text-align:value;" syntax.
  • Value can be (center, right or left). By default text are align left on the web page.
  • It can be used in any HTML element inside Opening tag.
Example:
   <p style="text-align:center;">This text comes center to the web page.</p>
   <p style="text-align:right;">This text comes right to the web page.</p>

Video-English
Best Use:360p or more (480p or 720p)



Video-Hindi
Best Use:360p or more (480p or 720p)