+ 1

How do I color text and align text at the same time in HTML?

I'm trying to make my text a different color while aligning it in HTML4. Is there a way to do it without CSS or do I need to use CSS?

26th Oct 2018, 5:56 PM
Yosharu
Yosharu - avatar
4 Respostas
+ 1
u need css for it. <p style="color:red,text-align:center">welcome</p> or <p style="color:red" align="center">welcome</p>
26th Oct 2018, 7:57 PM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar
+ 1
Adarsh.n. Bidari thanks a lot!
26th Oct 2018, 8:00 PM
Yosharu
Yosharu - avatar
0
welcome
26th Oct 2018, 8:00 PM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar
0
How to add it on a header that is on <h1>
4th Apr 2021, 10:42 AM
Mevin Viji
Mevin Viji - avatar