Hover Links??

  • Hallo,
    ich möchte, dass die Links auf meiner Webseite, bei Mausberührung die Farbe wechseln und unterstrichen sind. Kann mir da jemand einen einfachen HTML Code sagen??
    Danke :D

  • Am besten zu lösen mit CSS! Füg als erstes folgende Zeile in deinen HEAD Bereich ein:

    Code
    <link href="style.css" rel="stylesheet" style="text/css">

    Dann erstell ein Datei mit dem Namen style.css und füg folgenden Inhalt ein:

    Code
    a         {font-size: 12px; font-weight:bold; color:#000000; text-decoration: none}
    a:link    {font-size: 12px; font-weight:bold; color:#000000; text-decoration: none}
    a:visited {font-size: 12px; font-weight:bold; color:#000000; text-decoration: none}
    a:active  {font-size: 12px; font-weight:bold; color:#000000; text-decoration: none}
    a:hover   {font-size: 12px; font-weight:bold; color:#006600; text-decoration: underline;}