<em> HTML Tag

In this article I will discuss <em> tag of HTML
  • 2126

The HTML em tag is used for indicating emphasis. The em tag surrounds the word/term being emphasised.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <h3>

        Name some color names</h3>

    <ul style="background-color: pink">

        <li><em style="color: Red">Red</em></li>

        <li><em style="color: Green">Green</em></li>

        <li><em style="color: Blue">Blue</em></li>

        <li><em style="color: Gray">Gray</em></li>

        <li><em style="color: Orange">Orange</em></li>

        <li><em style="color: Olive">Olive</em></li>

        <li><em style="color: Lime">Lime</em></li>

        <li><em style="color: Maroon">Maroon</em></li></ul>

</body>

</html>

 

Output

Name some color names

  • Red
  • Green
  • Blue
  • Gray
  • Orange
  • Olive
  • Lime
  • Maroon
Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

 

© 2020 DotNetHeaven. All rights reserved.