[Tex]\ colour[red][TeX/] how i make text in colour
Answers
Answered by
1
Use CSS property for that like below.
<html>
<head>
<title>Color text</title>
<style>
#tag{
color : red;
}
</style>
</head>
<body>
<p id="tag"> Hello there. </p>
</body>
</html>
Here ,in place of id you can use anything u want but I used "tag".
In your style tags always remember to use # sign in order to reference id on which you want to perform action.
Thanks
<html>
<head>
<title>Color text</title>
<style>
#tag{
color : red;
}
</style>
</head>
<body>
<p id="tag"> Hello there. </p>
</body>
</html>
Here ,in place of id you can use anything u want but I used "tag".
In your style tags always remember to use # sign in order to reference id on which you want to perform action.
Thanks
Similar questions