html text code example

Example 1: make text blue html

<p style="color:blue;">This paragraph is blue.</p>

Example 2: html bold text

<html>
 <head>
   <title>Bold text</title>
 </head>
 <body>
   <p>Use the strong element to <strong>indicate strongly emphasized</strong> content.</p>
 </body>
</html>

Example 3: html bold

<!--Emphasized bold text. It's for content that is of greater importance-->
<strong>I'm a content</strong>

<!--Bold text. It's used to draw attention to text without indicating that it's more important-->
<b>I'm another content</b>

Example 4: how to write a text in html

<p> this is a text  </p> <!--paragraph text-->

Example 5: text color css

.YourClass {
  color: #ff0000;
}

Example 6: html text tag

<text>Your Text...</text>

Tags:

Css Example