how to put text in the middle of a page html

Hello geeks! In this tutorial I have shared the details about “how to put text in the middle of a page html”. Okay, let’s move on to the post.

how to put text in the middle of a page html

you just need to add this line of code in your tag(<p>; h1, h2, td etc):
  
<p align="center">sample text<p/>
text-align: center;
<center>text</center>
With the aid of internal or external CSS you can center text with:

text-align: center;

Final Words

I hope this tutorial helps you to know about “how to put text in the middle of a page html”. If you have any questions regarding this tutorial please let us know via the comment section. Share this tutorial with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment