+ 2
How to apply colors to fonts in HTML ??
I want to change the colour of the background and want to make the fonts colourful...
10 odpowiedzi
+ 4
html5 ? the most direct way is to use inline css
<span style="color: pink">pink text</span>
+ 6
HTML code:
<p class="ara">I am a sololearner</p>
CSS code:
.ara{
color:green;
}
+ 2
Use CSS.
+ 1
You can do it with CSS .
ex. inline CSS
<p style="color:red";>Red Text</p>
+ 1
HTML code:
<p id="intro">I love football</p>
CSS code:
#intro{
color:red;
}
+ 1
<h1 style="color:pink">Hii<h1>
<p style="color:pink">Hii<p>
0
Thanks bro 🙏
0
or you can use this
<font color="red">This is some text!</font>
0
<!DOCTYPE.HTML>
<html>
<head>
<body bgcolor font-family; font-color:#FF00FF;>
<h1><marquee>Hello World</h1>
</html>
</head>
</body>