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 xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="svg2" version="1.1" width="0" height="0"><style>.s0{fill:#000;}</style>
<metadata id="metadata8"/><defs id="defs6"/>
<g id="logo">
<path d="m193.51576 102.57999-26.0229-0.19372c-3.57409-0.8171-7.54692-1.81345-10.69498-2.92681-3.37318-1.193003-6.27578-2.830137-9.43475-4.527128l2.67844-4.122745c1.47315-2.26751 3.81519-5.959 5.20455-8.20331l2.5261-4.080563c3.00692 1.143231 5.80385 3.42969 9.02077 3.42969 5.32123 0 15.96368 0 15.96368 0l15.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 0c0 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.347109l3.23197 8.081091 3.51176 0 3.51175 0-4.56076-11.735204-4.56079-12.116879 4.1039-3.748626c2.25714-2.061745 6.82949-5.125736 10.16078-6.808869l6.05688-3.06024 8.68597-0.936612 8.68597 0.936612 7.02176 3.583758c3.86197 1.97107 8.54355 5.266536 10.40352 7.32326l3.38177 3.739498-3.85491 9.779977c-2.1202 5.378986-3.85491 10.600108-3.85491 11.602487l0.13248 1.391003 3.312 0 3.31201 0 4.59897-7.947428c7.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.973981l-13.25135 0-13.25134 0c0.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.24984l-13.12785 0-13.12784 0c0 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.258293l-5.85871 0-5.85871 0 0 13.248023 0 13.248028zm60.08925-37.657759c6.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.516586zm117.33963 0c6.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.996543zM10.409161 27.070825 0 27.070825 0 25.937416C1.6130007 20.958942 2.0665004 16.38317 5.8601304 12.454603 9.5883294 8.5937958 15.477898 8.1449925 20.818324 8.1449925l0 9.4628735 0 9.462871-10.409163 0z" id="lab" fill="#000"/>
<g id="g3799" transform="matrix(1.8925747,0,0,1.8925747,-1.5761273,-1.6151666)" fill="#303334">
<path d="M22.25 40.999211C8.940907 41.074624 1.1831217 37.195311 0.86755275 24.385165L0.84492755 18 6.3630897 18 12 18l0 4.345012c0.08817 3.571151 0.492258 5.601182 3.526979 7.074354C17.030702 30.129351 18.348635 30 20 30L20 17.5 20 5 25.5 5 31 5 31 23 31 41zM39.5 41 34 41 34 23 34 5 39.5 5 45 5 45 23 45 41zM51.666667 40.333333C51.380038 37.631373 51.102678 35.423254 51 32.038261c3.233406 0.453241 7.30836 1.230725 10.017453-0.956889L57.984772 30.496655C52.097986 28.757952 47.00477 23.591813 47.581808 17.61528 49.175691 7.8288362 56.556359 4.9585463 64.647883 5l7.304747 0c0 0 0.01579 5.33338 0 8-0.01579 2.666807 0 8 0 8L74 21l2 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.452947c0 1.920927-0.986111 3.932295-2.389371 5.244097C82.788708 39.853167 80.036789 40.75433 77.54966 41L76 41l0-5 0-4.918628-1.814788 0-2.232582 0-1.277601 3.473909C69.043942 38.990349 65.630679 40.634153 62.064237 41 59.001481 41.314179 52.256326 40.824017 51.666667 40.333333zM62 21l0-3 0-3c-1.921217-0.191436-5.379229 1.190506-5.244889 3 0.215116 2.897512 2.795617 3 5.244889 3zM96.5 41 91 41 91 25.5 91 10l5.5 0 5.5 0 0 15.5 0 15.5zM96.5 8 91 8 91 6.0714286 91 4.1428571c0 0 0.618072-1.272365 1.291478-2.0613431 0.480769-0.5632803 1.851379-1.2280911 1.851379-1.2280911l3.178572 0 2.473496 0 0 1.9098852-3.794925 0 0 1.2044677L96 5l3 0 3 0 0 1.5 0 1.5z" id="colors" fill="#000"/></g></g>
<filter id='color-shadow' data-iconmelon='filter:d8b3243222f113cd0dd357f0aaed2ee9' color-interpolation-filters="sRGB">
<feComponentTransfer in="SourceGraphic">
<feFuncR type="discrete" tableValues=".5"/>
<feFuncG type="discrete" tableValues=".5"/>
<feFuncB type="discrete" tableValues=".5"/>
</feComponentTransfer>
<feGaussianBlur stdDeviation="1"/>
<feOffset dx="3" dy="3" result="shadow"/>
<feComposite in="SourceGraphic" in2="shadow" operator="over"/>
</filter>
</svg>
<svg width="400" height="102.77374" viewbox="0 0 450 110">
<g filter="url(#color-shadow)">
<use xlink:href="#logo" ></use>
</g>
</svg>
#lab
{
fill:#0088ac;
stroke:#303334;
}
#colors
{
fill:#303334;
}
Also see: Tab Triggers