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 URL's 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 it's URL and the proper URL extention.
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.
<!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" lang="en" xml:lang="en" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
<!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="date=no" />
<meta name="format-detection" content="address=no" />
<meta name="format-detection" content="email=no" />
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,900" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rokkitt:700" rel="stylesheet">
<!--[if (gte mso 9)|(IE)]>
<style type="text/css">
table {border-collapse:collapse;}
</style>
<![endif]-->
<style type="text/css">
/* Basics */
body {
margin:0 !important;
padding:0;
background-color:#000000;
}
table {
border-spacing:0;
mso-table-lspace:0pt;
mso-table-rspace:0pt;
margin:0;
padding:0;
border:none;
}
td {
padding:0;
}
img {
border:0;
display:block;
-ms-interpolation-mode:bicubic;
outline:none;
}
div[style*="margin:16px 0"] {
margin:0 !important;
}
a[x-apple-data-detectors] {
color:inherit !important;
text-decoration:none !important;
font-size:inherit !important;
font-family:inherit !important;
font-weight:inherit !important;
line-height:inherit !important;
}
.ReadMsgBody {
width:100%;
}
.ExternalClass {
mso-line-height-rule:exactly;
line-height:100%;
width:100%;
}
* {
-webkit-text-size-adjust:none;
-ms-text-size-adjust:none;
}
#cta_01:hover {
background-color:#B20710 !important;
transition:0.2s;
}
@media only screen and (max-width:500px) {
html, body, th {
-webkit-text-size-adjust:none;
}
div[class="body"] .fontsize24px {
font-size:24px !important;
}
div[class="body"] .lineheight28px {
line-height:28px !important;
}
div[class="body"] .fontsize60px {
font-size:60px !important;
}
div[class="body"] .lineheight60px {
line-height:60px !important;
}
div[class="body"] .fontsize17px {
font-size:17px !important;
}
div[class="body"] .lineheight21px {
line-height:21px !important;
}
}
@media only screen and (max-width:400px) {
html, body, th {
-webkit-text-size-adjust:none;
}
div[class="body"] .fontsize24px {
font-size:20px !important;
}
div[class="body"] .lineheight28px {
line-height:24px !important;
}
div[class="body"] .fontsize60px {
font-size:50px !important;
}
div[class="body"] .lineheight60px {
line-height:50px !important;
}
div[class="body"] .fontsize17px {
font-size:13px !important;
}
div[class="body"] .lineheight21px {
line-height:17px !important;
}
}
[style*="Roboto"] {
font-family: 'Roboto', Arial, sans-serif !important
}
[style*="Rokkitt"] {
font-family: 'Rokkitt', Arial, sans-serif !important
}
</style>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->
<!--[if mso]><xml xmlns:w="urn:schemas-microsoft-com:office:word"><w:WordDocument><w:AutoHyphenation/></w:WordDocument></xml><![endif]-->
</head>
<body bgcolor="#000000" style="margin:0px; padding:0px; background-color:#000000;">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" style="width:100%; padding:0px; margin:0px;" bgcolor="#000000"><div class="body">
<table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="center" style="text-align:center;"><center style="width:100%; table-layout:fixed; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0 auto;">
<div style="max-width:500px; margin:0 auto;">
<table align="center" cellpadding="0" cellspacing="0" border="0" style="max-width:500px; width:100%; margin:0px auto;">
<tr>
<td><!--[if (gte mso 9)|(IE)]><table cellpadding="0" cellspacing="0" border="0" width="500" style="width:500px; margin:0px auto;" align="center"><tr><td align="center"><![endif]-->
<div style="width:100%;">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="width:100%; margin:0px auto;" align="center">
<tr>
<td align="center" style="padding:40px 0 10px;"><a href="#toreplace" target="_blank"><img src="https://test.badsender.com/images_hebergees_tests/netflix/20181024_email_01/netflix.png" alt="NETFLIX" width="150" height="40" border="0" style="display:block; margin:0px auto; color:#E50912; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:20px;" title="NETFLIX" /></a></td>
</tr>
<tr>
<td align="center" style="font-family:Arial, Helvetica, sans-serif, 'Roboto'; color:#FFFFFF; font-size:12px; text-align:center; font-weight:500; mso-line-height-rule:exactly; line-height:16px; padding-bottom:20px;"><a href="#toreplace" target="_blank" style="color:#FFFFFF; text-decoration:none;">A NETFLIX ORIGINAL SERIES</a></td>
</tr>
<tr>
<td align="center" style="font-size:300px; font-family:Arial Black, Helvetica, sans-serif; font-weight:900; color:#FDDFF2;
text-shadow:#FFFFFF 0px 0px 1px, #FFFFFF 0px 0px 2px, #FFFFFF 0px 0px 3px, #FFFFFF 0px 0px 4px, #FFFFFF 0px 0px 5px, #BAB8FB 0px 0px 6px, #BAB8FB 0px 0px 7px, #BAB8FB 0px 0px 8px, #BAB8FB 0px 0px 9px, #BAB8FB 0px 0px 10px, #BAB8FB 0px 0px 11px, #BAB8FB 0px 0px 12px, #BAB8FB 0px 0px 13px, #BAB8FB 0px 0px 14px, #BAB8FB 0px 0px 15px, #BAB8FB 0px 0px 16px, #BAB8FB 0px 0px 17px, #BAB8FB 0px 0px 18px, #BAB8FB 0px 0px 19px, #BAB8FB 0px 0px 20px, #BAB8FB 0px 0px 21px, #BAB8FB 0px 0px 22px, #BAB8FB 0px 0px 23px, #BAB8FB 0px 0px 24px, #BAB8FB 0px 0px 25px, #BAB8FB 0px 0px 26px, #BAB8FB 0px 0px 27px, #BAB8FB 0px 0px 28px, #BAB8FB 0px 0px 29px, #BAB8FB 0px 0px 30px, #EEFFFF 0px 0px 31px, #EEFFFF 0px 0px 32px, #EEFFFF 0px 0px 33px, #EEFFFF 0px 0px 34px, #EEFFFF 0px 0px 35px, #EEFFFF 0px 0px 36px, #EEFFFF 0px 0px 37px, #EEFFFF 0px 0px 38px, #EEFFFF 0px 0px 39px, #EEFFFF 0px 0px 40px, #679BF0 0px 0px 41px, #679BF0 0px 0px 42px, #679BF0 0px 0px 43px, #679BF0 0px 0px 44px, #679BF0 0px 0px 45px, #679BF0 0px 0px 46px, #679BF0 0px 0px 47px, #679BF0 0px 0px 48px, #679BF0 0px 0px 49px, #679BF0 0px 0px 50px; background:radial-gradient(black 5%, transparent 16%) 0 0, radial-gradient(black 5%, transparent 16%) 8px 8px, radial-gradient(rgba(255,255,255,.1) 5%, transparent 20%) 0 1px, radial-gradient(rgba(255,255,255,.1) 5%, transparent 20%) 8px 9px; background-color:#00000; background-size:16px 16px; padding:50px 0;">A</td>
</tr>
<tr>
<td style="padding-top:30px;"><div style="height:80px;">
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:80px; margin-top:0px; margin-left:0px; display:inline-block; text-align:center; font-family:'Times New Roman', Times, serif, 'Rokkitt'; color:#FFFFFF; font-size:90px; letter-spacing:-4px;"><a href="#toreplace" target="_blank" style="color:#FFFFFF; text-decoration:none;">MANIAC</a></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:20px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:28px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:36px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:44px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:52px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:60px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:68px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
<div style="max-height:0; overflow:visible; margin-left:0px; margin:0px auto; width:350px;">
<div style="width:350px; height:3px; margin-top:76px; margin-left:0px; display:inline-block; line-height:3px; background:#000000;"></div>
</div>
</div></td>
</tr>
<tr>
<td align="center" style="font-family:Arial, Helvetica, sans-serif, 'Roboto'; color:#FFFFFF; font-size:18px; text-align:center; mso-line-height-rule:exactly; line-height:22px; font-weight:900; padding-top:30px;"><a href="#toreplace" target="_blank" style="color:#FFFFFF; text-decoration:none;">ALL EPISODES</a></td>
</tr>
<tr>
<td align="center" style="font-family:Arial, Helvetica, sans-serif, 'Roboto'; color:#FFFFFF; font-size:18px; text-align:center; mso-line-height-rule:exactly; line-height:22px; font-weight:500; padding-bottom:30px;"><a href="#toreplace" target="_blank" style="color:#FFFFFF; text-decoration:none;">October 31<sup style="font-size:12px; line-height:0; vertical-align:6px;">st</sup></a></td>
</tr>
<tr>
<td align="center" style="padding-bottom:60px;"><div style="margin:0px auto;"><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href="http://#toreplace" style="height:50px;v-text-anchor:middle;width:160px;" arcsize="10%" strokecolor="#E50912" fillcolor="#E50912">
<w:anchorlock/>
<center style="color:#ffffff;font-family:Arial, Helvetica, sans-serif, 'Roboto';font-size:16px;font-weight:900;">PLAY TRAILER</center>
</v:roundrect>
<![endif]--><a target="_blank" href="http://#toreplace"
style="background-color:#E50912;border:1px solid #E50912;border-radius:5px;color:#ffffff;display:inline-block;font-family:Arial, Helvetica, sans-serif, 'Roboto';font-size:16px;font-weight:900;line-height:50px;text-align:center;text-decoration:none;width:160px;-webkit-text-size-adjust:none;mso-hide:all;" id="cta_01">PLAY TRAILER</a></div></td>
</tr>
<tr>
<td align="center" style="padding-bottom:25px;"><table border="0" cellspacing="0" cellpadding="0" align="center" style="margin:0px auto;">
<tr>
<td valign="middle" style="font-family:Arial, Helvetica, sans-serif, 'Roboto'; color:#FFFFFF; font-size:18px; mso-line-height-rule:exactly; font-weight:500;"><a href="#toreplace" target="_blank" style="color:#FFFFFF; text-decoration:none;">View All TV Shows & Movies </a></td>
<td valign="middle" style="vertical-align:middle;"><a href="#toreplace" target="_blank"><img src="https://test.badsender.com/images_hebergees_tests/netflix/20181024_email_01/icon_01.png" alt="The Haunting of Hill House" width="27" height="27" border="0" style="display:block;" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%; margin:0px auto;" align="center">
<tr>
<td style="background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzZlNmU2ZSIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzZlNmU2ZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM2ZTZlNmUiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(left, rgba(110,110,110,0) 0%, rgba(110,110,110,1) 50%, rgba(110,110,110,0) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(110,110,110,0)), color-stop(50%,rgba(110,110,110,1)), color-stop(100%,rgba(110,110,110,0)));
background: -webkit-linear-gradient(left, rgba(110,110,110,0) 0%,rgba(110,110,110,1) 50%,rgba(110,110,110,0) 100%);
background: -o-linear-gradient(left, rgba(110,110,110,0) 0%,rgba(110,110,110,1) 50%,rgba(110,110,110,0) 100%);
background: -ms-linear-gradient(left, rgba(110,110,110,0) 0%,rgba(110,110,110,1) 50%,rgba(110,110,110,0) 100%);
background: linear-gradient(to right, rgba(110,110,110,0) 0%,rgba(110,110,110,1) 50%,rgba(110,110,110,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#006e6e6e', endColorstr='#006e6e6e',GradientType=1 ); line-height:1px; font-size:1px; height:1px;" height="1"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" style="font-family:Arial, Helvetica, sans-serif; color:#6e6e6e; font-size:14px; mso-line-height-rule:exactly; line-height:18px; text-align:center; padding:30px 0 10px;">Questions? Call <a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:none;">0800-724-0697</a></td>
</tr>
<tr>
<td align="center"><table cellpadding="0" cellspacing="0" border="0" width="100%" style="width:100%; margin:0px auto;" align="center">
<tr>
<td align="left" style="font-family:Arial, Helvetica, sans-serif; color:#6e6e6e; font-size:12px; mso-line-height-rule:exactly; line-height:18px; text-align:left; padding:0 40px 30px;">This informational email has been sent to you as part of your Netflix membership. If you would like to stop receiving these emails, please <a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:underline;">click here to unsubscribe</a>, or visit the <a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:underline;">Communication Settings page</a>, uncheck the <span style="font-weight:bold;">Now on Netflix</span> box, and click "Update." Please do not reply to this email, as we are unable to respond from this email address. If you need help or would like to contact us, please visit our <a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:underline;">Help Center</a>.<br />
<br />
This message was mailed to [<a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:none;">hello@SmilesDavis.yeah</a>] by Netflix.<br />
SRC: 11893_en_DE<br />
Use of the Netflix service and website is subject to our <a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:underline;">Terms of Use</a> and <a href="#toreplace" target="_blank" style="color:#6e6e6e; text-decoration:underline;">Privacy Statement</a>.<br />
Netflix International B.V.</td>
</tr>
</table></td>
</tr>
</table>
</div>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]--></td>
</tr>
</table>
</div>
</center></td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>
Also see: Tab Triggers