mkdir public_html
After this, change your directory to this new directory called "public_html".
cd public_html
If you want to, you can make other directories, one for all the web pages that you make, and one for all of the graphics that you have. Follow the same steps as above to do this.
Next, you need to think of a filename for your page (this is not a title, but the name of the URL). A common filename for a main web page, is "index". Once you've decided on this, add ".html" to the end of it. You can then edit it using a Unix editor like pico
pico index.html
Of course, use your page's filename, instead of this one. Once you've gotten started, exit your page. You can do this by pressing control-x. Then you need to type:
chmod index.html
Use the filename of your page with this comand. You only
need to do this the very first time that you leave your web page. This command
will make sure that nobody else can delete your page. You will need to do this
to any other pages you add in the future. Then, look at your page on the WWW.
Lets say that your server is "cs.wpi.com" , your username is "rahulb", and the name of your page is "index.html". The URL would normally be:
http://cs.wpi.com/~rahulb/Content.html
However, you will need to contact your ISP for your URL.
If you have made separate directories for pages and graphics, then you need to include that in the URL also. Lets say that you made a directory for all of your web pages, called "Pages". The new URL would be: https://rahulbhattacharya.tripod.com/Pages/index.html
<title>John Doe's Web Page</title>
In HTML, every command is surrounded by <'s, and >'s. And in most commands, you need to tell the web browser when to end this command. You do this by putting a back slash (/) in front of the ending command, as in above. Since HTML isn't case sensitive, <title> is the same as <TITLE>, which is the same as <TiTLe>. Next, you need to decide what you want to put on your page. Text, links, graphics, and text fields, are just a few ideas. Follow the table of contents above to decide how, and what to put on your page.
<h1>Hello</h1>
<h2>Hello</h2>
<h3>Hello</h3>
etc.
<P>This is a web page. How do you like what
I've done? Please e-mail me with any suggestions at
a@a.com</P>
The outcome is:
This is a web page. How do you like what I've done? Please e-mail me with any suggestions at a@a.com
<UL>
<LI> red
<LI> orange
<LI> green
<LI> blue
<LI> purple
<LI> black
<LI> brown
</UL>
The result is:
To make a numbered list of: red, orange, green, blue, purple, black, and brown, type:
<OL>
<LI> red
<LI> orange
<LI> green
<LI> blue
<LI> purple
<LI> black
<LI> brown
</OL>
The result looks like:
Hello,<BR>how<BR>are<BR>you?
The outcome is:
<HR SIZE=1 WIDTH=100%>
strikeout, superscript, subscript, teletype, and text are examples. To do these styles, surround your text with the following commands:
<b>, </b> for bold
<i>, </i> for italic
<u>, </u> for underlined
<strike>, <strike> for strikeout
<sup>, </sup> for superscript
<sub>, </sub> for subscript
<tt>, </tt> for teletype
<blink>, </blink> for text ( annoying)
You can also mix styles together like this!
https://rahulbhattacharya.tripod.com/Content.html
To do this, you would type:
<A HREF="https://rahulbhattacharya.tripod.com/Content.html">The linkable text goes here</A>
The result would be:
1) To make the actual link, think of a name for the certain spot. Let's say you are going to call it "spot". If this certain spot is on the same page that the link is, you would type:
<A HREF="#spot">Colored Text
Otherwise, you would add "#spot" to the end of the URL.
2) Now, you need to make where the link will take you. Go to the spot where you want the link to take you, and type:
<A
HREF="mailto:a@a.com">Rahul</a>
Here is the result of typing this (click on it to send me e-mail).
To display a graphic on some one else's page, you need to find the URL. To do this, I recommend that you have Netscape Navigator. Right click or click and hold down on the graphic, until a menu comes up. Choose "View this Image". Then , copy the URL that appears at the top of the screen, in the "location" box. Let's say that the URL was: https://rahulbhattacharya.tripod.com/ball.gif You would type:
<IMG SRC="https://rahulbhattacharya.tripod.com/ball.gif">
The result is:
To display a graphic that is in your account, all you have to do is type in the filename. If you didn't make separate directories for graphics and pages, then you just need to type the graphic's name.(i.e. <IMG SRC="ball.gif">
<IMG SRC="ball.gif" ALT="How to make a web page">
In this example, "ball.gif" is an animation of a spinning ball. With graphics-capable viewers that have image-loading turned on, you see the graphic. With a non-graphic browser or if image-loading is turned off, the words "How to make a web page" is shown in your window. You should try to include alternate text for each image you use in your document, as it is a courtesy for your readers.
You can also string two or more of these commands together:
<body bgcolor="#000015" text="#000020" link="#000050" vlink="#7a7777" alink="#8f8e8d">
You can also have a text link next to the graphic that leads to the same place.
Here is what you would type in for, first the plain graphic-link, and second, the graphic-link with text:
<A href="http://www.yahoo.com"><IMG SRC="http://us.i1.yimg.com/us.yimg.com/i/yahoo.gif"></A>
<A href="http://www.yahoo.com"><IMG SRC="http://us.i1.yimg.com/us.yimg.com/i/yahoo.gif">Yahoo!</A>
A detailed introduction to scripting languages is beyond the scope of this
webpage, but you can refer to the links at the bottom of this page to learn how
to manipulate user input.
Form Method/Action
<FORM METHOD="POST" ACTION="https://rahulbhattacharya.tripod.com/TripodMail.pm"> Here is what it will look like:
<INPUT TYPE="input"
NAME="recipient" value="a@a.com">TO:<P>
Next, you need to decide what questions you want to ask, and what you will use to ask them. Before you start, you might want to check with your server to see if they have any questions that you MUST ask. You can use single or multiple text fields, larger fields, checkboxes, radio buttons, pull-down lists and scroll-down lists.
<INPUT TYPE="input" NAME="from">Your Email Address<P>
<INPUT TYPE="input" NAME="firstname">Your First Name<P>< /FONT>
<INPUT TYPE="input" NAME="lastname">Your Last Name<P>
<INPUT TYPE="input" NAME="subject">Subject<P>< /FONT>
Here is the result:
Your Email Address
Your First Name
Your Last Name
Subject
Please place any questions or comments here:
<TEXTAREA Rows=7 Cols=45 NAME="suggestions"></TEXTAREA><P>
Here is what the result looks like:
Please place any questions or comments here:
What are some things that you like to do?
<INPUT TYPE="checkbox" NAME="like" VALUE="TV">Watch TV<P>
<INPUT TYPE="checkbox" NAME="like" VALUE="internet">Play on the Internet<P>
<INPUT TYPE="checkbox" NAME="like" VALUE="read">Read a book<P>
<INPUT TYPE="checkbox" NAME="like" VALUE="sports">Play sports<P>
<INPUT TYPE="checkbox" NAME="like" VALUE="study">Study<P>
The result:
What are some things that you like to do?
Watch TV
Play on the Internet
Read a book
Play sports
Study
What WWW browser are you using right now?
<INPUT TYPE="radio" NAME="browser" VALUE="Navigator 4.x">Netscape Navigator 4.x<P>
<INPUT TYPE="radio" NAME="browser" VALUE="Navigator 3.x">Netscape Navigator 3.x<P>
<INPUT TYPE="radio" NAME="browser" VALUE="Communicator">Netscape Communicator<P>
<INPUT TYPE="radio" NAME="browser" VALUE="Mosaic">Mosaic<P>
<INPUT TYPE="radio" NAME="browser" VALUE="Internetex">Internet Explorer<P>
The Result:
What WWW browser are you using right now?
Netscape Navigator 4.x
Netscape
Navigator 3.x
Netscape
Communicator
Mosaic
Internet
Explorer
What is your favorite color?
<SELECT NAME="color">
<OPTION>Red
<OPTION>Yellow
<OPTION>Orange
<OPTION>Green
<OPTION>Blue
<OPTION>Purple
<OPTION SELECTED>Black
<OPTION>Brown
</SELECT><P>
The outcome is:
What is your favorite color?
What is your favorite video game system?
<SELECT NAME="video game" SIZE=3>
<OPTION VALUE="nintendo64">Nintendo 64
<OPTION VALUE="playstation">Sony Playstation
<OPTION VALUE="dreamcast">Sega Dreamcast
<OPTION VALUE="arcade">Arcade Games
</SELECT><P>
The outcome is:
What is your favorite video game system?
The second outcome is:
What is your favorite video game system? (Hold shift to select more that one)
To reset the all of the forms, press this button:<INPUT TYPE="reset" VALUE="Reset">
The outcome is: (try it!)
To reset the all of the forms, press this button:
To submit your choices, press this button:<INPUT TYPE="submit" VALUE="Submit">
To submit your choices, press this button:
At the very end of your form, you must type </FORM> or your forms won't work!!
Links:
Here are some really useful links to help you create a more powerful webpage.
Java Scripts
More on Java Scripts
Web Development