The text-align attribute determines how text in an element is aligned horizontally.
In CSS, the text-align property is used to specify the horizontal alignment of text in an element, i.e., it is used to align content horizontally within a block element or table-cell box. It's used to inherit a property from the parent element's property value to an element.
In CSS, utilise the text-align property and set the value to "centre" to centre text. Let's begin with a simple example. Let's say you have a text-only web page that you want to focus. To target every element on the page, you may use the CSS universal selector (*) or the type selector body.
The default setting is left. The content is aligned to the left. right — The content is aligned to the right. Between the left and right margins, the content is centred.
When you justify text, you add space between words so that the two margins are aligned on both sides of each line. The paragraph's final line is oriented to the left.
Learner's Ratings
4.4
Overall Rating
70%
15%
7%
4%
4%
Reviews
G
Gaurav Sardar
5
very good explaining this topic, such a good teacher
V
Vishal
5
Owesome and clear understanding about each topics the way of explaining is very good and they teach each and everyt topics from the beginning to the end with live practical and assignments
R
Rudra
4
Sir thanks a lot
S
Shubham Shinde
5
good
C
Chandan kumar sharma
4
aap jo is video me bata rahe hai ki pahle ye sab padha hai position ke bare me to kaha padhaye hai abhi tak wo sab ?
M
Monika Rana
5
Great Explaination!
V
Vishal
5
Its really good teacher
Best explanation
N
Neha Chaprana
5
all good
V
Vivek kumar
5
forums feature is not working ☹️
Q
Qitmeer Raza
5
This Course Is Very Helpful For Beginners !! THANKS, A LOT
Share a personalized message with your friends.