Using HTML

Bold, Italic and Underline

Sometimes you might like to add emphasis to some text. There are several tags which do this. These are the most basic tags to understand. To make text bold simply put bold tags around it. A bold tag looks like <STRONG>. A <STRONG> tag tells the browser to display text following it as bold.

Almost every tag needs to be closed. This tells the browser to stop displaying the tag formatting - </STRONG>.

Bold

Exercise

Type the highlighted text into the page that you have already created, save and refresh the page in the browser. You should be able to see the bold area.

HTML

<HTML>
<HEAD>
<TITLE>My first Web page</TITLE>
</HEAD>
<BODY>
Welcome to the world of HTML.
This is ordinary type but <STRONG> this is bold stuff</STRONG> and this is plain type again.
</BODY>
</HTML>

XHTML

<html>
<head>
<title>My first Web page</title>
</head>
<body>
Welcome to the world of HTML.
This is ordinary type but <strong> this is bold stuff</strong> and this is plain type again.
</body>
</html>

Italics

Exercise

Italics are given with <EM> tags (for EMphasis). Type the highlighted text into the page that you have already created, save and refresh the page in the browser. The italicised area should be visible.

HTML

<HTML>
<HEAD>
<TITLE>My first Web page</TITLE>
</HEAD>
<BODY>
Welcome to the world of HTML.
This is ordinary type but <STRONG> this is bold stuff</STRONG> and this is plain type again.
<EM>Italics look like this </EM>
</BODY>
</HTML>

XHTML

<html>
<head>
<title>My first Web page</title>
</head>
<body>
Welcome to the world of HTML.
This is ordinary type but <strong> this is bold stuff</strong> and this is plain type again.
<em>Italics look like this </em>
</body>
</html>

Underline

A word of warning about underline. Novice users may think that underlined text is a broken link, so it's best not to use it. There are tags which look like <U> & </U>, but these are 'deprecated' which means they should not be used.

The next thing to learn is how to create new paragraphs.