cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

  <h1>Accessible "Read More" Links</h1>

  <h2>The Problem</h2>

  <p>Ah yes, the elusive "Read More" link. These are a common design treatment to instruct users to, indeed, read more. Yet, when it comes to an <abbr title="Assistive Technology">AT</abbr> user, links like these give too little context to be meaningful.</p>

  <p>Here's an example of what we're refering to:</p>
  <a href="#" class="read-more no-context">Read More</a>
  <p>If you were using a screen reader right now, how would you know what this link meant? Read more about what?</p>

  <h2>A Solution</h2>

  <p>Here's an easy and effective solution to give users more context:</p>

  <a href="#" class="read-more with-context">Read More <span class="visuallyhidden">about the topic this article is pertaining to.</span></a>

  <p>See any extra text? Me neither. This is the result of the <code>.visuallyhidden</code> CSS class hiding the extra text. If you were to test this with a screen reader, it would read aloud the full text within the <code>&lt;anchor&gt;</code> element and the hidden <code>&lt;span&gt;</code> element, giving much more context to the user. This lends further details on what the user is about to click and is indeed what they're looking for.</p>
              body {
  margin: 2em auto;  

article {
  margin: 0 auto;
  max-width: 30em;

code {
  background-color: AntiqueWhite;

.read-more {
  background-color: Crimson;
  border-radius: 5px;  
  color: white;
  display: block;
  margin: 1.5em 0;
  padding: .5em;
  text-align: center;
  text-decoration: none;  
  width: 6em;

.no-context {
  background-color: Crimson;

.with-context {
  background-color: ForestGreen;

 * Hide only visually, but have it available for screen readers: h5bp.com/v

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
Loading ..................