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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<head>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
<style type="text/css">
</style>
</head>
<body style="padding:0; margin:0"></body>
<div marginwidth="0" marginheight="0" style="background:#eeeeee;padding:0" bgcolor="#eeeeee">
<table width="100%" cellspacing="0" cellpadding="0" style="background:#eeeeee;line-height:1.5" bgcolor="#eeeeee">
<tbody>
<tr>
<td align="center" style="background:#ebeced 50% 0" bgcolor="#ebeced">
<table width="100%" cellspacing="0" cellpadding="0" style="background:#eeeeee url(https://static.canva.com.s3.amazonaws.com/emails/christmas%203/snowflakes_.gif) repeat-x 0% 0 fixed;color:#eeeeee" bgcolor="#eeeeee">
<tbody>
<tr>
<td>
<table width="550" cellspacing="0" cellpadding="0" style="margin:0 auto;max-width:550px;width:100%">
<tbody>
<tr>
<td width="100%" align="center">
<table width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><span style="color:transparent;display:none!important;min-height:0;max-height:0;max-width:0;overflow:hidden;width:0">Get festive and join our Christmas competition! Upload your designs to any (or all!) of your social media accounts with the tag #createwithcanva for your chance to be showcased to <strong>more than a million people.</strong></span></td>
</tr>
<tr>
<td style="padding-top:0.5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center" valign="bottom">
<a href="https://www.canva.com/" style="color:#ffffff;display:block" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/christmas%203/canvaxmaslogo-01.png" alt="" style="color:#ffffff;display:block;font-family:Verdana,sans-serif;font-size:16px;max-width:90%;padding-top:7px" border="0"></a>
</td>
</tr>
<tr>
<td>
<table width="550" cellspacing="0" cellpadding="0" style="background:#ffffff;border-radius:8px;margin:0 auto;max-width:550px;width:100%" bgcolor="#ffffff">
<tbody>
<tr>
<td align="center" valign="bottom">
<a href="https://www.canva.com/" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/christmas%203/canvaxmaslogo-02.png" alt="" style="max-width:90%" border="0"></a>
</td>
</tr>
<tr>
<td style="padding-top:1.5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td style="color:#3f4652;font-family:'Open Sans',Arial,sans-serif;font-size:42px;font-weight:100;line-height:52px;padding-left:35px;padding-right:35px;text-align:center" align="center"><font face="'Open Sans', sans-serif">Show us your designs and get featured</font></td>
</tr>
<tr>
<td style="padding-top:2.7em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center" style="max-width:550px">
<a href="https://www.canva.com/design/" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/christmas%203/christmasheader1.png" alt="image" width="100%" style="display:block" border="0"></a>
</td>
</tr>
<tr>
<td style="padding-top:2em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td style="color:#3f4652;font-family:'Open Sans',sans-serif;font-size:18px;font-weight:100;line-height:30px;padding-left:35px;padding-right:35px;text-align:center" align="center"><font face="'Open Sans', sans-serif">Get festive and join our Christmas competition! Upload your designs to any (or all!) of your social media accounts with the tag #createwithcanva for your chance to be showcased to <strong>more than a million people</strong>.</font></td>
</tr>
<tr>
<td style="padding-top:1.5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center">
<a href="https://www.canva.com/design/" style="text-decoration:none" target="_blank"></a>
<table height="43" cellspacing="0" cellpadding="0" style="text-align:center">
<tbody>
<tr>
<td height="45" align="center" bgcolor="#95c31e" style="background:#95c31e repeat-x;border-radius:5px;padding-left:2.8em;padding-right:2.8em"><font face="'Open Sans', sans-serif" style="display:block;font-size:16px;font-weight:600"><a href="https://www.canva.com/design/" style="color:#ffffff;display:block;min-height:43px;line-height:43px;overflow:hidden;text-decoration:none" target="_blank">Create a festive design</a></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding-top:2.5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center" style="max-width:550px">
<a href="https://www.canva.com/design/" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/christmas%203/christmaswithcanva2.png" alt="image" width="100%" style="display:block" border="0"></a>
</td>
</tr>
<tr>
<td style="padding-top:2em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td style="color:#3f4652;font-family:'Open Sans',sans-serif;font-size:17px;font-weight:100;line-height:30px;padding-left:35px;padding-right:35px;text-align:center" align="center"><font face="'Open Sans', sans-serif">Next week, we will be promoting one design per day on each of our social media platforms. So too will our chief evangelist Guy Kawasaki. Winners announced daily from 14th – 19th December.</font></td>
</tr>
<tr>
<td style="padding-top:1.5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center">
<a href="https://www.canva.com/design/" style="text-decoration:none" target="_blank"></a>
<table height="43" cellspacing="0" cellpadding="0" style="text-align:center">
<tbody>
<tr>
<td height="45" align="center" bgcolor="#95c31e" style="background:#95c31e repeat-x;border-radius:5px;padding-left:2.8em;padding-right:2.8em"><font face="'Open Sans', sans-serif" style="display:block;font-size:16px;font-weight:600"><a href="https://www.canva.com/design/" style="color:#ffffff;display:block;min-height:43px;line-height:43px;overflow:hidden;text-decoration:none" target="_blank">Start designing</a></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding-top:0.5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center" style="max-width:550px">
<a href="https://www.canva.com/design/" style="text-decoration:none" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/christmas%203/merrychristmas2015.png" alt="image" width="100%" style="display:block" border="0"></a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding-top:2.1em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td align="center" style="font-family:'Open Sans',sans-serif;font-size:14px;font-weight:100;line-height:12px">
<p style="display:inline-block;margin:0em;padding-bottom:0.5em;padding-right:1.5em">
<a href="https://www.facebook.com/canva?utm_campaign=Christmas%20Competition%202015&utm_content=a&utm_medium=email&utm_source=vero&utm_term=Newsletter&vero_conv=NyWhOXzGZcqwnLGpJKAeYAfXUX_hJm1pzDJ7Zo2g_R7UTVrG4tCQpsLLUDCFkWICsY0G3lDB0OZeVdEe8tlRuspI33gDM2c%3D&vero_id=uabyslximog"
style="color:#848991;margin:none;text-align:center;text-decoration:none" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/footer/facebook-icon.png" width="20px" border="0">
<br>
<br><font face="'Open Sans', sans-serif">Facebook</font></a>
</p>
<p style="display:inline-block;margin:0em;padding-bottom:0.5em;padding-left:1.5em;padding-right:1.5em">
<a href="https://twitter.com/canva?utm_campaign=Christmas%20Competition%202015&utm_content=a&utm_medium=email&utm_source=vero&utm_term=Newsletter&vero_conv=NyWhOXzGZcqwnLGpJKAeYAfXUX_hJm1pzDJ7Zo2g_R7UTVrG4tCQpsLLUDCFkWICsY0G3lDB0OZeVdEe8tlRuspI33gDM2c%3D&vero_id=uabyslximog"
style="color:#848991;margin:none;text-align:center;text-decoration:none" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/footer/twitter-icon.png" width="20px" border="0">
<br>
<br> <font face="'Open Sans', sans-serif">Twitter</font></a>
</p>
<p style="display:inline-block;margin:0em;padding-bottom:0.5em;padding-left:1.5em;padding-right:1.5em">
<a href="https://www.instagram.com/canva/?utm_campaign=Christmas+Competition+2015&utm_content=a&utm_medium=email&utm_source=vero&utm_term=Newsletter&vero_conv=NyWhOXzGZcqwnLGpJKAeYAfXUX_hJm1pzDJ7Zo2g_R7UTVrG4tCQpsLLUDCFkWICsY0G3lDB0OZeVdEe8tlRuspI33gDM2c%3D&vero_id=uabyslximog"
style="color:#848991;margin:none;text-align:center;text-decoration:none" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/footer/instagram-icon.png" width="20px" border="0">
<br>
<br> <font face="'Open Sans', sans-serif">Instagram</font></a>
</p>
<p style="display:inline-block;margin:0em;padding-bottom:0.5em;padding-left:1.5em">
<a href="https://www.pinterest.com/canva/?utm_campaign=Christmas+Competition+2015&utm_content=a&utm_medium=email&utm_source=vero&utm_term=Newsletter&vero_conv=NyWhOXzGZcqwnLGpJKAeYAfXUX_hJm1pzDJ7Zo2g_R7UTVrG4tCQpsLLUDCFkWICsY0G3lDB0OZeVdEe8tlRuspI33gDM2c%3D&vero_id=uabyslximog"
style="color:#848991;margin:none;text-align:center;text-decoration:none" target="_blank"><img src="https://static.canva.com.s3.amazonaws.com/emails/footer/pinterest-icon.png" width="20px" border="0">
<br>
<br> <font face="'Open Sans', sans-serif">Pinterest</font></a>
</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="100%" cellspacing="0" cellpadding="0" style="max-width:380px">
<tbody>
<tr>
<td style="padding-top:1.3em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
<tr>
<td style="color:#8c9097;font-family:'Open Sans',sans-serif;font-size:12px;font-weight:100;padding-left:3px;padding-right:3px;text-align:center" align="center"><font face="'Open Sans', sans-serif">You are receiving this email because you signed up to Canva. <a style="color:#8c9097" href="https://app.getvero.com/unsubscribe/#" target="_blank">Unsubscribe</a> from this list.</font></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding-top:5em"><img src="https://s3.amazonaws.com/static.canva.com/emails/spacer.gif" width="1" height="1" style="display:block" border="0"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table><img width="1px" height="1px" alt="" src="http://email.canva.com/o/eJylUMtuwyAQ_Jr4ghIBNiU5-NCmUg6V-gvWGpaYxIAFJFH-vsFSG1fqrbfVzuw8VoGbwB79SrxFVHay6HOngwP7WL23x8cwblRwlXoSsSy7dOlPqHJhHTATg5AvETXp72QP_goEvCaHy518wA0SnC3Jg01kP0SbsoNEKt1yhdKYpfYVooVsw-z-WtmWUyYYZ4y91EzQjRBUbHgjWbNqqCo-c7qhlXUv-a7WvK93qIQ20uDW1DsumWEMsYqts2f0OKbgKXtc_9nt_60WYt9jZ3URlDWlfIlPMRSzzoPDQpgdloR8n2bgE29pxJwx_kLRTSNkfN7_pNgHN2G25ZGkfLDK7RVjWM8R1tumabZfH7iqHQ"></div>
Also see: Tab Triggers