Skip to main content
September 29, 2019
Answered

Hyper link color

  • September 29, 2019
  • 2 replies
  • 796 views

Hello,

dw c6

How do I change the color of only one hyper link.

    This topic has been closed for replies.
    Correct answer BenPleysier

    There are 2 ways to do this:

    1. Inline as in
      <a href="http://www.hyperlinkcode.com/change-hyperlink-color.php" style="color: #cc0000">
    2. Assign a class and use external CSS
      <a href="http://www.hyperlinkcode.com/change-hyperlink-color.php" class="specialLink">
      and
      a.specialLink {
      color: #cc0000;
      }

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    September 29, 2019

     

    Consistent link colors are important for usability.   If you arbitrarily change one link to a different color, does that really improve your site or just make it more confusing for people? 

     

     

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    September 29, 2019

    There are 2 ways to do this:

    1. Inline as in
      <a href="http://www.hyperlinkcode.com/change-hyperlink-color.php" style="color: #cc0000">
    2. Assign a class and use external CSS
      <a href="http://www.hyperlinkcode.com/change-hyperlink-color.php" class="specialLink">
      and
      a.specialLink {
      color: #cc0000;
      }
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!