Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
linking a page from another page
Old 10-06-2008, 03:02 AM linking a page from another page
Junior Talker

Posts: 1
Trades: 0
i have written a program as below
Code:
<html>
<head>
<title>
hello everybody
</title>
</head>
<body>

<a href "http://localhost/cgi-bin/test.html"> <h1 align = "center">test </h1></a>
</body>
</html>
test.html is as below

Code:
<html>
<head>
<title>
hi hello
</title>
</head>
<body>
hi how are you
</body>
</html>
the main html program is not making a link to the file which is given as the href...
so please tell me where i have done mistake... how can i solve it?
vapanchamukhi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2008, 03:10 AM Re: linking a page from another page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
a hn tag should NEVER go inside an <a> element


and it's href="address"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-06-2008, 10:44 AM Re: linking a page from another page
Experienced Talker

Posts: 45
Trades: 0
Quote:
Originally Posted by chrishirst View Post
a hn tag should NEVER go inside an <a> element
Place the <a> tag instead inside the <h1> tag
arbet is offline
Reply With Quote
View Public Profile Visit arbet's homepage!
 
Old 10-06-2008, 09:35 PM Re: linking a page from another page
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Quote:
Originally Posted by arbet View Post
Place the <a> tag instead inside the <h1> tag
or
Code:
<a href="http://google.com" style="font-size:x-large;color:#000000;">Google</a>
This is more complaint and you can change the "x-large" to "large" or "xx-large".
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 10-07-2008, 01:45 AM Re: linking a page from another page
Experienced Talker

Posts: 45
Trades: 0
Quote:
Originally Posted by Decaf View Post
or
Code:
<a href="http://google.com" style="font-size:x-large;color:#000000;">Google</a>
This is more complaint and you can change the "x-large" to "large" or "xx-large".
Why it is more compliant? Both are valid XHTML.
arbet is offline
Reply With Quote
View Public Profile Visit arbet's homepage!
 
Old 10-07-2008, 03:22 AM Re: linking a page from another page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
A heading element inside a anchor element is NOT valid (X)HTML

inline elements must NOT enclose block elements
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-07-2008, 06:49 AM Re: linking a page from another page
hirewriters's Avatar
Average Talker

Posts: 15
Trades: 0
I agree H1 is a block level element and a (anchor) is an inline element so you need to open the h1 tag first and then place anchor tag inside it.
In your code (the first post) you have missed "=" after "a href"
__________________
Let
Please login or register to view this content. Registration is FREE
bid on your content requirements at
Please login or register to view this content. Registration is FREE
hirewriters is offline
Reply With Quote
View Public Profile Visit hirewriters's homepage!
 
Old 10-07-2008, 08:33 AM Re: linking a page from another page
sweetkendi's Avatar
Novice Talker

Posts: 6
Trades: 0
try this code:

Code:
<h1 align="center"><a href="http://localhost/cgi-bin/test.html">Test</a></h1>
I hope this will help you..

Last edited by sweetkendi; 10-07-2008 at 08:35 AM..
sweetkendi is offline
Reply With Quote
View Public Profile
 
Old 10-07-2008, 09:14 AM Re: linking a page from another page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
If we're talking XHTML here - align="center" is not valid either - that kind of presentational markup belongs in a CSS file, and that alignment method is DEPRECATED.

Using font sizes like large, x-large, etc. is just asking for trouble. Font sizing should be done in percentages or em's.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to linking a page from another page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.99953 seconds with 12 queries