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.
<!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">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
/>
<meta name="robots" content="noindex, nofollow" />
<style>
a {color: #ffffff;}
</style>
</head>
<body style="background-color: #fff;">
<!-- DO NOT REMOVE -->
<!-- END -->
<table cellspacing="0" cellpadding="0" border="0" style="width:660px; margin:0 auto; background:#191919; color:#fff;">
<tr>
<td colspan="5" align="center" style="padding:5px;font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff;">
<!-- TOKEN FOR LINK TO VIEW EMAIL IN BROWSER -->
<a href="http://www.idevmail.net/message.aspx?d=79&m=12038&e=htmlemail@13prime.com&r=247071165"
style="color: rgb(255, 255, 255);"><font face="Arial, sans-serif" size="1">VIEW IN BROWSER</font>
</a>
<!-- END TOKEN FOR LINK TO VIEW EMAIL IN BROWSER -->
</td>
</tr>
<tr>
<td colspan="1" style="width:135px; padding:10px; background:#2b2b2b; font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff;"
width="135">
<a href="http://www.profootballhof.com/" style="text-decoration:none; text-align:center;">
<img style="outline:0; border:0;" src="http://www.idevmail.net/assets/profootballhof/sitelogo-c.png"
alt="Pro Football Hall of Fame" />
</a>
</td>
<td colspan="4" style="background:#2b2b2b; padding:10px 10px 10px 0; font-family: Arial, Helvetica, sans-serif; font-size: 32px; text-align:right; color: #ffffff;">
<img src="http://www.idevmail.net//assets/profootballhof/email-header-text.png"
alt="PRO FOOTBALL HALL OF FAME ONE STORE. ALL 32 NFL TEAMS." />
</td>
</tr>
<tr>
<td colspan="5">
<table width="100%" style="width:100%; table-layout:fixed;" cellpadding="0" cellspacing="0"
border="0">
<tbody>
<tr>
<td style="background:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size:16px; border-right:1px solid #000000; padding:10px 0; text-align:center; color:#000000;">
<a href="/store/featured-products/hall-of-fame-exclusives/" style="font-weight:bold; color:#000000; text-decoration:none;">HOF EXCLUSIVES</a>
</td>
<td style="background:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size:16px; border-right:1px solid #000000; padding:10px 0; text-align:center; color:#000000">
<a href="/store/type/mens/" style="font-weight:bold; color:#000000; text-decoration:none;">MEN'S</a>
</td>
<td style="background:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size:16px; border-right:1px solid #000000; padding:10px 0; text-align:center; color:#000000">
<a href="/store/type/womens/" style="font-weight:bold; color:#000000; text-decoration:none;">WOMEN'S</a>
</td>
<td style="background:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size:16px; border-right:1px solid #000000; padding:10px 0; text-align:center; color:#000000">
<a href="/store/type/kids/" style="font-weight:bold; color:#000000; text-decoration:none;">KIDS'</a>
</td>
<td style="background:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size:16px; padding:10px 0; text-align:center; color:#000000">
<a href="http://www.profootballhof.com/store/teams/" style="font-weight:bold; color:#000000; text-decoration:none;">SHOP BY TEAM</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="5" style="padding:10px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff;">
<!-- MAIN CONTENT AREA EXAMPLE -->
<!-- This will almost always be dynamic so a ContentRegion is used here as seen
below-->
<!--RegionNameCT_Main-->
<div class="previewportlet">
<div class="module" type="Regular" availrails="1" dbid="" args="7368" mid="21"
name="Content" allowmultiple="False">
<div class="portlet-content" style="position: relative;">
<div class="moduleContent">
<!-- smodule -->
<div class="wysiwyg">
<p>
<a href="http://www.profootballhof.com/store/?idevd=190C8B36284E11E29C9BBDBB6188709B&idevm=dbf6f17485ee4cbabda5451868ab94ba&idevmid=2492085&utm_source=idevmail+store&utm_medium=email&utm_campaign=Store+7.2.18">
<img alt="Monday-Email" height="444" src="http://www.idevmail.net/assets/profootballhof/Monday-Email4.JPG"
width="705" />
</a>
<br />
<br />
<span style="font-size:10px;"><span style="font-family:arial,helvetica,sans-serif;">Oh, Say Can You Save | 25% off + free shipping on all orders! Enter 4JULY18 at checkout. <a href="http://www.profootballhof.com/store/?idevd=190C8B36284E11E29C9BBDBB6188709B&idevm=dbf6f17485ee4cbabda5451868ab94ba&idevmid=2492085&utm_source=idevmail+store&utm_medium=email&utm_campaign=Store+7.2.18">Shop Now!</a><br />
<br />
* Offer ends 7-4-18. Cannot be combined with other offers. Discount not valid on Class of 2018 items. Some restrictions may apply.</span></span>
<br
/> </p>
</div>
<!-- emodule -->
</div>
</div>
</div>
</div>
<!-- END MAIN CONTENT AREA EXAMPLE -->
</td>
</tr>
<tr>
<td colspan="5">
<table style="width:100%; table-layout:fixed;" cellpadding="0" cellspacing="0"
border="0" width="100%">
<tbody>
<tr>
<td style="padding:20px 0; font-family: Arial, Helvetica, sans-serif; text-align:center; font-size: 11px; color: #000000;">
<a href="https://www.facebook.com/ProFootballHOF" style="text-decoration:none;">
<img style="outline:0; border:0;" src="http://www.idevmail.net//assets/profootballhof/facebook.png"
alt="Facebook">
</a>
</td>
<td style="padding:20px 0; font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-align:center; color: #000000;">
<a href="https://twitter.com/profootballhof" style="text-decoration:none;">
<img style="outline:0; border:0;" src="http://www.idevmail.net//assets/profootballhof/twitter.png"
alt="Twitter">
</a>
</td>
<td style="padding:20px 0; font-family: Arial, Helvetica, sans-serif; text-align:center; font-size: 11px; color: #fff;">2121 GEORGE HALAS DR NW
<br/>CANTON, OH 44708
<br/>
<a href="tel:330-456-8207" style="color:#ffffff; text-decoration:none;">330-456-8207</a>
</td>
<td style="padding:20px 0; font-family: Arial, Helvetica, sans-serif; text-align:center; font-size: 11px; color: #000000;">
<a href="https://instagram.com/profootballhof/" style="text-decoration:none;">
<img style="outline:0; border:0;" src="http://www.idevmail.net//assets/profootballhof/instagram-new.png"
alt="Instagram">
</a>
</td>
<td style="padding:20px 0; font-family: Arial, Helvetica, sans-serif; text-align:center; font-size: 11px; color: #000000;">
<a href="https://www.pinterest.com/profootballhof/" style="text-decoration:none;">
<img style="outline:0; border:0;" src="http://www.idevmail.net//assets/profootballhof/pinterest.png"
alt="Pinterest">
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="5" align="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-align:center; color: #ffffff;">
<!-- TOKEN FOR LINK TO UNSUBSCRIBE -->
<a href="http://www.profootballhof.com/service/subscriber-info/?e=htmlemail@13prime.com"
style="color: rgb(255, 255, 255);"><font face="Arial, sans-serif" size="1">UNSUBSCRIBE</font>
</a>
<!-- END TOKEN FOR LINK TO UNSUBSCRIBE -->
<br />
<!-- TOKEN FOR LINK TO FORWARD EMAIL -->
<a href="http://www.idevmail.net/forward.aspx?d=79&m=12038&e=htmlemail@13prime.com"
style="color: rgb(0, 0, 0);"><font face="Arial, sans-serif" size="1">FORWARD TO A FRIEND</font>
</a>
<!-- END TOKEN FOR LINK TO FORWARD EMAIL -->
</td>
</tr>
</table>
<!-- DO NOT REMOVE -->
<img src="http://www.idevmail.net/img.aspx?d=79&mid=2492085&m=12038&r=247071165"
width=1 height=1 border=0>
<!-- END -->
</body>
</html>
Also see: Tab Triggers