What is the HTML Italic Tag? Learn with Easy Examples

What is the HTML Italic Tag

html italic tag

 

What is the HTML Italic Tag?

 <i> and <em> Elements

The <i> element is used for presentational purposes only i.e.  style text in italic.

The <i> tag is written as <i>.......</i>  the text inserted between the start and end tags.

Syntax :-

<i> your text italic</i>

What is the HTML Italic Tag? Learn with Easy Examples

program

<!DOCTYPE html>

<html>                                                  

 <body>                                  

<h2> Itelic tag</h2>

 <i>Some italic text</i>

</body>

 </html>

What is the HTML Italic Tag? Learn with Easy Exampleshtml Italic Tag

Explain Program

Step 1 ]  

<!DOCTYPE html>

  • Declares the document type.

Step 2 ]  

<html>...</html>

  • The root element that wraps all content of the webpage.

Step 3]  

<body>...</body>

  • Contains everything visible to the user on the web page.

Step 4 ]  

 <i> is used to italicize text.

  The text "Some italic text" will appear italics tag.

 

Step 4 ] 

</body> and </html>

These are closing tags  <body> and <html> elements

What is the HTML Italic Tag? Learn with Easy Examples

html Italic Tag  output  

What is the HTML Italic Tag? Learn with Easy Examples






Related Post :-

html table cellpadding attribute

how to create checkbox in html

html button tag

Comments

Popular posts from this blog

HTML Tag

HTML Input Type Submit Syntax and Example

CSS Text Color Explained with Syntax and HTML Examples