Words are the most important things on your page! But they don't have to be plain-jane like these words are. You can make them bold, funny colored, underlined, italic, smaller, bigger... anything you want, really. Just remember, to use an effect on text, you have to sandwich the stuff you want affected...
Picture Stuff
To link to a picture on any site, you can right click it, and then choose either Copy Image Location or Properties. (Mac users, try the File menu for Properties or the Edit menu for Copy Image Location). If you have chosen Copy Image Location, you can then paste it right into your IMG tag, where the address goes. For Properties, it should show you the URL of the image in the little popup box it gives you. Use that in the IMG tag.
By the way, background images will be done the same way, except that instead of the IMG tag, you'll use the BACKGROUND attribute of the BODY tag, which is explained in the basic section of the page. Background images will automatically tile.
Maybe I should just get on with the tags, and then you'll see what I mean. There's only one really important picture tag, but it has plenty of attributes! If you have trouble figuring out where all the attributes should go for a picture, take a look at the sample code below:
For pictures hosted on the same server as your page:
<IMG SRC="raptor.jpg" HEIGHT="30" WIDTH="25" ALT="Scary dinosaurs!" ALIGN="left">
For pictures hosted on a different server:
<IMG SRC="http://www.dinos.com/images/raptor.jpg" HEIGHT="30" WIDTH="25" ALT="Scary dinosaurs!" ALIGN="left">
| Tag |
Usage |
| <IMG> | This is another one of those ones with no end tag. IMG takes the attributes SRC (the location, like "http://www.neopets.com/images/sidebutton.gif" or "PHOTO" with a pound(#) sign before it... this is not an optional attribute!), ALT (this pops up text for non-image browsers, and also puts text in those mouseover boxes for MSIE), BORDER (makes a border around the image if it is a link... make sure to set it to 0 if you don't want ugly borders!), and ALIGN (this tells the image to move all the way to the left or all the way to the right. Text will not wrap around the image unless you align it left or right!) |
Links - Navigation at its finest... sort of
Well, without links, no one would get anywhere, right? You can put either pictures OR text in link tags, and whatever you put in there will provide your readers with a ticket out of there. Once again, there's only one tag. This one can get hairy, so for help, look at the sample below:
For html links on the same server:
<A HREF="aboutme.html">About me</A>
For html links on a different server:
<A HREF="http://www.yahoo.com">Yahoo!</A>
For email links:
<A HREF="mailto:[email protected]">Email me!</A>
| Tag |
Usage |
| <A> </A> | A does have an end tag, and whatever is between them will be linked... this includes silly things like spaces, so be careful. A takes the attribute HREF -- the location, which should be usually either http://blahblah for web links or mailto:[email protected] for email links. |
Now enough with The Basics, lets proceed to Advance HTML!