How to add italic text in HTML?

by august.kutch , in category: HTML/CSS , 2 years ago

How to add italic text in HTML?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by nicola , 2 years ago

@august.kutch use <i> HTML tag to add italic text in HTML, or you can use CSS and font-style:italic to make text italic, code:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<!DOCTYPE html>
<html lang="en">
<head>
    <title>How to add italic text in HTML?</title>
    <meta charset="UTF-8"/>
</head>
<body>
<!--HTML Solution-->
<p><i>Italic text</i></p>
<!--CSS Solution-->
<p style="font-style: italic">Italic text</p>
</body>
</html>


by Ekaterina_90 , 2 years ago

@august.kutch  To make text italic in HTML, use the <i> tag or <em> tag.


1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
  </head>
  <body>
    <p>This is normal text - <i>and this is italic text</i>.</p>
  </body>
</html>