+ 2

How can we change color of different like h1 H2 h3

18th Sep 2023, 9:58 AM
Jyoti Sahu
Jyoti Sahu - avatar
4 Respostas
+ 3
First method: <h1 style="color: ghostwhite"; Second method: use Css for designs like h1{ color: ghostwhite; background-color: Blue; }
18th Sep 2023, 4:30 PM
Mohammad Asim Adeel
Mohammad Asim Adeel - avatar
+ 4
Jyoti Sahu There are three ways to use CSS in which you can change the color of your heading. 1. In-line css: you have to put css code in the opening html code. 2. Internal css: you have to add <style></style> tag in the <head> tag. 3. External css: where you have to create another file for css. You can link that file via the <link> tag in the <head> section.
18th Sep 2023, 10:23 AM
JAY
JAY - avatar
+ 3
You can use CSS to change the color, e.g. <h1 style="color: red;">Heading</h1> The CSS course can teach you more convenient ways to do it.
18th Sep 2023, 10:00 AM
Lisa
Lisa - avatar
+ 1
thanks
18th Sep 2023, 10:27 AM
Jyoti Sahu
Jyoti Sahu - avatar