ad

Thursday, September 4, 2025

html Italic Tag

html Italic Tag

web designing theory

 

 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.

Italic Tag program

<!DOCTYPE html>

<html>                                                  

 <body>                                  

<h2> Itelic tag</h2>

 <i>Some italic text</i>

</body>

 </html>


html 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


html Italic Tag  output  

Italic tag html  output






Related Post :-



html button tag


No comments:

Post a Comment