OK, we'll take these one at a time.
LINKSHow do you link to another webpage in HTML?
Simple enough:
<a href="URL of webpage">Text to display</a>
(The a stands for "anchor", and the href is short for "hypertext reference", which tells your browser where the link leads to.)
So to link to google, we put:
<a href="http://www.google.com">Google</a>
(NEVER forget the http://!)
(Of course, the text could say Chimp if you wanted it to, not just plain old google!)
(If you wanted to link to google with 'Chimp' as the text, you'd do
<a href="http://www.google.com">Chimp</a>, it still goes to google!)
MOVING TEXTSimple really - just use the tags <marquee></marquee> for a medium speed scroll to the left!
Ah, I hear you say, what it we want it to go faster, slower, or a different direction?
Well, this is why <marquee> is called the 'evil' tag...
I'll tell you anyway!
Change the directionIt's pretty simple to change direction:
<MARQUEE DIRECTION=LEFT>Blah.</marquee>
<MARQUEE DIRECTION=RIGHT>Blah.</marquee>
<MARQUEE DIRECTION=UP>Blah.</marquee>
<MARQUEE DIRECTION=DOWN>Blah.</marquee>
Easy enough!
Change the speed!Simple again!
<MARQUEE SCROLLAMOUNT=x>
Really easy, the higher x is, the faster it scrolls! Normally it goes at 6, so to get it slower, go for a number between 1 and 5.
Have fun with marquee!
<MARQUEE BEHAVIOR=SCROLL>
This is the default, making the content scroll off the edge, then come back on the other side!
<MARQUEE BEHAVIOR=SLIDE>
This is the same, except that when the first part of the content reaches the left edge of the page, it stops without scrolling off.
<MARQUEE BEHAVIOR=ALTERNATE>
This is the best one, it makes the content bounce off each edge!
For examples of the above, try
this link!Centering"But I don't want my beautiful HTML in the corner" I hear you cry...
No worries!
There's a simple tag to solve it!
It goes like this:
<center>
</center>
Put EVERYTHING you want centered in between the two tags!
EVERYTHING, including any other tags!
More in a mo!
KtF
Joe