PDA

View Full Version : Button help for a rank amateur


charlieb
10-20-2002, 05:17 PM
I'm just starting out with web pages and learning (I hope, as I go along). I am trying to have an unordered list of links that friends who access the page can use to be transported to the appropriate external site.
My first attempts are simple but effective. For example, Get the latest official hurricane reports. <a href="http://www.wunderground.com/tropical">click here</a>.

Straight forward enough, but the "click here" is sort of poor. I would like to use the button tool, but I haven't figured out the syntax. A simple button that might simply be labled "click" or might have a different descriptor is all I want at this point, but although I can get the button and the "click", I cannot get it to open the link. i have also tried the <button>... </button> tag with no success.

What is the right syntax for doing this.

Many thanks

Charlie

Josh
10-21-2002, 02:56 AM
Do you mean you want to put a picture on it,like this?http://developers.evrsoft.com/forum/ravimages/logo.gif (http://developers.evrsoft.com/forum/index.php?)
in html code:
<a href="url"><img src="image url"></img></a>


or this one
<a href="http://www.yam.com"><button>click</button></a>

HZR
10-21-2002, 05:57 AM
Try this:
<input type="submit" value="Evrsoft" onclick="location.href = 'http://evrsoft.com'" />

BTW, Josh, the img tag is an emty element and does not have an end tag.

Josh
10-21-2002, 06:09 AM
Thanks,I forget about it.
But it still works fine,that doesn't bother.

HZR
10-21-2002, 06:50 AM
No, but it's not valid.

EnwTheGood
10-22-2002, 04:30 AM
It's not "valid" in the same way <br /> isn't valid, but I don't know of any web browser that won't accept a closing tag!

HZR
10-22-2002, 09:30 AM
But why insert a closing tag when it's not necessary and not even supposed to be there?
And since when is <br /> not valid?