Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Markup Languages > HTML   »   html link help

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Jul 6, 2006, 05:41 PM
ittle's Avatar
ittle
Junior Member
ittle is offline
 
Join Date: Jan 2006
Posts: 97
ittle See this member's comment history on his/her Profile page.
html link help

okay so im making my website, but for example on my index.html i have a link for home.html, the word "home" is supposed to be yellow and not underline, but instead it is blue and underlined. need help!

Reply With Quote
 
     

Answers
 
 
Old Jul 7, 2006, 12:41 AM   #2  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
I'll do this the bad way - I'm writing up a CSS guide for this site over the weekend so check back to this category later if you want some guidance on doing it the proper way.

In between the <head> tags of your HTML page put this:
Code:
<style>
a {
    text-decoration: none;
    color: yellow;
}
</style>
That will make all links on your page yellow and not-underlined. If you want just certain links coloured yellow, place the following between your <head> tags:

Code:
<style>
.link {
    text-decoration: none;
    color: yellow;
}
</style>
Then make your HTML links look like this:
Code:
<a href="home.html" class="link">a link</a>
Just a quick note - Removing the underline on links if often "frowned upon". It makes it quite hard to tell what is a link and what isn't.

Comments on this post
ittle agrees: it worked!!! see i use css too sometimes and it fit perfectly , thanks!
jduke44 agrees: that's great that your making the guide. This will help many
  Reply With Quote
 
     
 
 
Old Jul 7, 2006, 02:47 AM   #3  
Über Member
NeedKarma is offline
 
NeedKarma's Avatar
 
Join Date: Dec 2004
Location: Online
Posts: 7,588
NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.
Ummm...is it possible it's blue because it's a followed (already clicked) link?
  Reply With Quote
 
     
 
 
Old Jul 7, 2006, 01:31 PM   #4  
Junior Member
ittle is offline
 
ittle's Avatar
 
Join Date: Jan 2006
Posts: 97
ittle See this member's comment history on his/her Profile page.
Quote:
Originally Posted by NeedKarma
Ummm...is it possible it's blue because it's a followed (already clicked) link?
i like your answer but no. check it out! at www.littledan1.com
(the page the link is directing to hasnt been built so just look at my scripting and see what the problem is
  Reply With Quote
 
     
 
 
Old Jul 10, 2006, 12:25 AM   #5  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
Dan, that link won't work. If the page/link isn't there we can't look at your scripting.

Secondly, my first answer will colour the links like you asked.
  Reply With Quote
 
     
 
 
Old Jul 10, 2006, 07:08 PM   #6  
Junior Member
ittle is offline
 
ittle's Avatar
 
Join Date: Jan 2006
Posts: 97
ittle See this member's comment history on his/her Profile page.
ACTUALLY IT DID. I wrote the style scripting you told me and it worked. look at it.
  Reply With Quote
 
     
 
 
Old Jul 21, 2007, 12:21 AM   #7  
New Member
BBeepTX is offline
 
Join Date: Jul 2007
Posts: 6
BBeepTX See this member's comment history on his/her Profile page.
Here is an old HTML code way to do links with forced color.... use Font tags


<a href="home.html"><font color=yellow>HOME</font></a>
  Reply With Quote
 
     
 
 
Old Jul 28, 2007, 12:44 PM   #8  
Junior Member
ittle is offline
 
ittle's Avatar
 
Join Date: Jan 2006
Posts: 97
ittle See this member's comment history on his/her Profile page.
my bad, the link doesn't work, cause I was lazy and I lost the domain name.
  Reply With Quote
 
     
 
 
Old Jul 28, 2007, 01:46 PM   #9  
New Member
nickfromstrood is offline
 
Join Date: Jul 2007
Posts: 22
nickfromstrood See this member's comment history on his/her Profile page.
Not too sure about the underlining, but as for colour I would put the following in my body tag to make links yellow:

<body alink="yellow" vlink="yellow" link="yellow">

this will cover:

A(ctive) links - as you click on them

V(isited links

and also unclicked links

hope this is some help :s
  Reply With Quote
 
     
 
 
Old Aug 2, 2007, 07:05 AM   #10  
Full Member
jstrike is offline
 
Join Date: May 2007
Location: Wisconsin - Go Packers!
Posts: 412
jstrike See this member's comment history on his/her Profile page.
The first set of styles will change all links that do not have a class specified in the anchor tag. The second set will only be applied to those links that have the class value set to myLinkStyle. If you are going to remove the underline from a link you should make sure that it's obvious to the user that there is a link there. What we will typically do is surround the link with [ ].

Oh...and sorry for the ugly colors....I just chose stuff off the top of my head.
Your styles would contain:
Code:
<style>
a:link {
  color: green;
  text-decoration: none;
}
a:visited {
  color: yellow;
  text-decoration: none;
}
a:hover {
  color: green;
  text-decoration: underline;
}
a:active {
  color: green;
  font-weight: bold;
  text-decoration: none;
}

a.myLinkStyle:link {
  color: cyan;
  text-decoration: none;
}
a.myLinkStyle:visited {
  color: orange;
  text-decoration: none;
}
a.myLinkStyle:hover {
  color: cyan;
  text-decoration: underline;
}
a.myLinkStyle:active {
  color: cyan;
  font-weight: bold;
  text-decoration: none;
}
</style>
And then your links in the body:
Code:
This is a link to [ <a href="http://www.yahoo.com">Yahoo</a> ]<br>
This is a link to [ <a href="http://www.google.com" class="myLinkStyle">Google</a> ]
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
CSS vs. HTML
(9 replies)
html help !
(5 replies)
html
(2 replies)
HTML
(1 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 07:01 PM.