1 Create a simple Web page using a text editor, and view it from
your Web browser. Figure 2.5 gives an example you might try to
recreate, replacing the detailed content with your own. You may
need to look up some additional HTML tags — find an HTML
tutorial on the Web. If you have access to a Web server, make
your document accessible to others by putting it on the Web and
check that you can view it from another site.
23
Internet Technology and e-Commerce
‘Sanremo a 5A N EEL RELI RES
Figure 2.5
HTML
example My Page
This page is all about me.
My picture
Here is 4 picture of me, centered:
My details
@ My name is Alison — @ Tam 38
2 Use the W3C validation service to check whether the HTML you
produced in the last exercise is valid HTML 4.01. If there are
errors, modify your code until it validates. The validation service
allows you to upload your files if you can’t put them on the
Web.
3 Does your page validate as XHTML? If not, convert it so that it
validates correctly.
4 Add a simple CSS stylesheet to control the appearance:
» The body of the HTML page should be blue.
p All headers (levels 1 to 6) should be red, in helvetica font.
All paragraphs should be indented such that the left margin
(margin-left) is 3cm.
5 Add a simple form. Users should be able to enter:
Their first and last names.
p Their gender (male/female).
j» Which of a list of films they have seen.
Check that this displays and behaves as you expect. Try and
ensure that your form is still valid XHTML -— check its validity
using the W3C HTML validation service.