Italic Tag in HTML | i tag in html - Sahil Malavi

Italic Tag in HTML, i tag in html , how to make word italic



We use an italic/<i> tag in HTML to make words like this - italic tag in HTML

HTML CODE:

<!DOCTYPE html>
<html>
<body>

<h1> The i element</h1>

<p> My Name Is <i>Sahil Malavi</i> </p>

<p>I am lives in <i> Kolhapur</i>.</p>

</body>
</html>

also know:
<i>  tag defines a piece of text in alternate sounds or moods. They usually display the interior contents in italics.

<i> tags are often technical terms, phrases in another language, ideas.

<i> tag use only when there are no more appropriate semantic elements, such as

<em> (emphasized text)

You can also make a word italic by using the <em> tag. 


HTML CODE:

<!DOCTYPE html>
<html>
<body>

<h1> The i element</h1>

<p> My Name Is <em>Sahil Malavi</em> </p>

<p> I am lives in <em> Kolhapur</em>.</p>

</body>
</html>

In this way, we successfully completed the <i> tag in HTML, and we make the word italic. stay connected for more related content. hope do you like it, please comment.

Thank you.

sahilmalavi.blogspot.com

0 Comments

close