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.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
width="400"
height="102.77374"
sodipodi:docname="logo.svg">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1366"
inkscape:window-height="724"
id="namedview4"
showgrid="false"
showguides="false"
inkscape:guide-bbox="true"
inkscape:zoom="1"
inkscape:cx="317.14771"
inkscape:cy="3.6709797"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg2"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0">
<sodipodi:guide
orientation="0,1"
position="112.99155,51.151509"
id="guide2987" />
<sodipodi:guide
orientation="0,1"
position="173.01689,14.029959"
id="guide2989" />
<sodipodi:guide
orientation="0,1"
position="123.18558,0.032400754"
id="guide2991" />
<sodipodi:guide
orientation="1,0"
position="116.10935,29.079483"
id="guide2993" />
<sodipodi:guide
orientation="1,0"
position="105.17231,27.49584"
id="guide2995" />
<sodipodi:guide
orientation="1,0"
position="101.16372,27.000951"
id="guide2997" />
<sodipodi:guide
orientation="1,0"
position="90.151344,14.309911"
id="guide2999" />
<sodipodi:guide
orientation="0,1"
position="106.75595,46.153135"
id="guide3001" />
<sodipodi:guide
orientation="1,0"
position="75.182075,38.63083"
id="guide3003" />
<sodipodi:guide
orientation="1,0"
position="71.173478,42.540449"
id="guide3005" />
<sodipodi:guide
orientation="1,0"
position="44.103079,48.974"
id="guide3007" />
<sodipodi:guide
orientation="1,0"
position="33.166043,48.924511"
id="guide3009" />
<sodipodi:guide
orientation="1,0"
position="30.147224,48.330645"
id="guide3011" />
<sodipodi:guide
orientation="1,0"
position="19.160699,49.320422"
id="guide3013" />
<sodipodi:guide
orientation="1,0"
position="0.20647049,38.185431"
id="guide3015" />
<sodipodi:guide
orientation="1,0"
position="11.143506,52.933107"
id="guide3017" />
<sodipodi:guide
orientation="1,0"
position="180.1974,26.951462"
id="guide3019" />
<sodipodi:guide
orientation="1,0"
position="148.66114,14.309911"
id="guide3021" />
<sodipodi:guide
orientation="1,0"
position="166.24155,19.874557"
id="guide3023" />
<sodipodi:guide
orientation="1,0"
position="163.12375,21.4582"
id="guide3025" />
<sodipodi:guide
orientation="1,0"
position="212.21669,24.773953"
id="guide3027" />
<sodipodi:guide
orientation="0,1"
position="164.75833,25.228007"
id="guide3029" />
<sodipodi:guide
orientation="0,1"
position="137.04316,40.275384"
id="guide3069" />
<sodipodi:guide
orientation="0,1"
position="165.38822,28.447446"
id="guide3890" />
<sodipodi:guide
orientation="0,1"
position="164.75833,30.897019"
id="guide3892" />
<sodipodi:guide
orientation="0,1"
position="168.9576,34.04647"
id="guide3894" />
</sodipodi:namedview>
<path
style="fill:#000000;fill-opacity:1"
d="m 193.51576,102.57999 -26.0229,-0.19372 c -3.57409,-0.8171 -7.54692,-1.81345 -10.69498,-2.92681 -3.37318,-1.193003 -6.27578,-2.830137 -9.43475,-4.527128 l 2.67844,-4.122745 c 1.47315,-2.26751 3.81519,-5.959 5.20455,-8.20331 l 2.5261,-4.080563 c 3.00692,1.143231 5.80385,3.42969 9.02077,3.42969 5.32123,0 15.96368,0 15.96368,0 l 15.96367,0 0,-36.905207 0,-36.9052045 12.30174,0 12.30173,0 0,2.8388625 0,2.838862 -1.89257,0 -1.89257,0 0,20.976033 0,20.278934 2.09131,0 2.09129,0 c 0,0 1.9006,-5.641958 2.56087,-8.201156 3.11425,-12.071088 16.35199,-20.56215 27.44316,-20.227044 13.66884,0.412989 22.37909,7.685035 27.44319,20.347109 l 3.23197,8.081091 3.51176,0 3.51175,0 -4.56076,-11.735204 -4.56079,-12.116879 4.1039,-3.748626 c 2.25714,-2.061745 6.82949,-5.125736 10.16078,-6.808869 l 6.05688,-3.06024 8.68597,-0.936612 8.68597,0.936612 7.02176,3.583758 c 3.86197,1.97107 8.54355,5.266536 10.40352,7.32326 l 3.38177,3.739498 -3.85491,9.779977 c -2.1202,5.378986 -3.85491,10.600108 -3.85491,11.602487 l 0.13248,1.391003 3.312,0 3.31201,0 4.59897,-7.947428 c 7.15549,-12.365298 12.6069,-20.530857 26.79597,-20.530857 13.52513,0 23.15408,10.688986 26.79598,20.530857 1.30298,3.521139 1.94454,4.531813 1.90404,8.845267 0.48011,7.440544 -2.1958,14.886838 -6.63132,20.205648 -5.60315,6.718966 -14.05908,10.895757 -22.46312,11.047158 -8.3362,0.02193 -15.40752,-5.757548 -22.46312,-10.973981 l -13.25135,0 -13.25134,0 c 0.0786,-0.05517 -5.856,-21.006546 -5.856,-21.176664 0,-2.13433 1.16647,-4.113413 1.94846,-6.099327 1.75289,-5.155966 2.26803,-7.086262 0.0946,-10.502327 0,0 -4.29792,-2.584863 -6.54055,-2.584863 -2.13851,0 -6.60289,2.584863 -6.60289,2.584863 -2.6194,4.069596 -2.02388,6.628336 -0.21776,10.426219 0.77176,2.040506 2.38667,3.880737 2.16734,6.175435 -0.0286,0.298915 -4.66786,21.24984 -4.66786,21.24984 l -13.12785,0 -13.12784,0 c 0,0 -3.97992,2.838862 -5.96988,4.258293 -1.20298,0.858082 -10.49429,5.789857 -16.37905,5.7835 -6.61536,-0.0072 -11.27991,-2.146314 -16.37904,-5.7835 -1.98996,-1.419431 -5.96988,-4.258293 -5.96988,-4.258293 l -5.85871,0 -5.85871,0 0,13.248023 0,13.248028 z m 60.08925,-37.657759 c 6.1655,0.367247 9.47406,-3.363143 9.46287,-8.516586 0.29854,-6.302434 -4.53896,-8.539618 -9.46287,-8.516586 -6.1655,-0.367246 -9.47406,3.363143 -9.46287,8.516586 -0.29854,6.302435 4.53896,8.539619 9.46287,8.516586 z m 117.33963,0 c 6.24624,0.176445 9.15329,-3.901332 9.46287,-8.996543 0.0878,-6.350226 -4.59869,-7.782638 -9.46287,-8.036629 -6.24623,-0.176445 -9.15328,2.941419 -9.46287,8.036629 -0.0878,6.350226 4.59869,8.742552 9.46287,8.996543 z M 10.409161,27.070825 0,27.070825 0,25.937416 C 1.6130007,20.958942 2.0665004,16.38317 5.8601304,12.454603 9.5883294,8.5937958 15.477898,8.1449925 20.818324,8.1449925 l 0,9.4628735 0,9.462871 -10.409163,0 z"
id="lab"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccscsscsccccccccccccccssscccccsscccsscsscccssscsccccsccsccscccssscccccccccccccccccccsccccc" />
<g
id="g3799"
style="fill:#303334"
transform="matrix(1.8925747,0,0,1.8925747,-1.5761273,-1.6151666)">
<path
style="fill:#000000;fill-opacity:1"
d="M 22.25,40.999211 C 8.940907,41.074624 1.1831217,37.195311 0.86755275,24.385165 L 0.84492755,18 6.3630897,18 12,18 l 0,4.345012 c 0.08817,3.571151 0.492258,5.601182 3.526979,7.074354 C 17.030702,30.129351 18.348635,30 20,30 L 20,17.5 20,5 25.5,5 31,5 31,23 31,41 z M 39.5,41 34,41 34,23 34,5 39.5,5 45,5 45,23 45,41 z M 51.666667,40.333333 C 51.380038,37.631373 51.102678,35.423254 51,32.038261 c 3.233406,0.453241 7.30836,1.230725 10.017453,-0.956889 L 57.984772,30.496655 C 52.097986,28.757952 47.00477,23.591813 47.581808,17.61528 49.175691,7.8288362 56.556359,4.9585463 64.647883,5 l 7.304747,0 c 0,0 0.01579,5.33338 0,8 -0.01579,2.666807 0,8 0,8 L 74,21 l 2,0 0,-8 0,-8 6.5,0 6.5,0 0,1.5 0,1.5 -1,0 -1,0 0,12.452947 0,12.452947 c 0,1.920927 -0.986111,3.932295 -2.389371,5.244097 C 82.788708,39.853167 80.036789,40.75433 77.54966,41 L 76,41 l 0,-5 0,-4.918628 -1.814788,0 -2.232582,0 -1.277601,3.473909 C 69.043942,38.990349 65.630679,40.634153 62.064237,41 59.001481,41.314179 52.256326,40.824017 51.666667,40.333333 z M 62,21 l 0,-3 0,-3 c -1.921217,-0.191436 -5.379229,1.190506 -5.244889,3 0.215116,2.897512 2.795617,3 5.244889,3 z M 96.5,41 91,41 91,25.5 91,10 l 5.5,0 5.5,0 0,15.5 0,15.5 z M 96.5,8 91,8 91,6.0714286 91,4.1428571 c 0,0 0.618072,-1.272365 1.291478,-2.0613431 0.480769,-0.5632803 1.851379,-1.2280911 1.851379,-1.2280911 l 3.178572,0 2.473496,0 0,1.9098852 -3.794925,0 0,1.2044677 L 96,5 l 3,0 3,0 0,1.5 0,1.5 z"
id="colors"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccccccccccccccccccccccccsccccccccccccssccccccssccccsccccccccccccccscccccccccccc" />
</g>
</svg>
Also see: Tab Triggers