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>Phone link accessibility dilemma</h1> 

<p><a href="https://www.w3.org/TR/WCAG20-TECHS/F73.html">WCAG 2.0 guidelines</a> state that links should be underlined. But, in the case of a phone number, it doesn't make a lot of sense to show it as a link on a non-mobile screen. And, screen readers will read it as a link.</p>

<p>An alternative would to use a <code>&lt;span&gt;</code> for the phone number and then replace it with an <code>&lt;a&gt;</code> at a specific screen size:</p>

<div id="myTel">
  <span id="num">555-555-5555</span>

<p>Both numbers start as a <code>&lt;span&gt;</code>, but the second number has been changed to an <code>&lt;a&gt;</code> in the DOM because its container is a specific size. Now screen readers will only read the number as a link when appropriate.</p>

              body {
  font: 1.4em/1.75 sans-serif;
  margin: 1em;

h1 {
  font-size: 1.5em;
  margin-bottom: .5em;

p {
  margin-bottom: 1.5em

a {
  color: #006fc6;
  font-weight: 600;
  text-decoration: underline solid #8cc8ff;

a:hover {
  text-decoration: underline solid #006fc6;

div {
  display: inline-block;
  margin-bottom: 1.5em;
  margin-right: 1.5em;

#num {
  max-width: 699px;

              (function () {
  if ($("#myTel").width() <= 700) {
    $("#num").replaceWith(function () {
      return $("<a href='tel:" + $(this).html() + "'>" + $(this).html() + "</a>");
Loading ..................