Ce 311 K - Mckinney Lab 1 - Introduction & Web Pages Setting Up A User Account at LRC
Ce 311 K - Mckinney Lab 1 - Introduction & Web Pages Setting Up A User Account at LRC
CE 311 K – McKinney
Lab 1 - Introduction & Web Pages
Introduction
http://www.utexas.edu
Most URL's start with the letters http:// (HyperText Transfer Protocol),
but other letters are sometimes used for file transfer (ftp://) or sending
email (mailto://). University Web site addresses end in the suffix ".edu".
There are other suffixes for other entities, e.g., ".org" for non-profit
organizations, ".com" for profit organizations (commercial entities), ".gov"
for government sites. The first part of a URL tells what site to look for the
document in, then the remainder of the URL tells the path to get to the
document on that site. For example, the main Web page for this course is
at the URL:
http://www.caee.utexas.edu/prof/mckinney/ce311k/ce311k.html
1
CE 311 K – McKinney - Lab 1
In order for you to share your web documents with other web users, you
need to create and upload your web documents to the Webspace web
server. Go to the WEBSPACE home page (webspace.utexas.edu) and
select Getting Started from the list of Topics to see the instructions.
Scroll down to the part about Accessing your Webspace account on this
page to learn how to login to your account (username = your UTEID,
password = your UTEID password).
Once you log into Webspace, your will see the following window (actually
this is for my login so yours will look a little different):
2
CE 311 K – McKinney - Lab 1
In order for your web documents to be seen by web users you need to
create a folder named "www" in your Webspace directory. To do this,
select the "New Folder" button at the top of the screen. Just click “Finish”.
3
CE 311 K – McKinney - Lab 1
You should change the selections under "Read" for "Authenticated Users"
and the "Public" to "Viewer (Read Only)". Now web users will be able to
read files that you upload to the "www" directory in your account. Click
“Finish”.
4
CE 311 K – McKinney - Lab 1
c. Copy the following HTML code and paste it into the notepad
document.
<HTML>
<HEAD><TITLE>My
Homepage</TITLE></HEAD>
<BODY>
<CENTER>
<H1>My
Name</H1>
<H2>My
Picture</H2>
<IMG
SRC=http://www.utexas.edu/depts/ut-‐images/basegifs/img0061.gif>
</CENTER>
<H2>My
Links</H2>
<UL>
<LI><A
HREF=http://www.utexas.edu>UT
Austin
Home</A></LI>
</UL>
This
page
was
created
by:
My
Name<BR>
Send
Comments
to:<A
HREF=mailto:your
email
account@mail.utexas.edu>My
email
account@mail.utexas.edu</A><BR>
</BODY>
</HTML>
d. Save your Web Page file as “index.html” (REMEMBER where you saved
it!!).
Log into your Webspace account. Navigate to the "www" directory that
you created earlier. Upload your index.html file into your "www" directory
by pressing the "upload" button at the top of the page and follow the
instructions. Once you transfer the file it should look like this.
Notice that the "index.html" file indicates that it is ready to be shared.
5
CE 311 K – McKinney - Lab 1
Web users can now access your file at the web address:
webspace.utexas.edu/yourUTEID/www.
6
CE 311 K – McKinney - Lab 1
Images
Images in Web pages are usually in one of two formats: GIF or JPEG
formats. Let's add a longhorn steer image to your page.
Images are indicated in HTML using the <IMG> tag, which requires no
closing tag. For the GIF file you just saved, use the following HTML tag:
<IMG SRC="tex-logo-small.gif">
Type, or copy, the following HTML code into your Web Page file.
<HTML>
<HEAD>
<TITLE>Simple example HTML page with an image</TITLE>
</HEAD>
<BODY>
<H1>This is a very simple HTML page but now it has an image!</H1>
<IMG SRC="tex-logo-small.gif">
</BODY>
</HTML>
Upload the new version of your Web Page file to your Webspace account
and see the result.
Images can serve as links in your pages. If you include an <IMG> tag
inside the opening and slosing parts of an anchor tag (<A>), that image
serves as a clickable hot spot for the link itself:
Try adding this line to your Web Page file, reupload and see the result.
7
CE 311 K – McKinney - Lab 1
A convenient way to add images to your web pages is to use the program
Microsoft Frontpage. Just select the menu "insert/picture/from file" and
select the image you want to insert. You can also use SeaMonkey
Composer or Microsoft Word to insert images into your Web pages.
Assignment
To be Sent Electronically
8