This first round of exercises is to get faimiliar with the most common HTML elements and how to use them in a WWW document. You will use HTML-Kit editor whose basic properties will be reviewed. You will also use a HTML validator. For examples of using XHTML-elements see the second leture.
Click the Proofing tab. Click off the first three check boxes to get rid of automatic language check that may be disturbing (especially for the Finns as it can only spell English).
Select TIDY and option XML for Output:. Now the HTML-tidy programme inside HTML-Kit can correct or notify you of possible errors you make.
Click OK to accept the changes.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Charaterizing title</title>
</head>
<body>
<h1>Heading</h1>
</body>
</html>
You can use this as a base for all your HTML-documents. You can also insert it to the HTML-Kit settings:
Edit|Preferences|Startup|Insert following text into new documents.
h1 inside the body element. Select the text Fiksu lukeminen
from the beginnig of the body element with the mouse and press ALT-INSERT. HTML-Kit asks which elemet you want to use
for the selected area. Use h1.
h2 element. Use CTRL-H to find the text and ALT-INSERT for
setting the elements. When you are done with the headings, save the doument and see how it looks.
p as above. Save and compare the document to the
original article by Jukka Korpela.
ul (unorganized list).
li.
<ul>
<li>First element</li>
<li>Second element</li>
<li>Third element</li>
</ul>
ul and li.dl as it is about defining certain
abbreviations.
dl.dt.dd.
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets</dd>
</dl>
pre
element. This element is commonly used when presenting program codes. So, mark the whole thread with pre.
h2 element. That can be done by adding an id attribute to the h2 elements.
An id has to start whit a letter. For example:
<h2 id="h1">Lukemisen tapoja: säännöllinen, satunnainen, kerrallinen</h2>
Add the id for every h2. The easiest way is to name them as heading1, heading2, heading3 and so fort.
a
whose href attribute contains the address where the link should lead to. The element a
contains the text presented as the link. For example:
<li><a href="#h1">Lukemisen tapoja: säännöllinen, satunnainen, siltä väliltä</a></li>
If the link is only inside the same document, the address should start with #.
Add the links to all the headings to the table of contents and save. Use the browser to try if the links work.
Validate and correct the errors.
a around the same words as in the original artile.href attribute of the element a
Do these extra exercises if you still have the time or the enthusiam after the previous ones.

p).img element inside the paragraph element and add the following properties:
src attribute contains the address of the image or just the name in case the
image is in the same folder as the document. An example:
<img src="picture.jpg" />alt attribute tells the contents of the image for those who do not upload images or
whose browser cannot show any. For example:
<img src="picture.jpg" alt="Tommi Lahtonen lecturing on the Utilizing Information Networks
course" />title attribute is for the text that is shown when moving the mouse cursor onto it.
An example: <img src="picture.jpg" alt="Tommi Lahtonen lecturing on the Utilizing Information Networks
course" title="First lecture" />title and alt texts for the image.See the lecture page to learn how to create tables. Then make a table like the one below under the image.
| Date TIME |
Monday | Tuesday | Wednesday | Thursday | Friday |
|---|---|---|---|---|---|
| 8-10 | Group 2 Ag B211.1 |
Group 5 Ag B211.1 |
Group 9 Ag B211.1 |
||
| 10-12 | Group 3 Ag B211.1 |
Group 6 Ag B211.1 |
Group 10 Ag B211.1 |
||
| 12-14 | Group 7 Ag B211.1 |
Group 11 Ag B211.1 |
|||
| 14-16 | Group 8 Ag B211.1 |
Group 12 Ag B211.1 |
|||
| 16-18 | LECTURE Aud. 1 |
LECTURE Aud. 1 |
|||
| 18-20 | Group 1 Ag B211.1 |
Group 4 Ag B211.1 |