Because There’s No “AI” in “Failure”
My new favourite blog on Tumblr.
My new favourite blog on Tumblr.
Considering the average website is less than ten years old, that old warning from your parents that says to “be careful what you post online because it’ll be there forever” is like the story your dad told you about chocolate milk coming from brown cows, a well-meant farce. On the contrary, librarians and archivists have implored us for years to be wary of the impermanence of digital media; when a website, especially one that invites mass participation, goes offline or executes a huge dump of its data and resources, it’s as if a smallish Library of Alexandria has been burned to the ground. Except unlike the burning of such a library, when a website folds, the ensuing commentary from tech blogs asks only why the company folded, or why a startup wasn’t profitable. Ignored is the scope and species of the lost material, or what it might have meant to the scant few who are left to salvage the digital wreck.
The internet, it turns out, is not forever. It’s on more of like a 10-year cycle. It’s constantly upgrading and migrating in ways that are incompatible with past content, leaving broken links and error pages in its wake. In other instances, the sites simply shutter, or become so layered over that finding your own footprint is impossible—I have searched “Kate Lindsay Myspace” every which way and have concluded that my content from that platform must simply be lost to time, ingested by the Shai-Hulud of the internet.
A Cataloged Archive of Information Relating to the Now Closed Mystery Flesh Pit National Park
200 discarded objects from a dump in San Francisco, meticulously catalogued, researched, and documented by Jenny Odell. The result is something more revealing than most pre-planned time capsule projects …although this project may be somewhat short-lived as it’s hosted on Tumblr.
Kevin made this handy catch-all service for hosting Tumblr blogs on their own domain (which can bypass Tumblr’s annoying Oath interstital). Here’s mine.
Analogue switches, dials, and buttons, buttons, buttons (just like that Flickr group I linked to).
The horror …the horror.
Beautiful animation work.
Krystal’s excellent annotated collection of onboarding examples.
Sci-fi book covers and posters from the 1970s.
Slack ammo.
Disappointed in your cakes I am.
Adam Silver is writing a book on forms—you may be familiar with his previous book on maintainable CSS. In a recent article (that for some reason isn’t on his blog), he looks at markup patterns for search forms and advocates that we should always use a label. I agree. But for some reason, we keep getting handed designs that show unlabelled search forms. And no, a placeholder is not a label.
I had a discussion with Mark about this the other day. The form he was marking up didn’t have a label, but it did have a button with some text that would work as a label:
<input type="search" placeholder="…">
<button type="submit">
Search
</button>
He was wondering if there was a way of using the button’s text as the label. I think there is. Using aria-labelledby
like this, the button’s text should be read out before the input field:
<input aria-labelledby="searchtext" type="search" placeholder="…">
<button type="submit" id="searchtext">
Search
</button>
Notice that I say “think” and “should.” It’s one thing to figure out a theoretical solution, but only testing will show whether it actually works.
The W3C’s WAI tutorial on labelling content gives an example that uses aria-label
instead:
<input type="text" name="search" aria-label="Search">
<button type="submit">Search</button>
It seems a bit of a shame to me that the label text is duplicated in the button
and in the aria-label
attribute (and being squirrelled away in an attribute, it runs the risk of metacrap rot). But they know what they’re talking about so there may well be very good reasons to prefer duplicating the value with aria-label
rather than pointing to the value with aria-labelledby
.
I thought it would be interesting to see how other sites are approaching this pattern—unlabelled search forms are all too common. All the markup examples here have been simplified a bit, removing class
attributes and the like…
The BBC’s search form does actually have a label:
<label for="orb-search-q">
Search the BBC
</label>
<input id="orb-search-q" placeholder="Search" type="text">
<button>Search the BBC</button>
But that label is then hidden using CSS:
position: absolute;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
That CSS—as pioneered by Snook—ensures that the label is visually hidden but remains accessible to assistive technology. Using something like display: none
would hide the label for everyone.
Medium wraps the input
(and icon) in a label
and then gives the label
a title
attribute. Like aria-label
, a title
attribute should be read out by screen readers, but it has the added advantage of also being visible as a tooltip on hover:
<label title="Search Medium">
<span class="svgIcon"><svg></svg></span>
<input type="search">
</label>
This is also what Google does on what must be the most visited search form on the web. But the W3C’s WAI tutorial warns against using the title
attribute like this:
This approach is generally less reliable and not recommended because some screen readers and assistive technologies do not interpret the
title
attribute as a replacement for the label element, possibly because thetitle
attribute is often used to provide non-essential information.
Twitter follows the BBC’s pattern of having a label but visually hiding it. They also have some descriptive text for the icon, and that text gets visually hidden too:
<label class="visuallyhidden" for="search-query">Search query</label>
<input id="search-query" placeholder="Search Twitter" type="text">
<span class="search-icon>
<button type="submit" class="Icon" tabindex="-1">
<span class="visuallyhidden">Search Twitter</span>
</button>
</span>
Here’s their CSS for hiding those bits of text—it’s very similar to the BBC’s:
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
That’s exactly the CSS recommended in the W3C’s WAI tutorial.
Flickr have gone with the aria-label
pattern as recommended in that W3C WAI tutorial:
<input placeholder="Photos, people, or groups" aria-label="Search" type="text">
<input type="submit" value="Search">
Interestingly, neither Twitter or Flickr are using type="search"
on the input
elements. I’m guessing this is probably because of frustrations with trying to undo the default styles that some browsers apply to input type="search"
fields. Seems a shame though.
Instagram also doesn’t use type="search"
and makes no attempt to expose any kind of accessible label:
<input type="text" placeholder="Search">
<span class="coreSpriteSearchIcon"></span>
Same with Tumblr:
<input tabindex="1" type="text" name="q" id="search_query" placeholder="Search Tumblr" autocomplete="off" required="required">
…although the search form itself does have role="search"
applied to it. Perhaps that helps to mitigate the lack of a clear label?
After that whistle-stop tour of a few of the web’s unlabelled search forms, it looks like the options are:
label
element,aria-label
attribute,title
attribute, oraria-labelledby
.But that last one needs some testing.
Update: Emil did some testing. Looks like all screen-reader/browser combinations will read the associated text.
Nudibranchia or other opisthobranchia compared to the various looks of David Bowie.
Painters and Hackers: nothing in common whatsoever, but this are classical painters depictions of software engineering.
A fascinating insight into some of Tumblr’s most popular accounts:
Some posts get more than a million notes—imagine a joke whispered in biology class getting a laugh from a city the size of San Francisco.
It’ll be a real shame when Tumblr disappears.
That’s “when”, not “if”. Remember:
In 2013, Yahoo bought Tumblr.
Dividing the world in two.
Marcy’s Tumblr blog of examples of accessibility in action on the web.
You might want to keep an eye on what the Clearlefties are doing here for the next hundred days.
One down, 99 to go.