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
Simple HTML Link Question
Old 01-10-2008, 07:35 AM Simple HTML Link Question
dave9713's Avatar
Ultra Talker

Posts: 264
Name: David
Location: London
Trades: 2
This is an example of the links i have on my site at the moment.
HTML Code:
<a href="http://www.qs.com/sitemap.xml"><font face="Arial, Helvetica, sans-serif" size="1">Sitemap</font></a></p>
How would i change that to enable the link to be black instead of blue?

Thanks

Dave
__________________

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


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

dave9713 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-10-2008, 08:12 AM Re: Simple HTML Link Question
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
The 'proper' way to set up link styles etc would be with css!

HTML Code:
<style type="text/css">
 
a:active {
 font-family: Verdana, Arial, Helvetica, sans-serif;
 font-size: 12px;
 color: #333333;  /* change your colour here */ 
}
a:link {
 text-decoration: none;
}
a:visited {
 text-decoration: none;
 color: #454850;
}
a:hover {
 text-decoration: none;
 color: #558AFE;
}
 
</style>
That would go in your head area. I've kept the hover, active etc separate so you can see the different things you can do with this. Hope this helps!
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

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

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


Last edited by vkw91; 01-10-2008 at 08:45 AM..
vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Old 01-10-2008, 08:16 AM Re: Simple HTML Link Question
rolda hayes's Avatar
Wannabe Adventurer...

Posts: 961
Name: Darren
Location: England
Trades: 0
Sound advise, but don't forget you should really have the css is a seperate .css file!
__________________
I Just a test to see what happens...
Please login or register to view this content. Registration is FREE

"Let us be thankful for the fools. But for them the rest of us could not succeed..."
rolda hayes is offline
Reply With Quote
View Public Profile
 
Old 01-10-2008, 10:07 AM Re: Simple HTML Link Question
dave9713's Avatar
Ultra Talker

Posts: 264
Name: David
Location: London
Trades: 2
Thanks Vicky & Rolda,

What do you think the best way for me to do it is then?

Is there no way to do it in a plain html document?

Dave
__________________

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


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

dave9713 is offline
Reply With Quote
View Public Profile
 
Old 01-10-2008, 10:49 AM Re: Simple HTML Link Question
Experienced Talker

Posts: 45
Trades: 0
here:
Quote:
< a href=&quot;linkhere.com&quot;> sample < /a>
just eliminate the space I put after
__________________

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

Last edited by mhaye_01; 01-10-2008 at 11:04 AM..
mhaye_01 is offline
Reply With Quote
View Public Profile Visit mhaye_01's homepage!
 
Old 01-10-2008, 11:09 AM Re: Simple HTML Link Question
dave9713's Avatar
Ultra Talker

Posts: 264
Name: David
Location: London
Trades: 2
Don't understand that one. I understood the one you did before though linking to the sample website! Thanks
__________________

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


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

dave9713 is offline
Reply With Quote
View Public Profile
 
Old 01-10-2008, 11:46 AM Re: Simple HTML Link Question
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You put vkw91's CSS code between the <head> </head> tags and change your HTML to

<a href="http://www.qs.com/sitemap.xml">Sitemap</a>

Font tag is depricated.
joder is offline
Reply With Quote
View Public Profile
 
Old 01-10-2008, 12:12 PM Re: Simple HTML Link Question
Novice Talker

Posts: 12
Name: Nothing Special
Trades: 0
hi,

how about this code?
Code:
<a href="http://www.qs.com/sitemap.xml">
<font face="Arial, Helvetica, sans-serif" size="1" color="#000000">Sitemap</font></a>
I just set the code for the color into black.
Code:
color="#000000"

Last edited by PTPMaster; 01-10-2008 at 12:14 PM..
PTPMaster is offline
Reply With Quote
View Public Profile
 
Old 01-10-2008, 02:54 PM Re: Simple HTML Link Question
dave9713's Avatar
Ultra Talker

Posts: 264
Name: David
Location: London
Trades: 2
Thanks a lot

Which way do you guys recommend? I've done it successfuly with the above method and could change it no problem.

Does it make a difference?

Dave
__________________

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


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

dave9713 is offline
Reply With Quote
View Public Profile
 
Old 01-10-2008, 05:24 PM Re: Simple HTML Link Question
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
The preferred method is to separate style from content, which would mean the CSS method. It makes more practical sense anyway, because if you link to an external stylesheet with these rules you can make changes more easily across multiple pages. W3C deprecated most styling attributes within tags with good reason. Why use throwback coding when there's a better way?
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 01-10-2008, 07:19 PM Re: Simple HTML Link Question
thesites's Avatar
Skilled Talker

Posts: 96
Name: Jacob
Location: New Mexico
Trades: 0
Quote:
Originally Posted by dave9713 View Post
Thanks a lot

Which way do you guys recommend? I've done it successfuly with the above method and could change it no problem.

Does it make a difference?

Dave
It makes a difference if your going to use that link color throughout your site, changing it in a single external document is faster then editing every single page.
__________________

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


Please login or register to view this content. Registration is FREE
thesites is offline
Reply With Quote
View Public Profile Visit thesites's homepage!
 
Old 01-11-2008, 01:03 AM Re: Simple HTML Link Question
Novice Talker

Posts: 12
Name: Nothing Special
Trades: 0
Quote:
Originally Posted by thesites View Post
It makes a difference if your going to use that link color throughout your site, changing it in a single external document is faster then editing every single page.
yeah, you are exactly correct but that is the best common method to do for plain HTML. But if he design his website with CSS, i think he can minimize his work. But base on his code he will make plain HTML only.
PTPMaster is offline
Reply With Quote
View Public Profile
 
Old 01-11-2008, 06:02 AM Re: Simple HTML Link Question
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
As Tim said above, the CSS way is the prefered method and its the way things are going these days. I would say indefinatly go the css way, <font> tags can become messy and if you wanted to change the colour for instance you would have to spend hours going through all your site, changing it, rather than just changing on single value.

Start as you mean to go on....knowledge in css is invaluble
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

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

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

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Reply     « Reply to Simple HTML Link Question
 

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 0.45568 seconds with 12 queries