1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

need some help ...

Discussion in 'HTML & Website Design' started by DomainMagnate, Feb 17, 2006.

  1. #1
    Hello there..

    Need some basic help in html..

    Can anyone please share a piece of code how to make all the links on a page look like the regular text, no underlined and the same font/color..
    Can it be done without css, just plain html?

    thanks.. :)
     
    DomainMagnate, Feb 17, 2006 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    <a href="link.php" style="text-decoration:none; color:#000000;">

    You can change the color to the same as your text.
     
    jestep, Feb 17, 2006 IP
    DomainMagnate likes this.
  3. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #3
    ok, thanks, I've also found this, so you can insert it into <head> without using css .. i believe it's the same, but what's better in terms of seo and generally?

     
    DomainMagnate, Feb 17, 2006 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    I think technically that would be considered css. Its just not declared in the style tag.

    Not sure which would be better.
     
    jestep, Feb 17, 2006 IP
  5. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #5
    what do you mean it's not declared in the style tag?
    I just don't want to carry a css file with all my sites into all the directories and sub-directories.. etc.
     
    DomainMagnate, Feb 17, 2006 IP
  6. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #6
    <style type="text/css"></style>

    is exactly the same as <style></style>

    and both execute the same as <link rel="stylesheet" type="text/css" href="css.css">

    It's css, just not external css.
     
    jestep, Feb 17, 2006 IP
  7. DomainMagnate

    DomainMagnate Illustrious Member

    Messages:
    10,932
    Likes Received:
    1,022
    Best Answers:
    0
    Trophy Points:
    455
    #7
    err.. I'm confused now.. so should I add type="text/css" or leave it this way..?
     
    DomainMagnate, Feb 17, 2006 IP
  8. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #8
    If you care about the html being valid, then declare it as css.

    As far as function goes, it should work fine whichever way you do it.
     
    jestep, Feb 18, 2006 IP
  9. Homer

    Homer Spirit Walker

    Messages:
    2,396
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Paste this into your html doc Michael :)
    <style type="text/css">
    A:link {text-decoration:none;}
    A:active {text-decoration:none;}
    A:visited {text-decoration:none;}
    </style>
    HTML:
     
    Homer, Feb 18, 2006 IP