http://www.cs.montana.edu/~username
There are many ways to make a web page. The easiest way
is to use an HTML editor. The advanced editions of Netscape, and Internet
Explorer all allow you to make an html document. That
is all a basic web page is, and HTML document (HyperText Markup Language).
When you make a Web page in a HTML editor you don't have to type in the
tags, the editor does it for you behind the scenes. The tags are talked
about below.
HTML documents have two parts when viewed in a text
editor like notepad: (and if you use the tags below you can create
the whole Web page in notepad, the only difference is you have to
type in the tags below yourself.) You should now see a document that has tags which are
text in brackets <>,
and just text.
The following explains HTML and some of the tags
associated with creating your own HTML. Below that is an explanation on
how to take a picture from the Internet and insert it into your Web page,
and beyond that is an explanation on FTP and how to host your Web page on
TREX2. Here are the other main tags:
<html> </html> This
starts the html page and the closing bracket is at the end
C0LORS are defined with three variables RGB, as you notice
above when I define a color I use 6 digits. The first two are the RED variable,
the next two are the GREEN amount and the last two are the BLUE amount.
You can make any color you want by changing these variables.
Other very useful tags
<p>
&nbs p; Makes a new paragraph
HYPERTEXT LINKS
To make your text a hypertext link use the following:
The tag to display a picture is
<img src="picture.gif">
Most web browsers use pictures with the extensions .jpeg,
.jpg, or .gif. So if you are trying to display a scanned in picture, make
sure you scan it in as a .jpg or .jpeg. The other, .gif is usually drawings
or animations.
To take a picture from someone else on the web, this is
how you do it:
MSU WEB PAGES
If you have an account with TREX2 this is how to display
your web page to the world so you can wow your friends and family.
In CS 160 you will have to type the tags yourself, create the Web
page on your own without a HTML editor.
When you create a Web page in an HTML Editor, you
don't have to type in the tags, the editor creates them for you behind the
scenes. If you use a text editor like Notepad, then you have to type the
text and the tags yourself. I prefer the second way (text editor) so I can
control every aspect of the Web page. Using a Web editor is the easiest
way. You can do either way for this assignment.
To take a look at what HTML code looks like go to the Pulldown
menu VIEW above and then according to which browser your using select PAGE
SOURCE in Netscape or just SOURCE in Internet Explorer. (If your using
some other browser...experiment I guess).
Any text you see inside < > are considered tags.
Tags are instructions to the browser how to display the text. Here is an
example how to center text:
As you see the when your done centering the text you use
the same tag but with
a / inside the brackets to end the instruction <center></center>.
<title> </title>
Defines the title of the page
<body> </body> This
is where the main part of the page is defined.
In the body tag you can also describe the background
<body bgcolor="ffffff">
You can define the font color the same way:
<font color="000000">
</font>
And font size
<font size=+2 color="112233"> </font>
Other ways of defining font size are by declaring the text
a heading, there are six different headings
<h1> text </h1>
<h2> text </h2>
......
......down to
<h6> text </h6>
The amounts are 0 - F or 16 levels. It's a Hexdecimal
representation of numbers.
So the following:
<color = "ffff00">
would mean RED = 1616 GREEN = 1616 and BLUE would be
at 00.
Full red, full green and no blue makes YELLOW.
There are several tables out on the internet that tell
you what do use to make certain colors.
<b> text </b>
Bold
<u> text </u>
Underline
<i> text </i>
Italized
<br>
&n bsp; start a new line
The <br> doesn't need a closing </br> and it's
also the most used tag.
<a href="http://webpage"> link
</a>
Hint: if the webpage your trying to link is in your same
folder you don't have to put the whole http://webpage stuff you
can just link it like this
<a href="page.html"> link
</a>
PRETTY PICTURES
These are the main tags to making a web page.