and tells
the browser how to do it.
Second point is about defaults. As you probably know, the default value is a value that the browser assumes if you have not told it
otherwise. A good example is the font size. The default font size is 3 (usually). If you say nothing it will be 3. If you make faces at
your computer it will still be 3.
Every browser has a default font setting - font name, size and color. Unless you have messed with it the default is probably Times
New Roman 12pt (which translates into 3 for our purposes) and it's black. Of course we can specify font names other than the
defaults. Like ARIAL and COMIC SANS.
The font you specify will only be displayed if the viewer has it installed on their computer. If the font isn't installed, the browser
reverts to the default. So, try not to put rare fonts on your page. Safe fonts:
Andale Mono Arial Arial Black
Comic Sans MS Courier New Georgia Impact
Times Rew Roman Trebuchet MS Verdana
Now I guess is a good time to yap a bit about syntax. You notice here and there I use quotation marks, these are important.
Whenever you have an attribute="value", the value should really be in quotes. It's a good habit to get into. I learned HTML as my
first language just to develop good habits.
Alright, back to the fun stuff...
Changing font color...
Changing the font
You can use more than one attribute in a tag...
More changing the font
Pick up milk
P>I feel the need to point out once again that multiple tags should be nested.
Hooha!
It doesn't matter which tag is first. It's not like if you want to make something red and bold you have to do one or the other first.
You can do them in any order you want. Such as...
Hooha!
The fastest way to confuse the browser, not to mention yourself is to overlap the tags...
Hooha!
(I couldn't think of a way to explain it so I hope the use of examples makes it clear.)
How about headings.....
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Here
is
a
really
small
heading
You may want to align your heading...
Left align yer heading
Center yer heading
Right align yer heading
Left align yer heading
Center align yer heading
Right align yer heading
Now, to start a new line(line break tags)
Start
a
new
line If you don't do this, your browser just makes everything go in a
line, like this... Start a new line
To avoid this use the line break tags, OK? OK.
Can
I
Skip
a line?
Paragraph tags....
Hey dude!
What?
This makes paragraphs. See?
You can align paragraphs too...
Paragraph1.
Another paragraph.
Yet another paragraph.
When using the paragraph tag, you don't need an ending tag.
When it comes to spaces, your text editor compresses all spaces into 1 space. So use this
for heaps of spaces...
Here are more special characters.(Always lowercase)
non-breaking space
< < less-than symbol
> > greater-than symbol
& & ampersand
" " quotation mark
soft hyphen
More (mostly useless) special characters.
But you wanna center your work, you say? Ok then here...
I wanna center my stuff
Maybe you wanna make a list....
Milk
Bread
Butter
Purty cool, huh? You want an ordered list, you say? Ok then, here.
- More milk
- More bread
- But no butter
1.More milk
2.More bread
3.But no butter
Still want more lists? How about a defenition list.
- Aardvark
- A burrowing, ant-eating African mammal. And, as everyone knows, the first word in every
self-respecting dictionary. Did you know there's such a thing as an aardwolf?
Aardvark
A burrowing, ant-eating African mammal. And, as everyone knows,the first word in every
self-respecting dictionary. Did you know there's such a thing as an aardwolf?
Write a whole lot of stuff in here.
Write a whole lot of stuff in here.
Ever wondered how people do this...
///\\___
(@ @)
+----oOO----(_)-----------+
| Thanks again |
| Joe |
| Barta |
+-----------------oOO-----+
|__|__|
|| ||
ooO Ooo
Normally It would look like this ///\\___ (@ @) +----oOO----(_)-----------+ | Thanks again | |
Joe | | Barta | +-----------------oOO-----+ |__|__| || || ooO Ooo But here is how you stop
that.
Thses are called the preformatted tab.
What ever
you
do in between these
will stay that way.
Although, for some reason, my notepad seems to sometimes preformat stuff, and sometimes not
preformat stuff. Wierd....
Here is a tag I rarely use. What ever goes in here will not show up in
your browser, only in your text editor.
Here is a tag I use all the time.
You can align it.
We can combine too.
Put NOSHADE in to make it solid.
Now for pictures. Here is the tag.
As you can see, in order to align the picture, you must use the paragraph tag as I have. You
also don't have to specify width and height, but it pays to. otherwise, just remove them from
the tag. The alt tag is used when a persons browser has picture loading disabled or they are
using a text only server. It is a substitute for the image. Also, put the picture you want
in the same folder as your page. folder. If the picture is in another folder, or another
server, simply go to the picture. Then copy what is in the address bar into the part after
the SRC=" part of the tag. Also, make all file names lower case, especially when using unix.
Just trust me on this, OK?
This is the last part of the tutorial. Links. Do this:
Go to ESPN
Then add the tag Go to ESPN. The A is the anchor, the HREF ( I think it means
hyper reference) tells the browser where to go.
Simple, huh? A link for email is handy, too.
Write me
Write me By the way, in case you were wondering(I was till I found out from
Joe)URL stands for Universal
Recource Locator. That's a big fancy phrase that the computer people came up with. They tend to
do that alot. A URL is just an address.
Well that about does it for basics. See ya round in my next tutorial.
Acknowledgement.(email me if I spelt that wrong) Joe Barta. He writes great tutorials