SiteDesignTutorial.com

Adding formatting italic to html text.


So you know how to make a text bold. If it's not clear, you can always return to Bold html chapter and get a refresher.

Let's carry on with the Italic tutorial.

Just like Bold, italic also uses a similar format, but here instead of <b> we use <i> .

Using our previous example of Hello World, we will do some italic text now.
I hope you know how to open the document in the notepad by now...Open it.

Place your cursor at the start of the text you want to italicize, and type:


<i>



Now go where you want the italics to end and type:


</i>



If you wanted to italic the whole line, (hello world!), then your html looks like this:


<i>Hello World!</i>



Save and refresh.

Just like Bold, you can also italicize single words, or even alphabets. See these examples below:

Hello World! (Code: <i>Hello</i> World!)
Hello World! (Code: <i>H</i>ello World!)

Ready to underline text?

SiteDesignTutorial arrowHTML Text underline