[SOLVED] changing links colours using html

This is a discussion on "[SOLVED] changing links colours using html" within the Web Page Design section. This forum, and the thread "[SOLVED] changing links colours using html are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Oct 19th, 2007, 13:03
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] changing links colours using html

Good afternoon

how do i go about just using html to change the colour of links.

!I am not allowed to use CSS!


Can this be done?

Cheers

Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 19th, 2007, 13:08
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

Hmm... why aren't you allowed to use CSS?

Anyway, I think you can do:

HTML: Select all
<a href="#"><font color="#COLOUR HERE">LINK HERE</font></a>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 19th, 2007, 13:10
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

works web app doesnt let me upload it, very old crappy thing I will give it a go.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 19th, 2007, 13:11
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

Quote:
Originally Posted by R8515198 View Post
!I am not allowed to use CSS!
You can't even use the style attribute?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 19th, 2007, 13:12
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

Why not add styles to the html page then?

In the <head> tags include

HTML: Select all
<style>STYLES GO HERE as you would a CSS file</style>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 19th, 2007, 13:14
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

wicked it worked how about getting rid of the underline.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 19th, 2007, 13:15
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

That you can't do without css

See the CSS Beginner FAQ sticky in the CSS Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 19th, 2007, 13:18
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

I control the below the header of the site, its one of 100 or so.

I have tried putting .css in to it and spoke to the people above
and if they let me do it they would have to let the other 99 sites do it.

They are lazy or dont trust (probably the trust thing) they dont know what they are missing.

But some people still go for the old saying if it works why change it.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 19th, 2007, 13:21
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

I was refreshing myself the other day in the CSS beginners FAQ
as I had done a bad attempt of a website, that yourself (karinne) pointed me in the right direction.

could you double check it for me and see if i am going in the right direction now

http://www.webforumz.com/free-web-si...a-vfr-nc30.htm


thank you for the help

Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 19th, 2007, 13:21
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

How about putting them in span classes then?


<span style="text-decoration: none; color: COLOUR HERE"><a href="#">LINK HERE</a></span>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 21st, 2007, 19:49
Reputable Member
Join Date: May 2007
Location: Margate
Age: 24
Posts: 156
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

Quote:
<span style="text-decoration: none; color: COLOUR HERE"><a href="#">LINK HERE</a></span>

I tried this and it hasnt worked.
How would I put the styles in the header??

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 21st, 2007, 22:08
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,761
Thanks: 0
Thanked 14 Times in 14 Posts
Re: changing links colours using html

Are you sure that you cant put somthing like this in?

Code: Select all
<style type="text/css">
CSS in here
</style>
This doesnt require you to upload anything.....
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Oct 21st, 2007, 22:12
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

Shoot. Marc, you beat me to it!

Anyways,
Quote:
Originally Posted by R8515198 View Post
How would I put the styles in the header??
This is quite simple:
HTML: Select all
<style type="text/css">
<!--
.style1 {color: #FF0000; font-weight: bold;}
.style2 {font-family: Georgia, "Times New Roman", Times, serif; text-decoration: underline;}
.style3 {font-size: 16px; font-variant: small-caps;}
-->
</style>
Change and add styles to your liking. PS: they do not have to be named "style1", "style2", etc. Name them whatever you want. Just make sure to use the styles like this:
HTML: Select all
<p class="name">Text</p>
OR
<span class="name">Text</span>
OR
<div class="name">Text</div>
Replace "name" with your style names, such as: "normal", "special", "simple", etc. Be creative .

Cheers,
SWagner
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Oct 21st, 2007 at 22:15.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Oct 25th, 2007, 00:00
Junior Member
Join Date: Oct 2007
Location: Portaferry - Ireland
Age: 18
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: changing links colours using html

Nice one guys...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Oct 25th, 2007, 09:03
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,761
Thanks: 0
Thanked 14 Times in 14 Posts
Re: [SOLVED] changing links colours using html

Swagner - why do you have these: "<!-- -->" In your css???
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Oct 25th, 2007, 21:48
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: [SOLVED] changing links colours using html

Dreamweaver generates them automatically when you use the "Properties" bar to format text. I don't know why. They're not needed, are they?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Oct 26th, 2007, 09:15
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,761
Thanks: 0
Thanked 14 Times in 14 Posts
Re: [SOLVED] changing links colours using html

Nope - i dont use them anyway!!
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Oct 26th, 2007, 09:52
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 Posts
Re: [SOLVED] changing links colours using html

Maybe because some really old text-based browsers will not understand the style tag and show what's inside unless a comment is there?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!