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.
<html>
<head>
<title>Sample Resume</title>
</head>
<body>
<div>
<h1>Matthew Wilson</h1>
<address>
408 Sandy Lake Dr., Holland, MI 49423<br/>
(200)600-3999, MWilson@gmail.com
</address>
</div>
<h2>Education</h2>
<div>
<div class="DateRange">May 20XX</div>
<p><span class="school">Hope College</span>, Holland MI</p>
<ul>
<li>Bachelor of Arts: Management</li>
<li>Minor: French</li>
<li>G.P.A: 3.7 / 4.0</li>
</ul>
</div>
</div>
<div>
<div class="DateRange">May 20XX</div>
<p><span class="school">Vienna Summer School</span>, Vienna, Austria</p>
<ul>
<li>Studied religion and traveled on weekends to Salzburg, Austria and Prague, Czech Republic</li>
</ul>
</div>
<h2>College Awards</h2>
<ul>
<li>Presidential Scholarship</li>
</ul>
<h2>Marketing & Sales Experience</h2>
<div>
<div class="DateRange">May 20XX-Present</div>
<p><span class="company">Echo Design</span>, Marketing Intern, Holland, MI</p>
<ul>
<li>Update marketing campaign for new product line releasing next season</li>
<li>Design new marketing materials to create interest in new product line</li>
<li>Revise website for company to help customers navigate information and to increase sales by 15%</li>
<li>Create advertising videos to showcase new products and increase engagement with company</li>
</ul>
</div>
<div>
<div class="DateRange">June 20XX-August 20XX</div>
<p><span class="company">Lakewater Industries</span>, Sales and Shipping Intern, Spring Lake, MI</p>
<ul>
<li>Conducted sales calls introducing new products to customers over the phone</li>
<li>Shipped hundreds of orders to customers in a timely fashion</li>
<li>Utilized social media platforms in increase marketing and sales by 22%</li>
</ul>
</div>
<h2>Other Experience</h2>
<div>
<div class="DateRange">June 20XX-August 20XX</div>
<p><span class="company">Bistro 1</span>, Server, Grand Haven, MI</p>
<ul>
<li>Provided customer service to 100-150 clientele per day</li>
<li>Developed multi-tasking and problem solving skills working on a small team of 3</li>
</ul>
</div>
<div>
<div class="DateRange">June 20XX-January 20XX</div>
<p><span class="company">Creative Events</span>, In-shop Personnel, Lansing, MI</p>
<ul>
<li>Prepared food for customers, ensured store cleanliness, and operated the cash register</li>
<li>Worked with individual customers on event planning details and catering requests</li>
<li>Assisted with preparation for catering and events and dining services during events</li>
</ul>
</div>
<h2>College Activities</h2>
<div>
<div class="DateRange">Fall 20XX-Present</div>
<p><span class="organization">Hope College Business Club</span>, President</p>
<ul>
<li>Selected by peers as President for the 2012 – 2013 academic year</li>
<li>Lead a group of 25 peers in the planning and executing of special events</li>
<li>Communicate with faculty and staff regarding campus initiatives and programs</li>
</ul>
</div>
<div>
<div class="DateRange">Spring 20XX-Present</div>
<p><span class="organization">Pan-Hellenic Council</span>, Representative</p>
<ul>
<li>
Nominated and selected to represent the Omicron Kappa Epsilon fraternity on the
governing body for Greek organizations, setting policy for the 8 fraternities through a three year leadership position
</li>
</ul>
</div>
</body>
</html>
body {
max-width: 900px;
}
Also see: Tab Triggers