0

How to add different color in html different paragraphs help me plz 🙏

18th Sep 2021, 6:25 AM
khushboo ruhela khushboo ruhela
2 Respostas
0
u can give a class to each node (p tag ) and use it for example : html: <p class="color1"></p><p class="color2"></p> css: .color1{ color: red; } .color2{ color: green ; } or u can use CSS :nth-child() Selector (https://www.w3schools.com/cssref/sel_nth-child.asp )
18th Sep 2021, 6:59 AM
Pariket Thakur
Pariket Thakur - avatar
0
You can use color properties text colour background colour .... search on internet or read solo lessons
18th Sep 2021, 7:11 AM
A S Raghuvanshi
A S Raghuvanshi - avatar