That's it. Have fun!
HTML stands for Hypertext Markup Language. It consists of a set of codes which are inserted in a document to control the way the document is displayed by a "web browser" such as Netscape or Mosaic. Since you are viewing this document, you must be using a web browser. If it has a "view source" feature, you can see what this web page looks like with the codes showing. In Netscape, select VIEW, then SOURCE... If you are familiar with the hidden codes used by word processors such as WordPerfect, you will see that HTML codes are very similar. A document containing these codes is called an HTML document.
An HTML document must have the proper form, so that it will be recognized and interpreted properly by the browser software. The basic form is:
<HTML>
<HEAD>
<TITLE> type_Document_Title_here </TITLE>
</HEAD>
<BODY>
main_part_of_document_goes_here
</BODY>
</HTML>
You should notice two things here. Opening codes are enclosed in brackets (< >), and closing codes include a slash (</ >). For example, an HTML document is opened by <HTML> and closed by </HTML>. This is true of most (but not all) codes. The GeoCities Homepage Editor will create the basic document structure for you.
The best way to learn how to use HTML is to use it. Try out the tips on this home page. Each one will teach you a little more. If you want to go further, try the RESOURCES - HTML info links.
You can control the color of the background, text, and links in your homepage by using the HTML </BODY> tag. To control colors, the <BODY> tag is written like this :
<BODY bgcolor="#xxxxxx" text="#xxxxxx" link="#xxxxxx" vlink="#xxxxxx" link="#xxxxxx">
You may include any of the items (bgcolor, text, link, vlink or alink), or leave any of them out. To set the color of the background, text, link, visited link, or active link, substitute a color value for the xxxxxx in the sample above. Here are a few colors that you can use:
SUGGESTION: Start out by adding the tag
as the first item in the body text window. This will give you the color combination used on this page. Once you have that working, you can experiment with different colors by changing this tag.You can insert a horizontal line (horizontal rule) in your document by inserting a <HR> tag. The default line is a full width, thin, and shaded, like this:
Combining these enhancements, <HR ALIGN=LEFT WIDTH=50% SIZE=10 NOSHADE > will produce a thick black line at the left margin, half page width.
Note: The "fancy" lines used on many web pages are not produced by the <HR> tag. They are graphic images.
You can create bullet lists by using the <UL> (unordered list) tag. The format is:
<UL>
<LI> item one
<LI> item two
<LI> item three
</UL>
The list will look like this:
You can create numbered lists by using the <OL> (ordered list) tag. The format is:
<OL>
<LI> item one
<LI> item two
<LI> item three
</OL>
The list will look like this:
This is the same list, with the tags visible:
<dl >
<dt >Oranges
<dd >A reddish yellow tropical fruit about the size of an apple. A member of the citrus fruit
family. In the United States, oranges are grown primarily in the states of Florida and California.
<dt >Apples
<dd >Technically a pome, apples are an orange-sized fruit, usually in varying shades and
mixtures of red, yellow, and green. In the United States, apples are grown primarily in the northern states,
near bodies of water.
</dl >
Web browsers recognize six levels of headers.
<H1>Level one header </H1>
<H2>Level two header </H2>
<H3>Level three header </H3>
<H4>Level four header </H4>
<H5>Level five header </H5>
<H6>Level six header </H6>
will look like this:
This line:
<CENTER> This is a test </CENTER>
will appear like this:
If more than one line of text is enclosed in the <CENTER> tags, all enclosed lines will be centered.
You can cause text to be bolded or italicised by enclosing it in tags for those attributes.
<B>Bold text </B>
will appear as:
Bold text
<I>Italic text </I>
will appear as:
Italic text
<B> <I>Bold and italic text </I> </B>
will appear as:
Bold and italic text
Web browsers do not respect the way you have formatted your text. They ignore carriage returns and line feeds. Unless given specific instruction, your text will be fitted to the line length of the browser.
Inserting a <BR> tag will cause the current line to end and a new one to start. Inserting a <P> tag will cause the current line to end, a blank line to be inserted, and a new line to start.
There are times when it is nice to have your text appear just the way you have typed it. You can do this by placing a <PRE> tag at the beginning of the passage, and a </PRE> tag at the end. Your text will appear in a fixed-pitch (typewriter) font and retain any tabs, line feeds, multiple spaces, etc. that you may have included. For example:
There was a young man from Boston who bought himself a new Austin. He had room for his lass and a gallon of gas but his tie hung out and he lost 'em.
The code <BLINK> I am blinking!</BLINK> appears like this:
Be careful not to overdo it with this one!
<A NAME="target_name_here">target_text</A>
<A HREF="#target_name_here">hotlink_text</A>
The hotlink_text will appear underlined and in the "link" color. When the user clicks the hotlink, the web browser will jump to the target_text. <A HREF="#index">Go to index.</A> is a good example of a hotlink. Use the VIEW, SOURCE feature of your browser to see the HTML tags surrounding the hotlink and the target text at the top of the index.
<A HREF="relative_path_and_filename">hotlink_text </A>
If the file being called is in the same directory as the calling file, it is only necessary to specify the filename. If the file being called is in a different directory, give the "relative path and filename". For example, if the calling file is in a directory called "schmoo" and the called file is named "chick.gif" and is in "schmoo/graphics", the tag would be written HREF="graphics/chick.gif". If the calling file were in "schmoo/graphics" and the called file were in "schmoo", the tag would be written HREF="../chick.gif".
I have placed a file called "chick.gif" in the same directory as the file you are currently reading. This file can be opened with the following hotlink:
<A HREF="chick.gif">Open chick.gif </A>
Try out this hotlink (below), then use the "back" key on your browser to return to this document.
will take you to a page called "The Pullet Surprize" located at http://www/geocities.com/Paris/2426/. You will find a link on that page to return you here, or use the "back" button on your browser. Try it!
<IMG SRC="right.gif">
This tag will cause a graphic file named "right.gif", which is in the same directory as the file you are reading (index.html) to be displayed in the position that it would appear if it were text, like this:
You can control the position of the image. The most basic way to do this is to treat it as text. For example, surrounding the image tag with center tags gives this:
You can also combine the image tag with other elements of your document. For instance, the following combination:
<IMG SRC="right.gif"><A HREF="#index">Go to index.</A>
gives this display:
There is much more to be said about graphic images, since they are a key element in really good pages, and can also detract from your page by making it very "slow". Stay tuned.
Please note that the image below is clickable.
If you get deeper into HTML, you may want to use an editor on your own computer and transfer the files to GeoCities (or wherever) by FTP. The advantage of a local editor over the GeoCities HTML Editor is that a good editor will insert many common tags automatically. The advantage of the GeoCities HTML editor over a local editor is that you do not have to send files by FTP. I use a nice, straightforward editor called HTMLWriter. I like it best of the ones I have tried. The price is hard to beat, too. It's free. The editor Iike LEAST is Hotdog.
If you are FTP'ing the file to GeoCities, you will also need the ability to upload the file with a long (unix-style) file name. I use ws_ftp for this. Be sure to go to GeoCities Help Page page for the specifics on how to FTP to them. You can also download ws_ftp there.
The programs mentioned above are for the PC. Mac users click here.
visitors since January 1, 1996.
Return to GeoCities Athens