Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <p>
  <!-- hidden link for keyboard testing -->
  <a class="test" href="http://example.com">before</a>
</p>

<a href="http://www.anysurfer.be">
<span class="visuallyhidden">AnySurfer homepage</span> 
<svg role="presentation" focusable="false" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="235.861px" height="226.207px" viewBox="0 0 235.861 226.207" enable-background="new 0 0 235.861 226.207"
	 xml:space="preserve">
<g>
	<path fill="#1CBAC9" d="M192.58,195.505c19.358-19.358,31.334-46.104,31.334-75.649c0-59.084-47.896-106.982-106.982-106.982
		C57.848,12.873,9.95,60.771,9.95,119.855c0,29.932,12.291,56.992,32.102,76.41c0,0,27.02-12.677,29.572-13.224
		c2.553-0.545,29.785,0.069,45.309,0.069c10.324,0,31.211-1.774,46.166-0.323L192.58,195.505z"/>
	<path fill="#FFFFFF" d="M164.326,185.489c20.33-14.705,33.557-38.625,33.557-65.636c0-44.708-36.242-80.951-80.951-80.951
		S35.98,75.146,35.98,119.854c0,26.99,13.205,50.894,33.508,65.603l48.082,16.172L164.326,185.489z"/>
	<circle fill="#FFB721" cx="116.931" cy="119.854" r="60"/>
	<path fill="#FFFFFF" d="M117.57,200.893l-0.057-0.002c-14.146-0.322-24.546-7.828-24.98-8.148
		c-0.778-0.523-21.062-13.896-44.354,0.125c-1.357,0.818-2.233,1.324-2.889,1.701c-1.205,0.695-1.568,0.906-2.949,1.928
		c-1.11,0.82-2.676,0.586-3.497-0.523c-0.821-1.108-0.587-2.676,0.523-3.496c1.607-1.19,2.14-1.498,3.423-2.237
		c0.639-0.367,1.489-0.859,2.81-1.654c26.101-15.711,48.862-0.576,49.819,0.076c0.16,0.114,9.657,6.926,22.15,7.229
		c12.564-0.307,21.99-7.111,22.086-7.182c0.263-0.189,24.812-17.428,50.019-0.041c2.498,1.725,3.285,2.258,4.791,3.098
		c1.205,0.672,1.637,2.195,0.965,3.4c-0.674,1.207-2.195,1.639-3.4,0.967c-1.692-0.945-2.657-1.598-5.194-3.35
		c-22.338-15.408-44.025-0.182-44.242-0.027c-0.416,0.307-10.814,7.812-24.964,8.135L117.57,200.893z"/>
	<path fill="#999999" d="M117.57,212.402l-0.137-0.004c-15.232-0.348-26.498-8.479-26.971-8.823
		c-0.806-0.582-20.411-14.382-40.026-0.002c-2.673,1.961-6.428,1.383-8.387-1.291c-1.959-2.673-1.381-6.429,1.292-8.388
		c21.441-15.719,44.839-6.873,54.216,0c0.066,0.049,8.73,6.197,20.013,6.504c11.286-0.307,19.949-6.455,20.035-6.518
		c9.355-6.859,32.754-15.705,54.195,0.014c2.674,1.959,3.252,5.715,1.293,8.388c-1.959,2.672-5.715,3.252-8.387,1.291
		c-19.789-14.505-39.826-0.146-40.027,0c-0.471,0.348-11.734,8.479-26.973,8.825L117.57,212.402z"/>
	<g enable-background="new    ">
		<path fill="#FFFFFF" d="M109.52,72.426h15.392l30.664,79.727h-15.773l-6.237-16.422h-32.532l-6.486,16.422H78.774L109.52,72.426z
			 M117.31,93.562l-10.697,27.371h21.329L117.31,93.562z"/>
	</g>
	
		<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="32.6086" y1="188.3359" x2="32.6086" y2="80.9395" gradientTransform="matrix(1 0 0 -1 84 201.207)">
		<stop  offset="0" style="stop-color:#FFFFFF"/>
		<stop  offset="1" style="stop-color:#FFFFFF;stop-opacity:0.5"/>
	</linearGradient>
	<path opacity="0.5" fill="url(#SVGID_1_)" enable-background="new    " d="M12.265,97.642
		c26.351,14.004,62.234,22.625,101.789,22.625c42.174,0,80.178-9.802,106.898-25.479c-11.283-46.99-53.568-81.916-104.021-81.916
		C65.464,12.873,22.492,49.22,12.265,97.642z"/>
</g>
</svg>
</a>

<p>
  <!-- hidden link for keyboard testing -->
  <a class="test" href="http://example.com">after</a>
</p>

<hr>

<h2>Explanation</h2>
<ul>
  <li>The hidden text (class="visuallyhidden") serves as link-text and is only read by screenreaders.</li>  
  <li>ARIA role="presentation" marks the SVG as decorative for screenreaders. aria-hidden="true" is also an option.</li>
  <li>The focusable="false" attribute fixes a bug in IE. SVG's shouldn't receive keyboard focus by default.</li>  
</ul>

              
            
!

CSS

              
                svg {
    height: 5em;
    width: 5em;
}

.test, .visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.test:focus {
    position: static;
    width: auto;
    height: auto;
    margin: inherit;
    overflow: visible;
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    white-space: inherit;
}

* {
  font-family: Helvetica,sans-serif;
}
              
            
!

JS

              
                  
              
            
!
999px

Console