|
 Topics:  >Using the Net  >Safety on the Net  >Searching the Net  >Using E-Mail  >The History of the Net  >The Future of the Net  >Before you go on...
 >Creating a Web Page  >Glossary of Terms  >Feedback  >Hava a Question?  >Return to Title Page                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
|
Sections:
An Introduction to HTML and tags
A simple, no-frills at all web page
An extensive list of tags for your page (Special Tags,Text Formatting and Styling, Lists, Tables, Links/Anchors, and Forms)
Tips for a successful page
Uploading your page to the web
Frequently Asked Questions about Creating a Web Page
Web pages are written in a computer language called HTML. HTML stands for Hypertext Markup Language. HTML is actually very simple to learn, but you first need to understand this: web pages are really just plain text files, which the web browser uses to create the page you see. It's like using a blueprint to build a house. The blueprint is the HTML file, the carpenter is the web browser, and the house is the web page that you see. To see the HTML code of this page, click on the View menu of your browser and select Source. The commands you use in HTML are called tags. All tags are contained in the < and > symbols, so that the browser knows that the text bewteen them is a command, and not text to be displayed. A very simple tag in HTML is the underline tag. Here is what the code looks like that would underline some text:
<u>This text will be underlined</u>
Now here is that code interpreted by the web browser:
This text will be underlined
Notice that the underline tag is the letter U. This is a nice feature of HTML; all tags stand for what they do. For example, to make text italic, you use the <i> tag. Pretty nice, huh?
Notice that at the end of the example code above that at the end of the fist sentence there is a "/" in the tag. This tells the browser to end the underlining. When you see or use a "/" in HTML, think of the word "end."
NOTE: HTML ignores whitespace, carriage returns ("enters"), tabs, and spaces when not in text. Special tags and codes are used to create line breaks, tabs, and spaces. You will see these tags and codes in the tag table later on.
You be now be wondering how we got the < and > symbols to appear on this page (normally, the web browser recognizes them as part of a tag, and does not display them). To get special characters that the web browser normally does not display on the screen, you need to use a the special code for that particular symbol. We'll explain this later.
All web pages require certain tags in order to appear properly. Here is what you'll need to get started on your first page:
<HTML>
<HEAD>
<TITLE> The title of your page goes here </TITLE>
</HEAD>
<BODY>
This is where you would put all your text, images, and everything else that will show up on the page
</BODY>
</HTML>
Now, here is what all that means:
<HTML> tells your web browser that this file is a web page, and to process the commands in it.
<HEAD> signifies the beginning of the heading, where the title, and other tags go, that won't appear on the body of your page.
<TITLE> signifies the beginning of the title of the web page. The title of the page will appear in the title bar of the viewer's browser, not on the page itself.
</TITLE> signifies the end of the title.
</HEAD> signifies the end of the heading.
<BODY> signifies the beginning of the body of the web page. This is where you put your text, images, links, and most other things, whatever they may be.
</BODY> signifies the end of the body. We have found that this tag can be left off, but it may be needed in some way, depending on your page.
</HTML> signifies the end of the web page. Also not necesarily needed, but put it just to be safe.
That's it! Just copy those tags into any text editor you have, save it as an *.htm or *.html file, and open it in your web browser. However, with what we've just shown you, you'll get the world's most boring web page ever. Go on to the next section for an extensive list of tags.
Before we get to the tags, there are a few things you should know about using tags:
Code and Tele-Type are almost the same. These tags will be grouped together below.
All of these tags will require an end tag unless noted.
Table Tags:
First, here's what a link looks like: <a href="nextpage.html">Click here to go to the next page...</a>. The "nextpage.html" part means that this link will go to nextpage.html. The Click here to go to the next page... is the text that will show up on the page, a different color and underlined (usually). Try to make this text somewhat descriptive of where the link goes.
There are two kinds of links (this isn't really very important, so don't worry if you don't get it):
To specify a point to jump to:
To make a link go to that point:
TIP: You can use a link to jump to a new file AND a anchor on that file with one link. Simply use the filename and anchor name combined in the address part of the link code. For example, <a href="nextpage.html#any_name">Click here to go the next page AND to go to a point on that page!</a> will go to the anchor any_name on nextpage.html.
NOTE: A form is a set of fields that the user enters data into, not each individual field. You can have as many fields as you want in a form. Here are the tags:
The tags below will only create the actual field. To put instructions next to the field, simply type next to the tag. For example:
To create this: Check here if you're new to the Net:
A web page is no good if no one wants to see it. But how do you know how to make your page worth visiting? Here's how:
Uploading your web page is really a very simple task, you just need some information first. The specifics of uploading depend on your ISP. Here we'll explain the general process, and what you'll need to know for those if you using a local ISP. If you're using America Online, Compuserve, The Microsoft Network, or a similar service, uploading will be very different from what we explain here. If you are using one of these services, check with them on how to upload your web page.
Here's what you'll need to do to get your page up and running:
 
 
 
Special Tags:
These tags are special mainly because they don't fit into any of our other tag categories.
Text formatting and styling:
These tags are the easiest to use. Simply put the start tag (shown) and the end tag (as shown, with a "/" after the "<", i.e. "</u>" around the text you want to apply that style to.
Code or variable style.
This is what blockquote does. No indent or line break tags were used here, just <blockquote>.
strikethrough style.
This text is preformatted. Notice how you can use tabs and lots of spaces.
You
can
also
include
as
many
lines tags.
as any
you using
want, without
Lists:
List tags are a way to, well, make lists. These are also very easy to use. You can make ordered (numbered) lists, unordered (not numbered) lists, and a few more. Here's an example of ordered and unordered lists:
List tags:
List code example:
To make this list:
Use this code: (This can be all on one line, it is formatted for clarity)
<ol>
<li>Item 1
<li>Item 2
    <ul>
    <li>Add a nested list:
    <li>Item 1
    <li>Item 2
    <li>Item 3
    </ul>
<li>Item 3
</ol>
List style examples:
Tables:
Tables are another way to put data on your page. Here's a typical table you will find/use on web pages:
Here's a cell. Here's another
...and another and one more!
Here's a cell Here's another
...and another... and another.
Yup! You guessed it... Another cell!!!
BORDER=1 BORDER=5
CELLSPACING=0 CELLSPACING=0 CELLSPACING=5 CELLSPACING=5
CELLPADDING=0 CELLPADDING=5
BGCOLOR="#FF0000"
BGCOLOR="#0000FF"
bgcolor="#FF0000" bgcolor="#0000FF"
bgcolor="#FFFF00" bgcolor="#00FFFF" This cell is ROWSPAN=2. This is a regular cell.
So is this one.
This is a regular cell. This cell is ROWSPAN=3 This is a regular cell.
So is this one and this one...
and this one... and this one. This cell is COLSPAN=2.
This is a regular cell. So is this one.
This is a regular cell. So is this one and this one.
This cell is COLSPAN=3
This is also a regular cell... and this one... and this one!
-At the end of the last cell of a row, like the way you would use the break (<br>) tag.
-Or with <tr> at the beginning of a row, and </tr> at the end.
Links/Anchors:
Links are what makes the web so special. To go to a page, all you have to do is click on the link and you're there. But how do you make them? Here's how:Using anchors
Anchors are a way of making links jump to a certain point on the same page, or a certain point on a different page. They're really easy to add.
To specify a point on your page for a link to jump to, simply add <a name="any name"> where you want the link to go to (replace any name with whatever you want).
To make a link go to a point specified, use the follwoing code: <a href="#any name">Click here to go to any name!</a>. It's the regular link code, only that the address is a point on the page. Make sure you include the "#" before the name of the anchor, but not on the anchor itself! Forms
Forms are the most popular method used to get information from the user. Adding forms to your page is as simple as using tags, but handling the data the user enters is not so easy. See CGI & SSI's for how to handle the information sent.
Use this code: Check here if you're new to the Net:<INPUT TYPE=CHECKBOX>
Has attributes:
Tips for a successful page:
Uploading your page to the web:
Frequently Asked Questions about Creating a Web Page
 
This is a common problem for first-time HTMLers. If you access your
site without specifying a file (i.e. http://www.yourisp.net/yourname) the
server will look for a file called index.html or index.htm.
If it doesn't find one, it will either display an error message or show
you all the files in that directory you specified. So, to solve the problem:
either name your web page index.html (or index.htm) or you
can add the file name to the address of your page when you try to access
it, i.e. http://www.yourisp.net/yourname/mywebpage.html.