CS114 Lab 1: CS Accounts, ftp and basic html
In the first lab we will practice using some basic applications, like
TextWrangler (text editor), Fetch (graphical secure file transfer client/program),
and Safari/Firefox (web
browsers). We will begin learning HTML (Hypertext Markup Language), a
language for structuring the content of web pages. We will also become
familiar with the process of uploading material to the CS server and
viewing our web pages in a browser.
HTML Elements and Tags
An HTML document is composed out of elements that begin and end
with tags.
For example:
<title> |
CS114 accounts, ftp and basic html |
</title> |
start tag |
contents |
end tag |
The following are some HTML tags that we will work with today:
- Structural tags:
- <html>
- <head>
- <title>
- <body>
- Header tags: <h1>,
<h2>, <h3>, ... , <h6>
- Text tags:
- <p>
- <br>
- <strong>
- <em>
- <q>
- List tags:
HTML document structure
Here is a simple html document.
<!doctype html>
<html>
<head>
<title>My Little Page</title>
</head>
<body>
<!-- this is a comment, I can write whatever I want here -->
<p>This is the text on my little page.</p>
</body>
</html>
Pay attention to the html elements, and how they are properly nested.
Tasks for today:
- Log into the Mac, which run Mac OS X
- Request a CS account. You will use this account through out this semester, and in the future, should you decide to take more CS courses.
To request your own account, please fill out our account request form.
- Using TextWrangler on a mac (or Notepad on a PC), create a simple web page in HTML.
Fell free to start with the simple page given
above. But in any case, keep it simple!
Note: Do not use Microsoft Word. Don't even cut and paste from Word. This can introduce
strange items into your HTML.
Save the file on your desktop under the name yournameLab1.html(for example, jeanLab1.html).
- View the web page locally in a browser.
Your browser's location bar should start with file:///Users/
- Upload the file to the CS server using Fetch
on Macs (or WinSCP on PCs).
- View the newly-uploaded page in a browser.
Your browser's location bar should start with http://cs.wellesley.edu/
- Modify your web page, in your text editor, by adding more text and tags, save it, and
view it locally in a browser.
- Upload the new version to the server, using Fetch (or WinSCP).
- View the web page in a browser.
- Repeat the process "modify-upload-view" several times.