0 votes
134 views
in HTML by (3.5k points)
edited

How to align text in HTML?

1 Answer

0 votes
by (3.5k points)
edited

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.

Related questions

0 votes
1 answer 157 views
asked Jun 24, 2023 in HTML by Doubtly (98.9k points)
0 votes
1 answer 107 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 132 views
asked Jun 24, 2023 in HTML by Doubtly (98.9k points)
0 votes
1 answer 88 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 121 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 117 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

557 users

...