|
The purpose of this exercise is to introduce the students to the computing systems of the Math and Computer Science department. The student will develop very basic skills required to use the Unix computers Math/CS lab such as logging in and changing passwords. These skills will be necessary to accomplish the more advanced tasks. Introduction to HTML for web design. |
|
|
Unix and Windows are two different operating systems which are run in the Math/CS lab. Each manages the computer's resources in a different way, and each requires the user to interact with the computer in a different way. It is a good idea to become familiar with both.
|
|
Part A:
Logging in and changing your password.
|
HTML is a structured markup language describing a document, for
which the building block is a tag. Tags mark the opening and closing
of a document fragment, and fragments can be nested. An opening tag
looks like <html>, and the corresponding closing
tag looks like </html>. Opening and closing tags
must be matched like parentheses.
A basic HTML document must have the following structure.
<html>
<head>
<!-- information about the document goes here -->
<title>This is the (optional) page title</title>
</head>
<body>
<!-- content of the document goes here -->
</body>
</html>
Notice that the page title is only displayed as window or tag title for the web browser, but it is not shown inside the page.
An opening tag could be annotated with attributes, the use of which
is different for each tag. An example tag with attributes looks like
<body bgcolor="black" text="white">
... </body>.
Some tags are not meant to enclose document fragments. These tags
are self-closed, and they look like <br/>.
This particular tag breaks the flow of text into a new line.
A listing of HTML tags by function can be found at http://www.w3schools.com/tags/ref_byfunc.asp. We expect you to find out everything you need about HTML tags from that website.
There are close to 90 HTML tags. In this lab we will use some tags from the Basic, Formatting, Images, Links and Lists categories. Please choose several tags from the list and look through the attributes. Here we provide an example of how to use the reference:
Look at the <p> tag which is used to enclose a
paragraph of text. Its reference page shows an "align" attribute, so
if we want to write a paragraph in which texts are aligned by the
center, simply write the following:
<p align="center"> This is my first time using an HTML tag </p>
Which will look like,
This is my first time using an HTML tag
For more HTML basics and tags, a more complete tutorial is available here.
Using the reference provided, let us write a simple HTML web page. The editor we are going to use to write HTML code is called Notepad++. The program is located at Start Menu.
The following instructions will guide you through the web page creation process:
lab09 either on your network drive or a flash drive.index.html. Save it under
lab09. html, head
and body) at the right place in the file.title tag, set the title to the title of
the poem.body tag. A list of color names can
be found here.<h1> tags, and put the title of the poem
inside the heading. The heading is then followed by a paragraph
that credits the author. Place the year of the poem if known.lab09, and then insert the images to
the document using the <img src="..."/> tag.
Notice that the img tag is self-closing.<p> and <br/> tags.<hr/> and include the phrase: Created by
yourname. This text should have a different font
color (use the font tag here).<h3> and call it
Image credits. Then, create an unordered list where
each list item indicates the website URL where you found an image
you used earlier, and then insert a link to the website. Use the
<ul> tag for the unordered list, and
<li> tag to markup list item. The ink is
inserted using the <a> hyperlink tag.csgateway.clarku.edu, use port 22, and make sure it's set to SFTP or SCP.
~/public_html/ folder.
http://www.cs.clarku.edu/~yourloginname/lab09/index.html
(remember to replace yourloginname with your CS
account user name) and verify that the page looks what you think
it does, and that all your links work.If you've made it this far and you still have time, follow the instructions on the slides to include one of your Java programs on a web page.