how to add color to html code example

Example 1: how to change color in html

<font color="red">This is some text!</font>

Example 2: how to color in html

<h1 style="color: red;">Hello</h1>

Example 3: how to change color in html

<body>
  <!-- style color (hex color) + the text -->
  <h1 style ="color: #000000; "> Apples <em>is a tech company</em></h1>
</body>

Example 4: how to change font in html

<font face="yourfont">
  
  Lorem Ipsum
  
</font>

Example 5: how to change the font in html

<script>//for typewriter font:</script>

<tt>
  <h1>Example Text</h1
</tt>

Tags:

Css Example