Neste artigo, definimos uma parte de um texto em uma voz ou humor alternativo usando a tag <i> no documento HTML. É usado para exibir o conteúdo no estilo itálico. Geralmente, é usado para exibir o termo técnico, frase ou palavras importantes de algum idioma ou tecnologia diferente.

Sintaxe:

<i> Contents... </i>

Exemplo:

<!DOCTYPE html>
<html>
  
<head>
    <title>
        How to define a part of text
        in an alternate voice or mood 
        using HTML5?
    </title>
  
    <style>
        body {
            text-align: center;
        }
  
        h1 {
            color: green;
        }
    </style>
</head>
  
<body>
    <i>
        <h1>GeeksforGeeks</h1>
    </i>
    <h2>
        <i>
            How to define a part of 
            text in an alternate voice 
            or mood using HTML5?
        </i>
    </h2>
  
    <p>
        The text content are 
        in italic font.
    </p>
      
    <i>
        It is computer science 
        portal for Geeks
    </i>
</body>
  
</html>                  

Saída:

Os navegadores suportados estão listados abaixo:

  • Google Chrome
  • Internet Explorer
  • Raposa de fogo
  • Ópera
  • Safári