The main html tags

 

  Web browsers need web pages to be marked up in a language called HyperText Markup Language or HTML. HTML tags around the text of a web page determine how the browser will display that text on the screen.

For example

<b> switches on emboldening of the text. The emboldening will not finish until you have added the tag </b> to a piece of text.

All html tags must be typed within chevrons, they are the maths symbols for less than < and greater than >

<b> bold on and bold off </b>
<i> italics on and italics off </i>
<br> Single line break or line feed
<p> Paragraph start or double line break
<center> Centre text, note US spelling</center>

.

First, though, new web pages need a standard set of header tags at the top. These are as follows:

<html> html on and html off </html>
<head> header section on and header off </head>
<title> title on and title off </title>
<body> body section on and body off </body>


 

The body tag may also have switches to change the background colour of the web page, like this
<body bgcolor=aabbcc> switch on background colour (a list of these is available here)


You may copy this set of tags as a ready-made for your own web pages. Thet are all in the correct order:


<html>
<head>
<title> Type your own title here for display on browser frame top </title>
</head>
<body bgcolor=ffffff>
Type in your own web page information
here after erasing my text. And then don't forget to
finish off the page with these
two tags at the very end
</body>
</html>

Copy all the code above and paste it into a Notepad (or Simple Text) file, save it as template.htm



Question:
What tag switches off the head section?

Click first in the answer box,
type in your tag without the chevrons and
then click the "submit" button

use all lower-case letters, please

The pop-up adverts are from the service provider, simply click on the X to close the interstitial windows as they appear.
Or use the Minimize button

Click the minimize button on your browser

to reduce the pop-ups to
buttons on the taskbar


You may order an 'unsponsored' copy of
this eLearning pack to run on your own
computer or university server.







next activity »
« back to menu