HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<svg id="logo" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
x="0px" y="0px" width="600px" height="168.695px" viewBox="0 0 600 168.695" enable-background="new 0 0 600 168.695"
xml:space="preserve">
<g>
<g>
<g>
<g>
<path fill="#999999" d="M0,168.695V29.328h128.258v139.368H0L0,168.695z M8.342,160.442h111.569V37.578H8.342V160.442
L8.342,160.442z"/>
</g>
</g>
<g>
<g>
<path fill="#676767" d="M6.8,162.017V36.006h114.658v126.01H6.8L6.8,162.017z M14.258,154.554h99.738V43.466H14.258V154.554
L14.258,154.554z"/>
</g>
</g>
</g>
<g>
<path fill="#676767" d="M61.251,106.049l-11.094,31.163l-9.009-18.357l-9.184,18.364l-10.586-31.17h5.982l5.471,18.382
l8.504-17.083l8.264,16.848l5.828-18.147H61.251z"/>
<path fill="#676767" d="M82.548,127.233c0,0.521-0.04,1.044-0.117,1.569H67.04c0.34,1.101,0.972,1.986,1.89,2.658
c0.918,0.668,1.952,1.002,3.11,1.002c1.599,0,2.925-0.617,3.974-1.849l3.229,4.289c-2.022,1.916-4.424,2.874-7.203,2.874
c-2.968,0-5.467-1.013-7.499-3.044c-2.036-2.03-3.05-4.526-3.05-7.486c0-2.932,1.022-5.414,3.068-7.444
c2.047-2.029,4.54-3.046,7.481-3.046c2.936,0,5.423,1.016,7.46,3.043C81.532,121.823,82.548,124.302,82.548,127.233z
M76.604,124.827c-0.968-1.84-2.491-2.757-4.564-2.757c-2.101,0-3.637,0.917-4.607,2.757H76.604z"/>
<path fill="#676767" d="M106.362,127.245c0,2.935-1.017,5.422-3.049,7.467c-2.035,2.044-4.521,3.064-7.46,3.064
c-2.965,0-5.464-1.016-7.497-3.047c-2.035-2.03-3.05-4.526-3.05-7.488v-21.191h5.314v12.045c1.599-0.893,3.344-1.339,5.234-1.339
c2.939,0,5.425,1.017,7.46,3.046C105.345,121.83,106.362,124.313,106.362,127.245z M101.05,127.245
c0-1.411-0.512-2.626-1.537-3.646c-1.023-1.019-2.243-1.528-3.661-1.528c-1.444,0-2.676,0.503-3.7,1.509
c-1.024,1.008-1.534,2.231-1.534,3.666c0,1.44,0.51,2.668,1.534,3.688c1.023,1.02,2.255,1.528,3.7,1.528
c1.443,0,2.67-0.508,3.681-1.528C100.544,129.913,101.05,128.684,101.05,127.245z"/>
</g>
<g>
<g>
<g>
<path fill="#8DE1FF" d="M75.281,83.138V0h83.137v83.138H75.281L75.281,83.138z M84.076,74.339h65.544l0.005-65.545H84.076
V74.339L84.076,74.339z"/>
</g>
</g>
<g>
<g>
<path fill="#00BBDD" d="M81.59,76.829V6.309h70.52v70.521H81.59L81.59,76.829z M89.05,69.365h55.597l0.004-55.597H89.05V69.365
L89.05,69.365z"/>
</g>
</g>
</g>
<rect x="552.958" y="59.46" transform="matrix(0.7806 0.625 -0.625 0.7806 170.107 -338.143)" fill="#00BBDD" width="27.578" height="27.579"/>
<rect x="580.291" y="95.413" transform="matrix(0.2572 0.9664 -0.9664 0.2572 538.3851 -491.8774)" fill="#8DE1FF" width="17.729" height="17.729"/>
<g>
<path fill="#676767" d="M180.196,105.785c0.448,0,0.841,0.391,0.841,0.839v10.572c0,13.819-5.93,24.561-17.231,31.106
c-0.224,0.168-0.558,0.168-0.783,0c-0.279-0.112-0.446-0.393-0.446-0.671v-2.126c0-0.28,0.112-0.503,0.28-0.616
c5.986-5.091,12.083-12.364,12.083-27.693v-6.881h-11.301c-0.112,8.616-2.294,14.044-7.049,17.51
c-0.223,0.168-0.559,0.225-0.839,0.057c-0.279-0.111-0.447-0.393-0.447-0.728v-2.126c0-0.166,0.056-0.391,0.223-0.502
c2.181-2.631,2.181-8.951,2.181-15.049v-2.854c0-0.448,0.393-0.839,0.841-0.839H180.196z"/>
<path fill="#676767" d="M202.445,105.785c0.448,0,0.784,0.391,0.784,0.839v18.965c0,0.448-0.336,0.784-0.784,0.784h-4.53
c-0.448,0-0.784-0.336-0.784-0.784v-18.965c0-0.448,0.336-0.839,0.784-0.839H202.445z M222.025,105.785
c0.448,0,0.841,0.391,0.841,0.839v10.572c0,13.819-5.93,24.561-17.231,31.106c-0.224,0.168-0.559,0.168-0.783,0
c-0.28-0.168-0.446-0.393-0.446-0.671v-2.126c0-0.28,0.11-0.503,0.278-0.616c5.988-5.146,12.086-12.42,12.086-27.693v-10.572
c0-0.448,0.335-0.839,0.782-0.839H222.025z"/>
<path fill="#676767" d="M262.754,143.938c0.448,0,0.782,0.337,0.782,0.782v2.911c0,0.448-0.334,0.783-0.782,0.783h-24.112
c-0.448,0-0.784-0.336-0.784-0.783v-2.911c0-0.445,0.336-0.782,0.784-0.782h8.84c0.224-0.28,0.783-1.344,0.783-4.811v-28.866
h-8.449c-0.448,0-0.838-0.339-0.838-0.783v-2.854c0-0.448,0.39-0.839,0.838-0.839h21.986c0.448,0,0.84,0.391,0.84,0.839v2.854
c0,0.445-0.392,0.783-0.84,0.783h-7.888v28.977c0,1.846-0.224,3.413-0.672,4.7H262.754z"/>
<path fill="#676767" d="M297.618,104.611c-1.286,6.321-3.638,11.245-7.106,15.049v27.972c0,0.448-0.39,0.783-0.84,0.783h-4.252
c-0.448,0-0.782-0.336-0.782-0.783v-23.217c-3.638,2.181-8.111,3.804-13.707,4.978c-0.222,0.057-0.446-0.055-0.672-0.166
c-0.166-0.169-0.279-0.392-0.279-0.673v-2.069c0-0.392,0.222-0.728,0.559-0.785c12.029-3.524,18.35-10.292,19.972-21.369
c0.055-0.392,0.392-0.671,0.782-0.671h5.483c0.28,0,0.506,0.112,0.673,0.279C297.563,104.163,297.618,104.386,297.618,104.611z"/>
<path fill="#676767" d="M336.001,105.785c0.448,0,0.841,0.391,0.841,0.839v10.572c0,13.819-5.93,24.561-17.233,31.106
c-0.222,0.168-0.556,0.168-0.781,0c-0.28-0.168-0.449-0.393-0.449-0.671v-2.126c0-0.28,0.112-0.503,0.282-0.616
c4.029-3.413,8.334-8,10.571-16.056c-2.126-1.622-5.927-3.188-10.124-3.245c-0.446,0-0.84-0.334-0.84-0.782v-5.092
c0-0.28,0.112-0.503,0.282-0.614c0.169-0.169,0.392-0.223,0.671-0.223c4.027,0.557,7.945,2.405,11.02,5.145
c0.339-2.181,0.505-4.419,0.505-6.826v-6.935h-11.302c-0.112,8.447-2.238,13.593-7.047,17.118
c-0.223,0.166-0.562,0.166-0.84,0.057c-0.277-0.169-0.448-0.448-0.448-0.728v-2.126c0-0.223,0.058-0.393,0.225-0.503
c2.181-2.631,2.181-8.448,2.181-14.601v-2.854c0-0.448,0.391-0.839,0.84-0.839H336.001z"/>
<path fill="#676767" d="M375.788,122.176c0.449,0,0.787,0.336,0.787,0.784v3.973c0,0.446-0.337,0.782-0.787,0.782h-20.363
c-0.445,0-0.783-0.336-0.783-0.782v-3.973c0-0.448,0.339-0.784,0.783-0.784H375.788z"/>
<path fill="#676767" d="M399.631,116.695c0.448,0,0.782,0.336,0.782,0.782v7.386c0,12.027-2.74,19.692-8.391,23.44
c-0.223,0.168-0.557,0.168-0.782,0c-0.279-0.112-0.449-0.393-0.449-0.671v-2.126c0-0.225,0.057-0.448,0.226-0.56
c1.789-1.903,3.804-5.93,3.804-20.083v-7.386c0-0.446,0.334-0.782,0.784-0.782H399.631z M418.371,112.331h-9.342v35.301
c0,0.448-0.393,0.783-0.837,0.783h-3.807c-0.445,0-0.782-0.336-0.782-0.783v-35.301h-9.341c-0.449,0-0.841-0.336-0.841-0.784
v-2.909c0-0.448,0.391-0.782,0.841-0.782h9.341v-3.413c0-0.448,0.337-0.784,0.782-0.784h3.807c0.445,0,0.837,0.336,0.837,0.784
v3.413h9.342c0.446,0,0.785,0.334,0.785,0.782v2.909C419.156,111.995,418.818,112.331,418.371,112.331z M421.563,144.945
c0.165,0.112,0.222,0.336,0.222,0.56v2.126c0,0.279-0.168,0.559-0.391,0.671c-0.279,0.168-0.617,0.168-0.839,0
c-5.649-3.748-8.394-11.413-8.394-23.44v-7.386c0-0.446,0.394-0.782,0.84-0.782h3.973c0.448,0,0.782,0.336,0.782,0.782v7.386
C417.756,139.015,419.826,143.042,421.563,144.945z M424.861,113.841c-1.904,0-3.411-1.566-3.411-3.468
c0-1.847,1.507-3.413,3.411-3.413s3.468,1.566,3.468,3.413C428.33,112.275,426.766,113.841,424.861,113.841z M424.861,121.953
c-1.904,0-3.411-1.567-3.411-3.468c0-1.903,1.507-3.414,3.411-3.414s3.468,1.512,3.468,3.414
C428.33,120.386,426.766,121.953,424.861,121.953z"/>
<path fill="#676767" d="M449.022,130.457c0,0.223-0.054,0.391-0.226,0.559c-0.165,0.168-0.389,0.28-0.614,0.28h-2.069
c-0.334,0-0.616-0.168-0.728-0.503c-1.005-2.406-1.509-6.154-1.509-11.748c0-0.448,0.334-0.839,0.781-0.839h3.246
c0.225,0,0.449,0.112,0.616,0.225c0.112,0.166,0.223,0.391,0.223,0.614v0.168C448.742,121.393,448.742,126.596,449.022,130.457z
M461.329,118.205c0.447,0,0.841,0.391,0.841,0.839v7.384c0,10.069-4.142,17.455-12.198,21.987c-0.277,0.168-0.557,0.168-0.782,0
c-0.282-0.168-0.448-0.392-0.448-0.673v-2.126c0-0.279,0.166-0.503,0.336-0.671c5.317-3.916,7.778-9.789,7.778-18.517v-7.384
c0-0.448,0.334-0.839,0.782-0.839H461.329z M451.93,131.296c-0.279,0-0.614-0.168-0.727-0.503
c-1.005-2.406-1.509-6.154-1.509-11.748c0-0.448,0.391-0.839,0.837-0.839h3.243c0.171,0,0.393,0.112,0.56,0.225
c0.114,0.166,0.226,0.391,0.226,0.614v0.168c0,2.181,0,7.384,0.277,11.245c0,0.223-0.054,0.391-0.223,0.559
c-0.166,0.168-0.393,0.28-0.616,0.28H451.93z"/>
<path fill="#676767" d="M503.022,105.785c0.448,0,0.84,0.391,0.84,0.839v10.572c0,13.819-5.931,24.561-17.232,31.106
c-0.223,0.168-0.562,0.168-0.785,0c-0.279-0.112-0.445-0.393-0.445-0.671v-2.126c0-0.28,0.111-0.503,0.279-0.616
c5.985-5.091,12.083-12.364,12.083-27.693v-6.881h-11.299c-0.112,8.616-2.294,14.044-7.05,17.51
c-0.223,0.168-0.557,0.225-0.839,0.057c-0.28-0.111-0.447-0.393-0.447-0.728v-2.126c0-0.166,0.056-0.391,0.223-0.502
c2.181-2.631,2.181-8.951,2.181-15.049v-2.854c0-0.448,0.394-0.839,0.841-0.839H503.022z"/>
<path fill="#676767" d="M546.322,137.841c0.054,0.111,0.111,0.28,0.111,0.391v9.399c0,0.391-0.283,0.727-0.673,0.783
c-0.391,0.056-0.782-0.168-0.894-0.505c-2.518-6.713-6.042-11.245-8.282-13.649c-3.745,5.987-9.119,10.685-15.997,14.097
c-0.283,0.112-0.562,0.057-0.785-0.055c-0.222-0.168-0.393-0.393-0.393-0.671v-2.126c0-0.28,0.114-0.56,0.339-0.671
c11.187-7.552,16.836-18.797,16.836-33.343v-1.23h-16.391c-0.445,0-0.784-0.339-0.784-0.783v-2.854
c0-0.448,0.339-0.839,0.784-0.839h21.705c0.449,0,0.841,0.391,0.841,0.839v4.868c0,6.433-1.23,12.42-3.524,17.789
C541.451,130.96,544.361,133.7,546.322,137.841z"/>
</g>
</g>
</svg>
Also see: Tab Triggers