Introduction
In HTML, the i tag is used to make certain words or phrases appear in an italic style. This is often used to indicate that the text is different from the normal text in some way. In this lab, you will learn how to use the i tag in HTML to create italicized text.
Note: You can practice coding in
index.htmland learn How to Write HTML in Visual Studio Code. Please click on 'Go Live' in the bottom right corner to run the web service on port 8080. Then, you can refresh the Web 8080 Tab to preview the web page.
Add the HTML i Tag
Create an HTML document named index.html. This document will contain the HTML code that you will write in the following steps.
Use the HTML i tag to create italicized text in your document. The following is an example of the syntax used to create italicized text:
<i>Some italicized text</i>
Add Text to Italicize
Add some text to the i tag to be italicized. For example:
<p>This <i>text</i> will be italicized.</p>
Summary
In this lab, you have learned how to use the HTML i tag to create italicized text in an HTML document. By following the steps outlined in this lab, you can create the desired effect within your HTML content.



