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.
<body style="color:#394e5b; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-family:Arial, Helvetica, sans-serif; line-height:1.5;">
<p><span style="font-weight:700;font-size:24px;"> Employee Name </span><span style="font-size: 16.5px; font-weight:700">(She / Her)</span><br class="Apple-interchange-newline"><span style="font-size:18px;font-weight:700;">Job Title</span><br class="Apple-interchange-newline"><span style="font-size:15px;">Phone: <a style="color:#ac006e;" href="tel:15555555555"><span> 555-555-5555</span></a> <span aria-hidden="true">| </span><a style="color:#ac006e;" href="https://www.website.com/">website.com</a></span><br class="Apple-interchange-newline"><span style="font-size:14px;">2 Canal Park, Cambridge, MA 02141</span>
</p>
<a href="https://meetingslink.com" style=" max-width:220px; display: block; padding: .65em 1em; margin: 1em 0; text-align: center; text-decoration:underline; color: white; background-color: #ac006e;">Book a Meeting With Me</a>
<table width="350" border="0" cellspacing="0" cellpadding="0" role="presentation">
<tr>
<td width="200" height="60"><a href="http://www.website.com/">
<img src="https://hyphadev.io/hubfs/EmailSig/Icons-new/Your%20Logo%20Here.png" width="175" height="51" alt="A Magenta swirl with text that reads 'Your Logo Here'"/>
</a></td>
<td width="40">
<a href="https://www.facebook.com"><img src="https://hyphadev.io/hubfs/EmailSig/Icons-new/Facebook%20Icon.png" alt="Facebook Icon" width="28" height="36" /></a>
</td>
<td width="40">
<a href="https://www.linkedin.com/"><img src="https://hyphadev.io/hubfs/EmailSig/Icons-new/LinkedIn%20Icon.png" alt="LinkedIn Icon" width="28" height="36" /></a>
</td>
<td width="40">
<a href="https://www.instagram.com/"><img src="https://hyphadev.io/hubfs/EmailSig/Icons-new/Instagram%20Icon.png" alt="Instagram Icon" width="28" height="36" /></a>
</td>
<td width="40">
<a href="https://twitter.com"><img src="https://hyphadev.io/hubfs/EmailSig/Icons-new/Twitter%20Icon.png" alt="Twitter Icon" width="28" height="36" /></a>
</td>
<td width="40">
<a href="https://open.spotify.com/"><img src="https://hyphadev.io/hubfs/EmailSig/Icons-new/Microphone%20Icon.png" alt="Podcast Microphone Icon" width="28" height="36" /></a>
</td>
</tr>
</table>
</body>
/*
Email Signature Instructions for Mac, Windows, Google and HubSpot.
Please copy the html to the left or the preview below, depending on where you are pasting the signature. Each platform has its own set of instructions below.
For Mac Mail:
1. Open Mail > Preferences > Signatures. Click the + symbol to add a new one.
2. In the box, hit Command + V to paste the signature. You might see empty boxes where images should be.
3. Close Preferences, open a new email, and select your new signature. Everything should look as it does in browser. You're done!
For Windows Outlook:
1. In Outlook, go to File > Options > Mail > Signatures.
2. In the box provided, hit Control + V to paste. You might see empty boxes where images should be.
3. Close Preferences, open a new email, and select your new signature. Everything should look as it does in browser. You're done!
For Gmail in browser:
1. Go to your Gmail account and click the Settings gear icon in the top right corner.
2. Scroll down to Signature where you'll see a radio button and empty text area. Click the radio button to turn on a signature, then hit Control + V to paste.
3. At the bottom of the page, click "Save Changes" and you're done!
In Hubspot for use with the CRM:
1. When logged into Hubspot, click your profile icon in the upper right-hand corner of the admin toolbar, then click "Profile and Preferences."
2. Under "CRM Communication," click the "Edit Signature" button.
3. In the modal pop-up, toggle from "Simple" to "HTML" view.
4. In the top box, hit Control + V to paste. The Preview box below will ensure the HTML structure has not been modified.
5. Hit the Save button and you're done!
//
You may want to use this signature on your phone if you connect your email there as well.
*/
Also see: Tab Triggers