Como definir uma parte do texto em uma voz ou humor alternativo usando HTML5?
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
As postagens do blog Acervo Lima te ajudaram? Nos ajude a manter o blog no ar!
Faça uma doação para manter o blog funcionando.
70% das doações são no valor de R$ 5,00...
Diógenes Lima da Silva