ipl Learning HTML

Format Tags

You can center your words on a line:

<center>Woo-Hoo! I’m Learning HTML!</center>

WARNING! You really shouldn’t use the <center></center> tags once you understand HTML and CSS (which we’ll explain a little later). However, since you’re just starting to learn HTML, go ahead and use them.

You can make words bold or strong:

<strong>Woo-Hoo!</strong> I’m learning HTML!

Notice that I placed the start bold tag, <strong>, just before the word that I wanted to make bold, as well as placing the end bold tag, </strong>, right after the word I wanted to make bold. This way I am giving specific instructions to the web browser, telling where to start making things bold and where to end. If I had forgotten to put the </strong> tag, it would have totally changed the display in the web browser. Check it out:

<strong>Woo-Hoo! I’m learning HTML!

You can make words italicized or emphasized:

Woo-Hoo! I’m <em> learning </em> HTML!

You can even use tags in combination. Want something bold and in italics? No problem:

<html>
<head>
<title> Learning HTML </title>
</head>
<body>
<strong><em>Woo-Hoo! I’m learning HTML!</em></strong>
</body>
</html>

When you use more than one pair of tags, as I did in the above example, you need to do something called nesting so that you won’t confuse the web browser. Let me explain…right arrow

This resource originally created by Deborah Dunk.
Revised and edited by Michael Galloway in 2005 & in 2006.