• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

A small html question?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

ps2cho

Member
Joined
Oct 13, 2004
Ok i really dont know what category this comes under? Would HTML questions go under the programming section? Im not sure...
But to my question...
Im trying to get myself used to html but i need some help.
I have a .gif image that i put on my site but where in the html code do i make it a link?
"<center><img src="gfx/csb.gif"></center>"
thats what i have so far
What would i have to add to make it a link?

thanks
 
If you want to link to "http://www.ocforums.com", your code would look like this:
Code:
<center><a href="http://www.ocforums.com"><img src="gfx/csb.gif"></a></center>
Whatever is inbetween the opening <a> and the closing </a> is the link. For images, you should also specify an alternate text to be displayed if the image can't load for some reason, like this:
Code:
<center><a href="http://www.ocforums.com"><img src="gfx/csb.gif" alt="ocforums"></a></center>

Did that help any?


This post does not belong in a hardware forum, btw. I think the "Programming Tips and Tricks" section is where you should have posted. Just so you know in the future.
 
Back