Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,278 members, 7,818,936 topics. Date: Monday, 06 May 2024 at 08:38 AM

How To Link 3 Pages On Html - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Link 3 Pages On Html (1176 Views)

How To Create Pages On Your Wordpress Site. / Free New E-book On HTML And CSS / How To Link My Site With Online Payment Systems (2) (3) (4)

(1) (Reply) (Go Down)

How To Link 3 Pages On Html by eyiowuawi: 7:29am On Jun 02, 2011
hello fellas, pls i need the code to link 3 or more pages together in html
Re: How To Link 3 Pages On Html by joomlaman(m): 12:18pm On Jun 02, 2011
@ eyiowuawi,
HTML alone can not meet your need you will need a server script like JAVA. See code:-

<html>
<head>
<title>openURLs.htm</title>
<script type="text/javascript">
function Googles() {
var http = "http://www.Google.com/";
var win1 = window.open(http);
var win2 = window.open(http);
var win3 = window.open(http);
}
</script>
</head>
<body>
<a href="javascript:Googles()">Googles</a>
</body>
</html>
Re: How To Link 3 Pages On Html by DualCore1: 12:28pm On Jun 02, 2011
joomlaman:

@ eyiowuawi,
HTML alone can not meet your need you will need a server script like JAVA. See code:-

I dont think that's what he wants.
He wants to create pages and link them together to form a navigation tree.

Internal Links: How to Link Your Web Pages Together
Hyperlinks are the way we get around on the web, and these little rascals come in two flavors. There are internal links that link your own web pages and files together, and external links which link your pages to other web sites. This page covers Internal Links. If you wanted to learn how to use External Links, you're on the wrong page, kiddo.
Internal Links
When linking to pages within your site, since the browser is already in your directory you don't have to include the full URL (web page address) in your link. In fact, it's better if you don't.

If you include the full URL the browser goes back out on the Internet to find your entire address all over again. If you don't include the full url, it just searches on your site. Much faster that way. To create a link to one of your own pages simply use:

<a href="mypage.html">My Other Page</a>

As you can see, if you keep all your HTML files in the same directory, then the link is simply the page name and extension, as shown in bold text in the above code example.

If the page you want to link to is kept in a different directory you still don't have to include the full URL. Suppose you have your index page in the main directory, and your poetry pages in a directory called poetry. Then you would link like this:

<a href="poetry/mypage.html">My Other Page</a>

What you've done is code in the correct server path in your link. If you need a better understanding of server paths, visit my tutorial on Server Paths.

Source: boogiejack.com
Re: How To Link 3 Pages On Html by Nobody: 5:28pm On Jun 02, 2011
Go and read my learn html book which is on www..net and learn how to link stuffs together. the book is free
Re: How To Link 3 Pages On Html by eyiowuawi: 7:01pm On Jun 03, 2011
thank u all
Re: How To Link 3 Pages On Html by Nobody: 7:52pm On Jun 03, 2011
You are most welcome amigo.

(1) (Reply)

Site Down - Etisalat Nigeria **FIXED** / 10 Wordpress Themes To Make Your Blog Look Fashionable ( Pictures Inside) / Is There Any Forum Like Nairaland?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.