HTML
HTML
You’ve had a play on / done some investigative research into the World Wide Web.
You’ve begun to recognise its potential. Now you want / need to learn to write material
for this marvellous medium yourself! Where do you begin? The best help is already
written on the Web itself.
What is HTML?
HTML is a simple computer language which allows documents to be read on all
‘browsers’ (this is the program which sits on your computer and enables you to read
documents on the Web, for example, Explorer and Navigator). HTML is a system of
tags or codes that are universally recognised by browsers which then ‘translate’ the file
into a readable document whatever the computing ‘platform’ (e.g. PC, Mac or Unix). The
tags also allow for the most important feature of the Web, the links, to be added. These
are the ‘hot words’ which will take the reader from page to page.
At a slightly more sophisticated level, there are ‘editors’ that will insert these codes for
you. These are programs such as Dream Weaver, Page Mill, Front Page, (there are
many more), which will take a word-processed document and re-create it as a Web page
for you (give or take a little adjustment).
At a still higher level, there are programmes that will allow you to author more complex
documents which can for example include the facility for students to mail to you replies
to questions posed in an on-line course; or make use of audio or animated files.
Incorporating media such as these into a course delivered via the WWW obviously make
the learning experience more interesting or satisfying for your students than would a ‘flat’
page which contains information in much the same format as in a book. Even with flat
text however, there are boundless possibilities of linking to other sources of information
(but we’re running before we can walk!)
There is no point in me writing a step by step primer to writing HTML, as this has already
been done by better qualified people. All the information is already there on the web.
Probably the best place to start is by working through ‘Writing HTML - a tutorial for
creating WWW pages’. This is a great beginner’s primer and is how I learned the
basics. It also has some links to sites that will show you how progress to being an
advanced writer.
http://www.mcli.dist.maricopa.edu/tut/
There’s also a course of instruction on using the Internet, The Online Netskills
Interactive Course (TONIC). TONIC is an easy-to-understand, structured course,
offering step-by-step, practical guidance on major Internet topics, ranging from basic
through to advanced - according to its promotional material! The course as a whole is
intended for beginners to networking, but who have some familiarity with computers It’s
free for UK HEI academics to sign up to.
http://www.netskills.ac.uk/TonicNG/cgi/sesame?tng
♦ First launch your web browser by going to ‘Start’, ‘Programs’ and ‘Internet Explorer’.
A new window will launch with the Notepad text editor, and you will be able to see
the underlying codes that instruct the MBChB Homepage to look as it does.
Note all the HTML codes are enclosed in brackets <> and include a start command
and a finish command. So for example, to make text bold, type <BOLD> before the
start of your bold text and </BOLD> when you want the text to stop appearing in bold
font.
You can look at the underlying codes for most pages in this way, so if you find a
page and want to imitate the colours or fonts, it is easy to copy the tags.
Now write your own page:
Remember from the introduction above, HTML code is basically is a series of ‘tags’
attached to plain text. Every HTML document must include certain tags, and you will
learn these if you follow one of the suggested on-line tutorials above.
<HTML>
<HEAD>
<TITLE> This is the text that appears in the very top blue toolbar</TITLE>
</HEAD>
<BODY>
<P><H1>This is the title in larger font</H1>
<BR>
<I>Now let’s have some italics</I>
</P>
</BODY>
</HTML>
♦ Now save your work e.g. – save it as your name in ‘C drive’, ‘My documents’. Name
the suffix of the document .html
♦ Double click on your .html file. The Explorer web browser should launch and you
should see your page. Remember that the rest of the world cannot view it yet, as
you have to mount it on a server.
Now we can add an image
♦ Go onto the web and copy an image (see below for instructions on how to do this)
Save it in the same place as your .html document. (e.g. C drive, ‘my documents’
folder)
♦ Hit the ‘Back’ button (a left pointing arrow) on the browser until you see your new
page again. Go to ‘View’ and ‘Source’ to reopen the Notepad version of your work.
After the </P> tag, and before the </BODY> tag add in
<P>
<IMG SRC=”type in the name of your image”></A>
</P>
NB replace the underlined text within the speech marks with the actual name
and suffix of the image you chose (e.g. mbchb.jpg).
♦ Chose ‘File’, and ‘Save’ to save these changes to your .html document.
♦ Now go back to your page on the Explorer Browser. If you cannot see the changes
(ie the picture you have just added) then hit the ‘Refresh’ button.
♦ Go back and reopen your document again, and add in the code for a hyperlink. This
is the bit that gives the World Wide Web its name – and after this your document isn’t
a flat page that could just as easily be a printed page - it’s a hypertext document.
♦ After the last </P> tag, and before the </BODY> tag type in
<P>
<A HREF=”URL of the page you want to link to”>click here</A>
</P>
NB replace the underlined text within the speech marks with the exact URL or
address of the page you wish to link to
E.g. http://medweb2.bham.ac.uk/mbchb/index.html.
Instead of the text ‘click here’, you can type any text that you wish to be the link
which is clicked on.
♦ Chose ‘File’, and ‘Save’ to save the changes to your .html document.
♦ Now go back to your page on the Explorer Browser. If you cannot see the changes
(i.e. the hyper-link you have just added) then hit the ‘Refresh’ button.
Please note that this is the first draft of this guide, and I welcome your feedback. Is this guide
written at the right level and does it include all the topics for you to be able to write HTML pages for
your undergraduate teaching activities? Please let me know: