|
|
|
|
|
|
|
|
|
|
|
DOME
II: Education: Hypermedia Authoring: HTML Bootcamp:
HA021
GOAL: Create Simple Document Oriented Pages for the World Wide Web

Select this code 01helloworlda, copy it, click the button to go to the forum and paste it into a reply as a progress report. While you are there ask any questions or report any problems you encountered.
Select this code
02helloworldb, copy it, click the button to go to the forum and paste it
into a reply as a progress report. While you are there ask any questions or
report any problems you encountered.
Select this code
03helloworldc, copy it, click the button to go to the forum and paste it
into a reply as a progress report. While you are there ask any questions or
report any problems you encountered.
Select
this code 04titlepagea, copy it, click the button to go to the forum and
paste it into a reply as a progress report. While you are there ask any
questions or report any problems you encountered.
Firstly, let's add our first
hyperlink to provide for connecting this Ttile Page with the next page; the Table of
Contents in this case; which we will namepdgt-table.htm for Pleasure Dome Grand Tour- Table of Contents. NOTE: the containing tag set
is<a
href=filename>visible link
text</a>,
where a is for anchor, and href
is for hypertext reference. <html> Secondly, let's start the location process by doing
a File/SaveAs...
for this Title Page with a filename of pdgt-title.htm; using whatever directory you are
working in now as its home. Later, of course, it will be uploaded to some
other directory on the web site. In this simplistic example it is assumed
that the files are in the same directory on the same Web Site. Actually a
complete path name or URL
could be used here to link
to a different directory or another Web Site. Now do
a File/Save then re-open
in your browser by double clicking.
Notice that our hyperlink has taken on some
attributes which are implicit to hyperlinks; namely that the visible text is
underlined and blue. Either or both of these
attributes can be suppressed.
In practice hyperlinks can be
discovered by the user, if not obvious, by moving the cursor over the text or
graphic, whereupon the usual arrow cursor will turn into a hand. anchor/hyperlink--- <a
href=URL/path/filename>visible text or image</a>
Before
we get too far along, the notion of a template
should be introduced. A template is a basic building block from which other
things can be built. Templates can take the form of web pages
or sections of web pages. They are kinda like bare Christmas trees upon which we
can then hang decorations of our choice to peculiarize them to our immediate needs.
The most fundamental of these is what I will refer
to as the page base. It is an htm file which you can create using NotePad within
which are the rudiments of all other web pages. You will recognize it's
elements from the hello world and title page files. <html> </body> We could actually save this
out as is with a name and reuse it over and over; but, it's really too
primitive. There are a few other elements to a web page which we have so
far ignored for the sake of simplicity and lack of relevance in this tutorial
context. So let's extend it to cover at least the context of educational
web pages for DOME II, our environment here.
<html> </body> The
Title is what will appear in the title bar of your browser whenever you are
viewing one of the pages with this file content. The Meta Names are placed
here such that outside search engine spiders/bots(ft)
can quickly collect keywords for their indexing files. These should be
specialized as the content of a page gets specialized. (ft)
While you are looking at this, change it to fit
the rest of this course... i.e. add the words HTML
Bootcamp to the Title. Do to do
this simply go up to the View menu, come down to
Source and click it. Now add those words in the text,
then do a Save As
...
only this time you want to save it as the basis for the Table of Contents
page... i.e. as pdgt-table.htm per lesson
06titlepagec . There
are many choices for how Web pages can be grouped and reviewed. The most
common is the book or document format where one moves forward to the next page
or backward to the previous page; and for which there is always the ability to
restart at the beginning; or, at some index or table of contents. This
movement is governed by hyperlinks, and the choices here vary; inclusive of pure
text links or graphic buttons
.
In this case study we will introduce the use of
images, or, graphic buttons to use as the basis for this navigation.
Here is the original template: at the bottom of the page(s), centered,
place image based hyperlinks: <html> <center> <br><br> notice the use of the exclamation
point in the two preceding lines... this effectively turns those < contained
lines into comments while keeping the information avaialble for use in the
future where previous and next will be useful... </body> The images used here for the buttons are from
the free resources in the Dome II Library. They are partially
transparent GIF files. You may capture them from here by using your right
mouse button and either Save As... or copy/paste. Now do a
File/Save; then
re-open in your browser by double clicking.
05 Title Page B
Select this code 05titlepageb, copy it, click the
button to go to the forum and paste it into a reply as a progress report. While
you are there ask any questions or report any problems you encountered.
<body
bgcolor=#ffffee>
<br><br><br><br>
<center>
<font
face=helvetica size=5 color=teal>
<b>A Guided Tour of the Pleasure
Dome</b><br>
<font size=3>
An Online Learning Community for
Writers<br>
</font>
</font>
</center>
<br>
<p
align=right>
<font face=times size=3 color=black>
Phoebe; Dome
Huntress<br>
June 10, 2004<br>
(C)2004 The Pleasure Dome
II
</font>
</p>
<br>
<center>
<p>
<font face=times size=3
color=black>
<a href="pdgt-table.htm">
<b>[N E X
T]<br>
<font size=2>Table of
Contents</font></b>
</a>
</font>
</p>
</center>
</body>
</html>
Select this code
06titlepagec , copy it, click the
button to go to the forum and paste it into a reply as a progress report. While
you are there ask any questions or report any problems you encountered.
Review of Tags
A (used so far...)
in alphabetical
order
bold--------------- <b>span of text to be
shown in bold</b>
body--------------
<body ~~~>all elements of the body of the
page</body>
~~~ can be body attributes, e.g. bgcolor=#ffaa77,
some hexadecimal
number
break
(line)-------- <br>
center (elements)--
<center>all elements to be centered
</center>
font--------------- <font
~~~>span of
text</font>
~~~can be text attributes
e.g. face= e.g.
helvetica, times, courier,
size= (1
- 7; small to large)
and color=name or hex number
html--------------- <html>all elements of a web
page </html>
paragraph---------
<p ~~~>all elements of a
paragraph</p>
~~~ can be paragraph
attributes,
e.g.
align=left, center, right, justify
Select this code
reviewtagsa, copy it,
click the button to go to the forum and paste it into a reply as a progress
report.
In response
to this posting you will be QUIZZED! ;-)
10 Basic Template Creation
<body
bgcolor=#ffffee>
where other stuff will appear...
</html>
<head>
<title>The
Pleasure DOME II: Education: ~~~~~
</title>
~~~~~~ can be specifc
course name
<META NAME="description" CONTENT="An online
learning community for writers.">
<META NAME="keywords"
CONTENT="writers forums, poetry, prose, multimedia, writers' free resources,
music, graphics, writing courses, writing contests, writing awards, writing
events, word art
events.">
</HEAD>
<body bgcolor=#ffffee>
where other stuff will appear...
type your name in here just as a marker
</html>
When you
register your web site with a search engine organization
it periodically sends out programs across the Internet called 'spiders'
or robots which scan through your web pages collecting significant text words
and phrases to use in locating your site when a user inquires using such words
or phrases.
Now do a File/Save
As ... and name
itdomeeduc.htm for use as the root
template for the rest of this course; then re-open in your browser by
double clicking.
Select this code
10basictemplate , copy it, click the button to go to the forum
and paste it into a reply as a progress report.
11 Navigaids for Basic Template
<head>
<title>The
Pleasure DOME II: Education: HTML
Bootcamp </title>
<META NAME="description" CONTENT="An
online learning community for writers.">
<META NAME="keywords"
CONTENT="writers forums, poetry, prose, multimedia, writers' free resources,
music, graphics, writing courses, writing contests, writing awards, writing
events, word art
events.">
</HEAD>
<body
bgcolor=#ffffee>
where other stuff will appear...
type
your name in here
just as a marker... OompaLoompa
<a
href="pdgt-title.htm"><img src="navhome.gif"></a>
<a
href="pdgt-table.htm"><img src="navtoc.gif"></a>
<!a
href="pdgt-.htm"><img src="navprevious.gif"></a>
<!a href="pdgt-.htm"><img
src= "navnext.gif"></a><
BR></center>
</html>
Select this
code 11navigaids, copy it, click the button to go to the
forum and paste it into a reply as a progress
report.
20 Table of Contents Creation
Re-displaypdgt-table.htm
by double clicking on it, then use the View menu to open up the
Source
code for
modification.
In this exercise we are not attempting to dictate the format of a table of contents page, we are simply using HTML to duplicate, or at least approximate, a format which was established by our author using MS Word.
In the interest of time (and in opposition to boredom) we will not attempt to do anything at this particular time more than a sample of the actual Table of Contents here. And to do this we will add only O N E new HTML tag. Later we will come back to this file and turn it into a true hyperlinked table of contents by adding hyperlinks to this page which point to the actual material which appears further on in the document.
This single new powerful tag is the <pre> tag; which stands for preformatted text. It is also the poet's best friend in that it allows whatever formatting you type into Notepad to appear exactly that way in the displayed web page.
<html>
<head>
<title>The Pleasure DOME II:
Education: HTML
Bootcamp</title>
<META NAME="description" CONTENT="An
online learning community for writers.">
<META NAME="keywords"
CONTENT="writers forums, poetry, prose, multimedia, writers' free resources,
music, graphics, writing courses, writing contests, writing awards, writing
events, word art
events.">
</HEAD>
<body
bgcolor=#ffffee>
<br>
<center>
<font face=times size=4
color=black>
Table of
Contents<br><br>
</center>
<pre> <font
face=times size=3 color=black>
<b>Section One</b>
<b>Forums</b>
home page site
map.
<b>Starting a
Discussion</b>
posting a new
thread
<b>Customising
Messages</b>
signatures
parsing links in text
smilies
attaching files
thread
subscription
polls
<b>Replying to Messages</b>
<b>Editing Messages</b>
<b>Navigating the Dome</b>
finding your way
around the forums
reading new posts
finding your way around the threads
sticky
messages
<b>Section Two</b>
<b>User Control
Panel </b>
This is divided into four
sections:
<b>1 Settings and Options</b>
edit
signature
edit email & password
edit profile -custom user
title,date of birth,
home page URL,
instant messaging,biography,
location,interests,
occupation
edit options -
invisible mode, vCard download,
receive email from
members and managers,
thread
subscriptions,
private message notification,thread display
options,
date and time settings, message
editor interfaces.
edit avatar
edit profile
picture
<b>2 Private Messages</b>
list messages
-storage space, delete private messages,
mark as read and
unread, move private messages
to another folder, download private messages,
send
new message
track message - read-receipts
edit folders - create custom folders
for your private messages,
<b>3 Subscribed
Threads</b>
list subscriptions -view all your
subscribed threads,
change your subscription settings
edit
folders - create, delete or rename folders
for your subscribed threads
<b>4
Miscellaneous</b>
event reminders - enter events onto the
calendar
paid subscriptions
group memberships
buddy / ignore
lists
attachments
</font>
</pre>
<center>
<br><br>
<a
href="pdgt-title.htm"><img src="navhome.gif"></a>
<a
href="pdgt-table.htm"><img src="navtoc.gif"></a>
<!a
href="pdgt-.htm"><img src="navprevious.gif"></a>
<a
href="pdgt-forums.htm"><img src=
"navnext.gif"></a><br></center>
</body>
</html>
Now do a File/Save... then re-open in your browser by double clicking.
NOTE: When you have fleshed out all of the pages of this document, you should return to the Table of Contents and turn each of the items listed into hyperlinks to the related page.
Select this code
20tableofcontents , copy it, click the button to go to the
forum and paste it into a reply as a progress
report.
30 Document Page Creation
Before getting into the coding of the individual pages (now 'web pages') of this document, let's talk about pagination in this new context of web pages. In this environment, while there is an obvious constraint on the horizontal size of a page, we are no longer constrained by the vertical length of the paper on which the document is printed. In fact, a document which is 20 paper pages in length could be built here in the web world as one continuous web page. However, for puposes of minimizing load times it is better to limit the length to something on the order of a a paper page. What is beneficial here though is that you no longer ever have to worry about chopping a page in the middle of a paragraph. The problems of 'orphans' and 'widows' is eliminated.
In this lesson, for our examples, we are using, again, the document at http://dome2.com/proto/help/Dome2ManualMasterDoc.doc
NOTE: this is a very large document... 2.7 Mb, so it will take a while to load.
Let's start by opening up our base file, domeeduc.htm, by double clicking it. Then, to ensure it's future, do a Save As ... pgdt-~~~~.htm (where ~~~~ is the particular page name) and begin to add the particular page's contents. Let's use the simplest form of naming and make this first page simply pgdt-01.htm . Then make changes to the base file as follows:
<html>
<head>
<title>The
Pleasure DOME II: Education: HTML Bootcamp </title>
<META
NAME="description" CONTENT="An online learning community for
writers.">
<META
NAME="keywords" CONTENT="writers forums, poetry, prose, multimedia,
writers' free resources, music, graphics, writing courses, writing contests, writing awards, writing events, word art
events.">
</head>
<body
bgcolor=#ffffee>
<font face=times
size=4 color=black>
<b>Guided Tour of
the Pleasure
Dome</b><br>
<br>
</center>
<font
size=3>
<b>Welcome to the Pleasure
Dome</b><br>
<br>
<p
align=justify>
Now you’ve stepped through the front door please
don’t be put off by the raucous laughter from the Public House or the screams
from the Dungeon, we’re a friendly community really. Join me on this guided tour
and all will be explained. No heckling at the back though – unless you’re funny
with it - and please put your chewing gum in the bins provided; it really clogs
up my
mouse.<br>
<br>
</font>
<a
name=sectionone>
<font size=4>
<b>Section
One</b><br>
<br>
<a
name=forums>
<b>Forums</b><br>
<br>
<font
size=3>
The Forums are the heart of the
community – the places where members meet and interact with each other - either
to socialise and debate in the General Forums, or to develop and share their
writing skills in the Writing Forums.
<br>
<br>
Follow me into
the Forum of your choice by clicking on the Forum name on the site map located
on the Home page. You enter each one via a gate, which describes the
characteristics of the Forum. The Dungeon, for example, warns that you ‘enter
and post at your own peril’, so only post work here if you’re prepared for a
strong critique and aren’t disturbed by ‘adult’ themes. The Conservatory is a
much gentler place and is ideal for beginning and intermediate
writers.<br>
<br>
</font>
<a name=starting>
<font size=4>
<b>Starting a
Discussion</b><br>
<br>
</font>
<font
size=3>
Now you’re inside the Forum you can
start chatting to your fellow members on the bulletin board.
<br>
<br>
<img src=forums.gif width=750><br><br>
You’ll notice that the main part of the page is a table, which
lists the ‘threads’ in the forum. A thread is an initial message followed by a
sequence of responses. Each thread is a separate conversation or
discussion.<br>
<br>
</font></font>
<center>
<a
href="pdgt-title.htm"><img src="navhome.gif"
border=0></a>
<a href="pdgt-table.htm"><img
src="navtoc.gif" border=0></a>
<a href="pdgt-table.htm"><img src="navprevious.gif"
border=0></a>
<a href="pdgt-02.htm"><img src="navnext.gif"
border=0></a>
</center>
</body>
</html>
Note the appearance of the width=750 parameter within the img tag. This is being done to ensure that the image stays within the boundary of the 800 x 600 resolution screen we are working with. The actual image is 800 pixels in width.
Now do a
Save to record this as
pgdt-01.htm.
Select this code
30documentpagecreation , copy it, click the button to go
to the forum and paste it into a reply as a progress
report.
Note the appearances of <a ~~~~ in red. These are anchor
names which can now be inserted in the table of contents page to point to these
places in pgdt-01.htm. These will be, respectively,
<a href=pgdt-01.htm#sectionone>subject
text</a>
<a
href=pgdt-01.htm#forums>subject text</a>
<a
href=pgdt-01.htm#starting>subject text</a>
Now, make these changes in your table of contents
page and test them to see if they indeed provide hyperlink jumps to the right
places in the first page.
Read the linked pages under Understanding Paths... in the Other References and Materials section.
Select this code
31tableofcontents , copy it, click the button to go
to the forum and paste it into a reply as a progress report; ALONG with a
sample image of some part of your first page.
40 Use of Tables in Document
Pages Without moving up to XML and CSS
(Cascading Style Sheets) Tables may be the most powerful facility available for
format control. In this basic course we will just scratch the surface of
the <table> <tr>
<td> tag set and a view of the parameters which can be
used with them. Using our sample document as the target, focus on the area
in Section 2 which starts with Settings and Options. As you can see in the print oriented document the author
is using a text after graphic option to display the GUI (Graphic User Interface)
menu on the left and the text on the right. In our Web Page version
we will chop this menu up and use it side by side with each
of the options explained on the right; repeating the section of the menu with specific option
highlighted. To make this clear, we will show you where we wind up first, then
show you how we got there. (BTW we only did enough
of an example to give you all the tags and formatting you will need to do the
whole thing.) Check it out...
(maximize it after it opens...) BTW (By The Way) in these examples think
about how much more powerful web pages can be in full color than printed
documents are in just black and white. <html> <table width=640 cellpadding=8 cellspacing=8
border=1> a brief note here that a nasty attribute of tables is
that font specs cannot be inherited across data cell boundaries and have to be
re-established with each... <tr>
<head>
<title>The Pleasure DOME II: Education:
HTML Bootcamp </title>
<META NAME="description" CONTENT="An online
learning community for writers.">
<META NAME="keywords"
CONTENT="writers forums, poetry, prose, multimedia, writers' free resources,
music, graphics, writing courses, writing contests, writing awards, writing
events, word art events.">
</HEAD>
<body
bgcolor=#ffffee>
<center>
While we are targeting an 800 x
600 display, centering will endure that it is neatly presented on larger
screens
Here is the root of our first table. We are setting the
width to 640 pixels because wide sections of text are more difficult to read...
that's why newspapers and magazines use columns. cellpadding is the number of
pixels you want to have inserted between the text/image and the table cell
border, and cellspacing is the number of pixels to be left between cells. We
have included a border here mostly so you can see the results of these
latter two parameters. Laterwe willget
intomuch fancierborders.
<tr>
Our first
table row... a note here on coding 'style'... while the browsers will accept
many tags per line and often drag and drop html generators aggregate long long
lines with multiple tags, this results in code which is difficult to read and
diffcult to edit and change... we choose to use a tag per line max unless
embedding is obvious...
<td
colspan=2>
Our first table data cell; and an unusual one in that
we are telling the browser that this cell will span two columns... because we
are using it as a header...
<center>
<font face = helvetica size=3
color=black>
<b>1. Settings and
Options
</b>
</center>
</td>
</tr>
<td>
<center>
<img
src=settings01.gif>
here is our chopped up menu with a
highlight... this presumes that you have some means of dealing with screen
captured images beyond just copying them... you need to be able to crop them and
to modify them as with the highlighting used here... you can actually use the
Paint Accessory which comes with Windows but you will soon want to graduate to
something more powerful like PSP.
</center>
</td>
<td>
<font
face = times size=2 color=black>
<b>Edit
Signature
</b><br>
<p align=justify>
Click on Edit
Signature to enter and format a piece of text that will automatically be
inserted at the end of all your messages. You can be just plain ‘Jane’ or
<font face=verdana
size=4>‘Jane CyberGoddess - fall down on your
knees and worship me.’ < STRONG>
</font><br><br>
You can also choose to use a
short quotation, which reflects your interests or personality. You can
disable your signature on any of your messages by un-ticking the 'Show
Signature' checkbox.
</font>
</td>
</tr>
<tr>
<td>
<center>
<img
src=settings02.gif>
</center>
</td>
<td>
<font
face = times size=2 color=black>
<b>Edit Email &
Password
</b><br>
<p align=justify>
Here you
can change your password and your email address. You will need your username and
password to log in. If you try to log in with the wrong username or
password a message box will open up - <a href=invalidpw.gif
target=_blank>Click to see sample.</a>
we chose to
externalize this into its own window since it was a bit large to jam into the
table... <
FONT color= #8000ff>
<br><br>
<p align=justify>
Click on
the link in the message and you will be asked to enter the email address in your
user profile. An email will be sent to that address instantly, with
instructions for resetting your
password.
</td>
</tr>
</table>
</center>
<center>
<a href="pdgt-title.htm"><img src="navhome.gif"
border=0></a>
<a href="pdgt-table.htm"><img
src="navtoc.gif" border=0></a>
<!a href="pdgt-.htm"><img
src="navprevious.gif" border=0></a>
<!a
href="pdgt-.htm"><img src="navnext.gif"
border=0></a>
</center>
</body>
</html>
Select this
code 40useoftables , copy it, click the button to go to
the forum and paste it into a reply as a progress report; ALONG with a
sample of an extended example of this table. Provide either an image or your
code for the extension.
50 Use of Lists
The final page of the target document we are using here looks as shown below:
The internet is a great source of information and a place where it is easy to meet people and make new friends. There is one big drawback with this. All you know of a person is what they choose to tell you online and you have no way of knowing if they are painting a true picture of themselves. The friend who says he is the same age as you could be an adult with nasty intentions. The good news, though, is that you can still have a good time online and also protect yourself, by following a few simple rules.
Never give out any information that could identify you. Your name, address and telephone number should never be given out online, but also avoid revealing the name and location of your school or other places you visit regularly. Never post a picture of yourself without your parent’s permission. It’s also a good idea to keep your main email address private – just for people you know and trust. You can easily set up a free email account for all your other online activities. There are many free email providers such as Hotmail and Yahoo!
Don’t arrange a personal meeting with an online friend unless you check with your parents or carer first. If you do arrange a meeting, make sure that it is in a public place and that you have an adult with you.
If a message makes
you feel uneasy in any way at all, print out a copy and show it to an adult.
You can also report any worrying messages to the managers of the Pleasure Dome
via the ‘report bad post’ button - . This is displayed on every message.
Never give out a credit card number online.
Having survived this far you have shown an ability to work with inadequate information and confusion so rather than 'doing it for you' we will just introduce you to the tags new tags you can use and let you go from there. (::smirklaffcrosseyes::).
There are three kinds of lists... Ordered, Unordered and Definition Lists, the latter of which we will cover after Bootcamp.
An ordered list starts with the <ol> tag and ends with its closure </ol>.
An unordered list starts with the <ul> tag and ends with its partner </ul>.
The beginnings of items in both kinds of lists is the list item tag <li>; which has a </li> partner, but it is seldom used.
The syntax as a whole is...
<ul>
<li>blah blah
one...
<li>blah blah
two....
<li>
</ul>
Now, put that all together with the sample and do the final page naming it in some way consistent with our other pages.
Select this
code 50useoflists , copy it, click the button to go to the
forum and paste it into a reply as a progress report; ALONG with a sample
of your new page..
| aliceblue | antiquewhite | aqua |
| aquamarine | azure | beige |
| bisque | black | blue |
| blueviolet | brown | burlywood |
| cadetblue | chartreuse | chocolate |
| coral | cornflowerblue | cornsilk |
| crimson | cyan | darkblue |
| darkcyan | darkgoldenrod | darkgray |
| darkgreen | darkkhaki | darkmagenta |
| darkolivegreen | darkorange | darkorchid |
| darkred | darksalmon | darkseagreen |
| darkslateblue | darkslategray | darkturquoise |
| darkviolet | deeppink | mediumturquoise |
| deepskyblue | dimgray | dodgerblue |
| firebrick | floralwhite | forestgreen |
| fuchsia | gainsboro | ghostwhite |
| gold | goldenrod | gray |
| green | greenyellow | honeydew |
| hotpink | indianred | indigo |
| ivory | khaki | lavender |
| lavenderblush | lawngreen | lemonchiffon |
| lightblue | lightcoral | lightcyan |
| lightgreen | lightgrey | lightpink |
| lightsalmon | lightseagreen | lightskyblue |
| lightslategray | lightsteelblue | lightyellow |
| lime | limegreen | linen |
| magenta | maroon | mediumblue |
| midnightblue | mintcream | mistyrose |
| moccasin | navajowhite | navy |
| oldlace | olive | olivedrab |
| orange | orangered | orchid |
| palegoldenrod | palegreen | paleturquoise |
| palevioletred | papayawhip | peachpuff |
| peru | pink | plum |
| powderblue | purple | red |
| rosybrown | royalblue | saddlebrown |
| salmon | sandybrown | seagreen |
| seashell | sienna | silver |
| skyblue | slateblue | slategray |
| snow | springgreen | steelblue |
| tan | teal | thistle |
| tomato | turquoise | violet |
| wheat | white | whitesmoke |
| yellow | yellowgreen | lightgoldenrodyellow |
| mediumaquamarine | mediumorchid | mediumpurple |
| mediumseagreen | mediumslateblue | mediumspringgreen |
| mediumvioletred |
|
|
|
|
|
|
|
|
|
|
|