Friday, March 14, 2014

I Don't Care What Google Did, Just Keep Underlining Links

Screen shots of Google results page with two kins of color-blindness simulated.
Screen shots of Google search results showing protanopia (middle) and deuteranopia (right) forms of color-blindness. Click/tap/select the image for a full-size view.

I figured I'd lead with my argument right in the title. Even if you read no further, you know where I stand. I'm just going to fill up the rest of this space explaining why anyway.


The Verge posted an article (Google removes underlined links, says goodbye to 1996) telling us Google is removing underlines on hyperlinks in search results, and also suggesting that underlines are oh-so-18-years-ago.

It's that sentiment (echoed in the article with the '90s-style underlined links are being removed from Google search results) that makes me worry The Verge is being snide about a usability feature it doesn't understand. The original heads-up from a Googler wasn't quite so focused on the underlines.

Why Google's Almost Plan Works

Google's search results are almost completely hyperlinks. Google retains a classic indicator of the hyperlink and keeps them all blue (a color contrast ratio of 11.2:1 to the white background and 1.5:1 with the body text) so that users don't have to learn a color scheme unique to Google. In this context, when users know the page is full of links and the colors are consistent, coupled with Google's position as a top site on the web, users aren't likely to get confused about what to click/tap/follow.

Similarly, The Verge has no underlines on its hyperlinks, whether in the navigation or in the content, until the link gets focus or the mouse hovers. This likely isn't an issue for most users as the in-content links are orangey-red within otherwise black text (a 3.7:1 color contrast ratio to the body text and 3.5:1 contrast ratio to the background). The non-inline links are pretty much all navigation anyway, and removing underlines from navigation links is a de facto standard. In this case, the links can be anywhere in the page content — they don't benefit from consistent positioning on the page as Google's links do.

How It Won't Work for You

My concern is that the average web developer may see Google dropping underlines as an excuse to do it on their own projects, without the context. For example, an article or blog post may be littered with links throughout the content. This doesn't correspond to the same type of content or organization that you see on the Google search results page. That same article or blog post may also not have a color scheme that makes it appropriate to remove the underlines.

Google misses the mark in that the blue hyperlinks don't have sufficient contrast with the rest of the text on the page. The layout Google uses, and has used for years, mitigates this as users will quickly (re)discover how links are organized on the page regardless of color or underline.

I mention The Verge's color contrast ratio above because its orangey-red links will fail Web Content Accessibility Guidelines 2.0 (WCAG) level AA compliance. I am not trying to pick on The Verge here — I can find many sites that will fail that check, including some of my own. But it is worth understanding that removing underlines, to meet even basic accessibility compliance, will require you to step up your game on understanding color contrast.

Screen shots showing links on The Verge with different forms of color-blindness.
Screen shots of hyperlinks on The Verge showing deuteranopia (top) and protanopia (bottom) forms of color-blindness. Click/tap/select the image for a full-size view.

What You'll Need to Do

To make it easy, I'll link to the WCAG notes with a quick description of what you have to do.

Guideline 1.4.1 states that you cannot rely on color alone to convey information (such as when text is a hyperlink).

If you do rely on color, contrast is imperative. Use only colors that would provide 3:1 contrast with black words and 4.5:1 contrast with a white background. I've included links to contrast checkers below.

You can read more about how to meet WCAG item 1.4.1, including sample scenarios and yet more links, in the Understanding SC 1.4.1 document.

My Recommendation

Unless you plan to run the necessary color contrast tests, just keep the underlines on your hyperlinks.


Update: 4:50pm

I think this point is worth considering:

Update: March 17, 2014

On the WebAIM mailing list Elizabeth J. Pyatt points out that the Google's link underlines don't work for keyboard users. The underlines appear when you hover over a link, but if you tab through the links no underlines appear. I'm a twit for missing this, but Google is committing a grave accessibility mistake by not including a :focus selector in its CSS.

Again, please don't follow Google's lead.


  1. The guidelines don't say "Use only colors that would provide 3:1 contrast with black words and 4.5:1 contrast with a white background." - that is given in the guidelines as an example that would pass, but is certainly not the only way to pass. The requirement is only for a 3:1 contrast with surrounding text. The 4.5:1 in the example is a bit of a red herring anyway because that is only required to achieve level AA whereas 1.4.1 is a level A success criterion.

    1. Richard, thanks for correcting me on my absolute statement. I also didn't clearly identify the difference between A and AA requirements, but was trying to avoid a much longer post qualifying the three levels and what each means. That being said, if Google or The Verge were going for AA compliance (I doubt they are for a variety of reasons), they'd miss the mark.

  2. None of the links in your right hand column have underlines.

    1. Hi Rob. The issue I raise is with links in body content. While I may not be explicit in my intro, I thought I was clear enough in my overall description.

  3. Please tell me HOW to add underlines to my hyperlinks by default in Google's Blogger platform. I have searched everywhere and cannot find this info. It is driving me mad, because I agree with you that links should be underlined in order for readers to easily see them.

    The color scheme I am using does not put enough contrast between the black text and the lavender link color. See for yourself:

    I have found tutorials on how to edit the HTML on each individual post so that links are underlined or not (mostly not, interestingly), but nothing on how to change the settings in Blogger so that it always underlines links.

    If I can't find a way to underline the links, then I am going to have to make them green or something so that they stand out enough to be seen. Ew.

    1. Cherise,

      I like green.

      You can edit the CSS for your theme to add underlines. I'll give you a sample block to paste in, but without wading into your code I can't tell you if it will be perfect.

      Anyway, while in Blogger on your dashboard, choose "Template" (the second-last item in the left column).

      To the right of that column you should see a small image of your blog home page. Below that is a button (probably orange) labeled "Customize." Click that.

      On the following screen, in the giant gray bar at the top, is a list of links at the left. At the bottom of the list is "Advanced." Click that.

      A new menu appears just to the right of that. Scroll all the way to the bottom and click "Add CSS."

      In the giant text box that comes up, scroll to the bottom and paste this block of code:

      div#main a:link { text-decoration: underline; }

      Click the orange "Apply to Blog" button in the upper right of the window and you should be set.

      You may want to darken up your links regardless. Even with the underline, the contrast is still pretty low.

    2. Thanks for trying Adrian, but this did not work. :(

      I did darken up my links a bit, but they still don't appear underlined, not to me, anyway. However, I have visited all of them, so it could be that unvisited links are underlined. I can't tell.

    3. OK, on a hunch, I deleted the spaces after { and before }. Voila!

      Thank you so much!