Answers for "text colour in html"

19

text color html

<!-- If you want a color on a specific text, use this : -->
<p style="color:---"> Text <p>
  
<!-- Here an exemple if you want a blue text-->
<p stlye="color:blue"> Romuald <p>
  
<!-- If you want a specific class in a color, use css, its better-->
Posted by: Guest on June-15-2020
2

how to give color to text in html

HTML color to text
<body>
  <p style="color:#FF0000";>Red paragraph text</p>
</body>
Posted by: Guest on December-01-2020
10

html color text

<p style="color: #ffffff;">Lorem ipsum...</p>				<!-- text -->
<p style="background-color: red;">Lorem ipsum...</p>		<!-- background -->
<h1 style="border: 2px solid #00ff00;">Lorem ipsum...</h1>	<!-- border -->

<!-- 3 ways to define colors -->
<h1 style="background-color: rgb(255, 99, 71);">Lorem ipsum...</h1>
<h1 style="background-color: #ff6347;">Lorem ipsum...</h1>
<h1 style="background-color: hsl(9, 100%, 64%);">Lorem ipsum...</h1>
Posted by: Guest on September-05-2021
1

html text color

<p style="color: [name od color e.g. 'blue' or hex code e.g. '#ffffff']">
  Hi, I'm coloured </p>
Posted by: Guest on January-12-2021

Browse Popular Code Answers by Language