
Any text that you
write between the <body> and </body> tags will apear on your webpage.
Experiment a
little with this. Change the title text and write some text. For example:
<html>
<head>
<title>Test Page</title>
</head>
<body>
This page is a test.
</body>
</html>
The following are
tags for different text options. When there are two tags, the first without a slash and
the second with a slash, only the text between the first tag and the second will be
affected.
- <b>...</b>
- bold text
-
- <i>...</i>
- italic text
-
- <u>...</u>
- underlined
text
-
- <center>...</center>
- centered text
-
- <p>
- paragraph return
(inserts an extra line space between paragraphs)
Note: Any paragraph
returns that you insert in your document by simply hitting the Return key on your keyboard
will be ignored by a Web browser. You must use the tag <p> to create a paragraph
break on the screen.
-
- <br>
- line break (no extra
space)
-
- <h1>...</h1>
- header, level 1 (the
largest size type for a header, usually used at the beginning of a page or the start of a
new section). Smaller headers are tagged with <h2>...</h2>,
<h3>...</h3>, etc. The larger the number, the smaller the text (up to
<h6>...</h6>).
-
-
- <font>...</font>
- Defines the font. You
can add several attributes to this tag:
size="any number"
face="any font type"
color="color"
Here is an example for a font tag with all the attributes:
<font size="5" face="times new roman"
color="green">...</font>
Notice that:
- After the name of the
attribute is an equal sign followed by the type (the color, font or size).
- The "type"
is in quotation marks.
- When you close the
tag using </font> you only need to close the basic tag, without the attributes.