1. Getting Started
Okay. There are many ways of writing HTML... this is my way. It may not be the easiest, but it's not bad. I like it.
This is very important to understand: Everything inside of the brackets "< ... >" is called a tag. There are open tags: <blah> and close tags: </blah>. 99.9% of HTML needs to have open and close tags. Whatever is between the open and close tags, is being affected by the tags. The proper way to close the tags goes like this:
Here's another important idea to understand: HTML is CAP-SENSITIVE.
You should get used to either ALL UPPERCASE or all lowercase with tags
and sources. It will save lots of trouble in the long run.
Let's begin...
Hello. This is my first webpage.
</body>
</html>
If you were to view this in Netscape, it would only show the
TITLE at the top of the page, and the line "Hello. This is my first webpage."
would be in black text in the upper left corner of the page.
BACK TO MENU
2. Body Tags
Hello. This is my first webpage.
</body>
</html>
Please do not see what this looks like in Netscape, yet.
We still need to give the #'s some colors...so let's see how.
BACK TO MENU
3. HexColors
HTML uses a color system that uses 6 digits... hence HEX. The first two digits stand for RED. The second two digits stand for GREEN. The last two digits stand for BLUE.
The digits used are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. 0 is the
darkest digit, and F is the lightest digit.
So... 000000 is the darkest possible color, black.
And... FFFFFF is the lightest possible color, white.
Absolute Red is FF0000, Absolute Green is 00FF00, and Absolute Blue
is 0000FF
I'm not going to explain everything about the colors and the conversions,
I'll just give an idea and some examples. One way to figure stuff out is
to just try out different ideas. Here is a list of some colors and what
they look like.
| ffdab9 Peach Puff | 00bfff Sky Blue | 00ffff Cyan | 7cfc00 Lawn Green | ffff00 Yellow |
| daa520 Goldenrod | ffa500 Orange | ff1493 Deep Pink | da70d6 Orchid | aeeeee Pale Turquoise |
| 458b74 Aquamarine | ee7942 Sienna | cdba96 Wheat | ff83fa Light Orchid |
Now, let's fill in the #'s from the Body Tags example with hexcolor
digits nd see what happens...
<html>
<title>My Page</title>
<body text=red link=blue alink=00ffff vlink=00bfff bgcolor= 000000>
Hello. This is my first webpage.
</body>
</html>
So, if you see this in Netscape, the TITLE is still "My Page".
The TEXT ("Hello. This is my first webpage.") is now red. The pre-clicked
links (LINK) are blue. The clicked links (ALINK) are cyan, and the post-
clicked links (VLINK) are sky blue. [The only thing is that I haven't shown
you how to do HyperLinks yet, so you can't see the LINK, ALINK, and VLINK
changes yet... But trust me you're learning.] The background color (BGCOLOR)
is black.
BACK TO MENU
4. Text
Tags
|
The line above's HTML looks like this: <b><i><u>You can also
combine</u>, or</i> maybe</b> not.
Also...
The CENTER, LINEBREAK, PARAGRAPH, and BLOCKQUOTE tags are useful.
CENTER
<center>This text is centered.</center>
Here is the HTML for that LINEBREAK explanation:
If you use the BR [also known as LINEBREAK] tag it starts another line.
This sentence doesn't have the BR tag at the end. This one does. <br>
Now the text begins on the next line. You can also use it to add empty
lines on the webpage. <br><br><br>
PARAGRAPH. (This is the HTML for the following paragraph:)
<p>All of this text is a seen as a paragraph. What is neat about
this tag is that it adds a vertical line above and below the affected text.
All of this text is a seen as a paragraph. What is neat about this tag
is that it adds a vertical line above and below the affected text.</p>
All of this text is a seen as a paragraph. What is neat about this tag
is that it adds a vertical line above and below the affected text.All of
this text is a seen as a paragraph. What is neat about this tag is that
it adds a vertical line above and below the affected text.
BLOCKQUOTE.
Hello. This is a test. It is only a test. I forget the rest of the
message.
A blockquote is indented on both sides. A blockquote also has a vertical line above and below the the BLOCKQUOTE. A blockquote is indented on both sides. A blockquote also has a vertical line above and below the the BLOCKQUOTE. A blockquote is indented on both sides. A blockquote also has a vertical line above and below the the BLOCKQUOTE.Hello. This is a test. It is only a test. I forget the rest of the message.
The HTML for the above blockquote message goes like this:
Hello. This is a test. It is only a test. I forget the rest of the message.
<blockquote>A blockquote is indented on both sides. A blockquote
also has a vertical line above and below the the BLOCKQUOTE. A blockquote
is indented on both sides. A blockquote also has a vertical line above
and below the the BLOCKQUOTE. A blockquote is indented on both sides. A
blockquote also has a vertical line above and below the the BLOCKQUOTE.</blockquote>
Hello. This is a test. It is only a test. I forget the rest of the
message.
(Hint: LINEBREAK, CENTER, and PARAGRAPH BREAK can also be used with tables, lists, images, headlines, hyperlinks, and others... explore the opportunities.)
Next...
| HTML text has a few restrictions such as: |
|
|
This is a PREVIOUSLY FORMATTED TEXT looks like. It was made to show that when using the PRE TAG, more than 1 space can be recognized by HTML. Also, such things as tabs and "carrier returns" are being recognized... and it is easy to notice the change in typeface. One of the neat aspects of this tag is that you can try to use it to substitute such things as tables and columns.The SUB and SUP TAGS:
SUB: subscript
5. Headlines
Headlines are simple, and they work like this <H#>Whatever your
headline is</H#>, and you have six #'s to choose from 1-6, 6 being the
smallest and 1 is the largest.