Successful Blog

  • Home
  • About GeniusShared
  • Author Guidelines
  • Meet the GeniusShared Team
  • Liz’s Book
  • Newsletter

How to Code Accessible Links–Part 1

January 16, 2006 by Liz Leave a Comment

Cas read my article on how to code hyperlinks and in the comments shared some discussion about the importance of accessible links–a topic which had come up earlier in Successful-Blog conversations. In my usual fashion I invited Cas to write on the subject and she took up the challenge. Her response was to do a series of articles on accessible hyperlinks. I, for one, am so glad she did. She really does know so much more about such things than I do. In fact, she knows so much more that I asked her to start by just clarifying for me what is it that makes an Accessible link. –ME “Liz” Strauss

How to Code Accessible Links–Part One: The Basics
by Cas of Brightmeadow

Liz has already written a great article on how to code hyperlinks. I’d like to take this one further and show you how to code accessible hyperlinks. If you are happy with how to manually code hyperlinks, then we can continue. If you aren’t, or feel like you need a bit of a refresher, I do recommend you read the article. We’ll wait.

Ok, ready?

What is an accessible link?

Web accessibility is about making your website accessible to all Internet users (both disabled and non-disabled), regardless of what browsing technology they’re using. An “accessible link” therefore, is simply a link that imparts as much information to as many users as possible. It enables the reader to preview the link, making an informed decision about whether to follow it or not, and helps to differentiate between links that may share link text but refer to different targets

So why should I worry about accessibility?

Not everyone views the Web in the same way that you do – accessibility is not just for disabled users. It is for the many potential readers who might be browsing your site on a dial-up connection, using a screen-reader, using a mobile device with a small screen, or using a text-only browser such as Lynx. By making your website accessible you are opening it up to a much wider potential audience. Making something accessible for humans also has the side effect of making it more accessible for search engines. If you make a living through your site, happy readers, and happy search engines just make good sense.

Not convinced?

Not convinced that this is necessary? Turn off the images in your browser, and then the stylesheet, and see if you can still successfully navigate your website and get meaning from your content. What you see now is roughly how someone with visual impairment, or a text-only browser, views your website.

  • Internet Explorer: Tools > Internet Options > Advanced > Multimedia > Show pictures (uncheck)
  • Firefox: Tools > Options > Web features > Load images (uncheck)
  • Opera: Tools > Preferences > Multimedia > Show no images
  • Stylesheets: View > Page Styles > No style

So how do I go about making my links accessible?

It really isn’t that hard. If you’re already manually coding your links, making them accessible is just a case of putting in a few extra bits of text.
This how-to is in three parts, and will walk you through what you need to know:

  1. How to code an accessible hyperlink
  2. How to code an accessible image
  3. How to code an accessible embedded hyperlink

Throughout this article I will be using http://www.foo.com as an demonstration. Simply replace this, and any other exemplar text with the particulars for what you are doing.

How to code an accessible text hyperlink

Basic code

Just to remind you what the basic hyperlink code looks like:
<a href=”http://www.foo.com”>Descriptive Link Anchor Text </a>

The TITLE description – how it works

It is the TITLE attribute that makes a link accessible. It is inserted after the URL but before the first closing angled bracket and contains descriptive text, enabling the reader to ‘preview’ the link. This in turn allows users to more accurately guess where the link will take them, and make a more informed decision about whether or not they should follow it. Roll your mouse over this example link and you will see what I mean. The text that appears by your mouse cursor is the preview.
Example link

Accessible code

<a href=”http://www.foo.com” title=”Descriptive text” >
Link anchor text will render like this: Link anchor text

When to use

Every hyperlink should have a TITLE attribute.

A few notes

The descriptive title can be any text you want, though to make it as accessible as possible, follow these simple rules:

  • It should say something about the destination of the link.
  • It needs to be between 3 and 80 characters long. A single sentence is normally sufficient.

–Cas and Liz

The Complete Series
How to Code Accessible Links
This one: How to Code Accessible Links–Part 1
How to Code Accessible Links–Part 2
How to Code Accessible Links–Part 3

Filed Under: Audience, Links, SEO, Successful Blog, Tech/Stats Tagged With: accessibility, blog-promotion, colding-links, Personal Branding

Comments

  1. Gary Miller says

    January 16, 2006 at 11:48 AM

    I try to always remember to use the “Title” attribute when making hyperlinks (not that I don’t misss one here or there). I guess the reason I do is because it drives me nuts when I mouse over a link and don’t get the little preview box. Another thing I add, which will probably be covered in Part 2 or 3, is the URL or other text in the browser’s status bar. It’s just common courtesy to let people know where a link will take them.

    Reply
  2. ME Strauss says

    January 16, 2006 at 12:55 PM

    Hi Gary,
    Great to see you! I’ve become addicted to that mouseover box myself. I try to put the location–where the link is going–in the link anchor text, but sometimes that can get really cumbersome so I think Cas has a convert here. 🙂
    Liz

    Reply
  3. Cas says

    January 16, 2006 at 2:02 PM

    Gary, I’m not sure exactly what you mean by text in the browser’s status bar? Do you mean include the full URL in the ‘title’ attribute?

    I do agree that it can’t be stated clearly enough that at least one of the link anchor text or the title attribute should indicate where the link will take you.

    I have started to write my own title attributes as follows:
    title=”Name of Website: name/description of particular page”
    So to link to this article, I would say:
    title=”Successful-Blog: How to Code Accessible Links (part 1)”
    Or words to that affect.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

New from Liz Strauss & GeniusShared Press



Having a hard time finding focus?

Having a hard time finding focus?

It can be hard to find focus sometimes. A few months ago, I was talking with a colleague who was having a hard time finding focus in their work. They spoke of feeling pulled in multiple directions and of many obligations — both at work and with their family. As I listened, I could hear […]

Sometimes We Outgrow Our Stories

Sometimes We Outgrow Our Stories

The other day I was having a conversation with a friend. We were sharing stories from days gone by about each of our lives. We hopped from one story to the next — based on what each of us were sharing. It was really an incredible discussion as we were each learning from the other […]

It’s Not Your Passion, But Your Purpose

It’s Not Your Passion, But Your Purpose

Everyone feels lost sometimes. I don’t think I know anyone who hasn’t been lost in their head at one time or another — even those folks overachieving all over the Internet. We all find those moments that we wonder about who we are and what we want. But the question is not whether everyone gets […]

Getting Past Fear

Getting Past Fear

I felt the more embarrassing fear of people’s judgment. When I decided it was time to write again, I avoided the computer for the longest time. On the rare occasion that I managed to sit myself down to write, I’d get caught up answering email or reading articles around the web, not doing writing I […]

  • What IS an SOB?!
  • SOB A-Z Directory
  • Letting Liz Be

© 2019 ME Strauss & GeniusShared 2005 - 2016