PDA

View Full Version : How to make links to other pages on home webpage??



Blackryder
04-26-2005, 06:54 PM
HI,

I'm just starting on learn html and other coding and I would like to make more then one page. I haven't put my page on the web yet and I would like to know what coding will allow you to do that. Any Ideas would be much appreciated.

Thanks :D

I mean if you want to make more then one homepage if you are making one. Is there a special kind of coding to link pages.

cr3ative
04-26-2005, 08:50 PM
<a href="http://www.google.com">Google</a>

Is this what you mean?

cr3

magicmystery
05-25-2005, 05:40 AM
Cr3ative is right. The code is <a href="put the address of the page you want to go to here">Name The Page</a> if the page is in the same folder as your referring page, you can refer to it locally, by the name of the document: nameofpage.htm or nameofpage.html. If it is located somewhere else on your site, start with the foldername/nameofpage.htm, elswhere on the web, start with the full address name that you have to type into an address bar starting with http:// - www. is optional.

<a href=" "> calls up a reference to another page and takes your browser to it. To have that page open in a new window, after the end quote, space once and then type - target="_blank" . </a> ends the active hyperlink

To source a graphic to a page, note the directory (whether local or not) and code it <img src="foldername unless local/name that file.jpg or gif" height="how many pixels tall" width="how many pixels across">

You can make a picture an active hyperlink by combining the two above coding:

<a href="nameofpage.htm" target="_blank"><img src="nameofpicture.jpg" height="how many pixels tall" width="how many pixels across" border="0"> border="0" will prevent the browser from indicating it as a hyperlink with a tacky blue border.... unless you like that sort of thing.

you can copy these codes from here and replace what is inside the quotations with your own file and folder names.

I suggest using an html editor like MS Front Page as an aid to designing web pages. The html tab will give you a bird's eye view of what the code is for everything you do in the editor (normal) section. And the Preview tab shows you approximately what it will look like online.

If I can be of any more assistance, pm or email me.

Sherry

mwinter
05-25-2005, 10:53 AM
start with the full address name that you have to type into an address bar starting with http:// - www. is optional.If www. is part of the host name, then it is not optional. Some servers might be configured to equate the domain name to www.<domain>, but that isn't always the case.


To have that page open in a new windowLet the user do it themselves. It is very rare to need a new browser instance or tab, and many users treat new windows with contempt.


<a [...]><img [...] border="0">If you want to remove borders from images, then indicate this in a style sheet. One occurance of


a img {
border-style: none;
}in a style element or linked style sheet is far more efficient, and modern, than plastering deprecated attributes all over the place.


I suggest using an html editor like MS Front PageI strongly suggest never using an editor like FrontPage, as it is certainly not...



[...] an aid to designing web pages.Quite the opposite in fact. If you want to learn how to author HTML, learn to do it yourself. WYSIWYG software produces abominable code, and teaches you nothing other than how not to do things.

Mike

magicmystery
05-26-2005, 08:21 AM
Well.. ya learn something new everyday... what I said about www. being optional you must have misunderstood... very good of you to specify... It should be known that if there is a www. in the address THEN it is not an option.... but if there isn't.... well then... don't put it there.....

I am going to start incorporating the style elements and code you mentioned into my pages.... I didn't know it exsisted till now and I have been writing HTML for 4 years now.....

but, I do maintain that I would have never gotten off the ground if it weren't for Editor... I didn't have a clue where to start.
I know you are right about it producing abominable code.... but in time you do learn to pare it down and do it right.... It is just easier for a beginner to see how everything is glued together when you are using some kind of wysiwyg software.

What I do find is NOT an aid to designing web pages are the templates that some hosts provide with their Wizards. You are completely clueless when you are using one of those and some are NON transferable if you decide to move your site to another host.

Mike, If you have any suggestions on how I can improve my site, I gratefully welcome your imput. Thanks again for your suggestions for my mother.

Sherry
Sherry Gardner's Poems, Cats and Promises (http://ca.geocities.com/sherrygardner@rogers.com)
My mother's site -- Channeling The Herald (http://channeling-theherald.ca)

mwinter
05-26-2005, 03:21 PM
what I said about www. being optional you must have misunderstood...Interpreted it differently is perhaps a better way of putting it, but if I could do it, so could the OP. :p


I am going to start incorporating the style elements and code you mentioned into my pages.... I didn't know it exsisted till now and I have been writing HTML for 4 years now.....That's not uncommon. However, CSS has existed since 1996, and both NN4 and IE4 supported it to a very limited degree. Unfortunately, it's only relatively recently become a viable option though Microsoft have a lot of catching up to do[1].


but, I do maintain that I would have never gotten off the ground if it weren't for Editor... I didn't have a clue where to start.Perhaps, but a well-written tutorial should be able to take a newcomer through everything, step-by-step.

With CSS, HTML should be easier to teach as the beginner can just learn the language as a set of logical building blocks that define parts of a document: headers, paragraphs, lists, and so forth. There's no need to worry about including presentational hacks. Granted, their first efforts will look ugly because they will use the default style sheets that come with each browser, but it will demonstrate the simplicity.

Later, once they've seen and understood the structural heirarchy that simple markup produces, understanding how to apply CSS becomes a doddle. The final hurdle will be to show how bad IE can be at rendering, but that a limited number of hacks can be used to give it unique instructions, and fix-up the mistakes.


Mike, If you have any suggestions on how I can improve my site, I gratefully welcome your imput.I'll have to look later. At the moment, it's rather difficult to look at your markup with most of it on one line. :)


My mother's site -- Channeling The Herald (http://channeling-theherald.ca)Are you sure that's the correct address, or are you experiencing server troubles? It could be just that my poor ol' dial-up connection can't put up with the stress it's under at the moment.

Mike


[1] They were, apparently, leaders in CSS support when they released each IE version, but that is far from the case now and their stop-start approach is hardly any the way to keep their users up-to-date with recent features.