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"?> <svg width="104px" height="104px" viewBox="0 0 104 104" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: sketchtool 62 (101010) - https://sketch.com -->
<title>A47FCF76-72B5-47B1-B438-A9EC3CCAB0C0@1.00x</title>
<desc>Created with sketchtool.</desc>
<defs>
<filter x="-28.8%" y="-28.8%" width="157.5%" height="157.5%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="6" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
<feMerge>
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
</defs>
<g id="Lead-Gen-Services-Landing-Page" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Lead-Gen-Services-Landing-Page---Desktop---Floater" transform="translate(-1328.000000, -938.000000)">
<g id="Chat-Bubble" transform="translate(1340.000000, 950.000000)">
<g filter="url(#filter-1)">
<g id="Group-3" fill="#0060C4">
<g id="Group-27">
<circle id="Oval" cx="40" cy="40" r="40"></circle>
</g>
</g>
<g id="Group-2" transform="translate(19.469697, 19.525253)">
<g id="Group-Copy">
<path d="M20.629625,38.0153621 C30.4527432,38.0153621 38.4159539,30.1593485 38.4159539,20.4684645 C38.4159539,10.7775806 30.4527432,2.921567 20.629625,2.921567 C10.8065068,2.921567 2.84329606,10.7775806 2.84329606,20.4684645 C2.84329606,25.2065879 1.23163919,33.6396829 4.32549014,36.7968275 C7.55949264,40.0969909 15.6092829,38.0153621 20.629625,38.0153621 Z" id="Oval-Copy-10" fill="#FFFFFF"></path>
<path d="M35.1839473,6.11006574 C28.2160747,-0.80889235 16.9637374,-2.05141961 8.77207236,3.40898082 C6.83111471,4.70278445 5.20573922,6.28518742 3.90733833,8.0659698 C-0.274063611,13.8008449 -1.06436844,21.5931393 1.91692477,28.4295569 C2.11432506,28.8332235 2.17909462,29.2876069 2.10219903,29.7293271 L0.0435961445,38.3403046 C-0.0981820342,39.0093651 0.110702569,39.7039064 0.599418923,40.1884154 C0.99795023,40.5787304 1.54081291,40.7914851 2.10219903,40.7773737 C2.47645644,40.7679662 5.55063674,40.1857774 11.3247399,39.0308075 C11.7725475,38.9776921 12.2958842,38.6095955 12.7245899,38.7464828 C21.9471308,41.6912747 32.7342099,38.0153621 36.4396951,32.4101032 C40.1451803,26.8048442 42.15182,13.0290238 35.1839473,6.11006574 Z M29.7698218,35.3345861 C25.353302,37.7428556 18.8574144,37.7543071 14.206784,35.8219999 C13.3926955,35.4803854 12.5181756,35.3009339 11.6335304,35.2939683 C11.2470886,35.296637 10.8615211,35.3305993 10.4807128,35.3955128 L4.71662469,36.1672514 L5.56065187,30.4604479 C5.79435472,29.2201295 5.64370084,27.9391163 5.12834526,26.7845353 C3.16967127,22.1965095 3.78062689,16.9555241 6.22175781,12.5984575 C8.66288873,8.24139091 12.9940901,5.22891956 17.9740272,4.42442628 C23.2082131,3.576967 28.5357486,4.78105166 32.28639,8.48120369 C36.0370314,12.1813557 38.0398152,17.9855149 37.1807921,23.1492406 C36.3217691,28.3129662 34.1863415,32.9263165 29.7698218,35.3345861 Z" id="Shape-Copy-3" fill="#163045" fill-rule="nonzero"></path>
</g>
<path d="M13.6474031,14.3888635 L29.0192268,14.6348127 C29.6568223,14.6450142 30.1683502,15.164792 30.1683502,15.8024691 C30.1683502,16.4369023 29.6547466,16.9515848 29.0203149,16.952932 C26.7693761,16.9576556 24.6545378,16.9764126 22.6758001,17.0092031 C20.6077132,17.0434743 17.5980547,17.1084043 13.6468245,17.2039933 C12.8727917,17.2227042 12.2301345,16.6104071 12.2114089,15.8363747 C12.2111356,15.8250749 12.2109989,15.8137722 12.2109989,15.8024691 C12.2109989,15.0216564 12.8439727,14.3886826 13.6247854,14.3886826 C13.632325,14.3886826 13.6398645,14.3887429 13.6474031,14.3888635 Z" id="Rectangle" fill="#163045"></path>
<path d="M13.647587,20.1122334 L22.9820671,20.1122334 C23.9420059,20.1122334 24.8130448,20.6742137 25.2087008,21.5488215 C25.4402712,22.0607141 25.2130252,22.6634099 24.7011327,22.8949804 C24.5693831,22.9545814 24.426441,22.9854097 24.2818373,22.9854097 L13.647587,22.9854097 C12.8541813,22.9854097 12.2109989,22.3422273 12.2109989,21.5488215 C12.2109989,20.7554158 12.8541813,20.1122334 13.647587,20.1122334 Z" id="Rectangle-Copy" fill="#163045"></path>
<path d="M13.2109989,25.8585859 L27.5715651,25.8585859 C28.1298496,25.8585859 28.5824287,26.3111649 28.5824287,26.8694495 C28.5824287,26.9157487 28.5792478,26.9619932 28.5729086,27.0078563 C28.4810734,27.6722637 27.9248897,28.1744749 27.254587,28.1982469 L13.6466844,28.680846 C12.8813989,28.7079866 12.2390106,28.1096018 12.21187,27.3443163 C12.2112893,27.327942 12.2109989,27.3115586 12.2109989,27.295174 L12.2109989,26.8585859 C12.2109989,26.3063011 12.6587141,25.8585859 13.2109989,25.8585859 Z" id="Rectangle-Copy-2" fill="#163045"></path>
</g>
</g>
</g>
</g>
</g>
</svg>
Also see: Tab Triggers