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.
<div class="container-fluid">
<main>
<div class="jumbotron">
<div class="page-header">
<h1 class="text-center">Cherry Suede</h1>
<h2 class="text-center"><em>An independent rock band from Canada</em></h2>
</div>
<figure class="thumbnail center-block">
<img src="https://www.destin8.com/~freeCodeCamp/project1/pix/cherry-suede-london-2014.jpg" alt="Cherry Suede on stage." class="img-responsive img-rounded">
<figcaption class="caption text-center">
Randy Scott (left) and Randy Young (right) of Cherry Suede, performing live on stage in London, UK, during the summer of 2014.
</figcaption>
</figure>
<div id="main">
<p class="lead">
Cherry Suede are an independent rock band from Canada, founded in 1999 by Randy Scott (lead vocals/guitar) and Randy Young (lead guitar/vocals). A brief time line is below:
</p>
<ul>
<li><strong>1999</strong> — Cherry Suede formed in Montreal, Canada.</li>
<li><strong>2006</strong> — first studio album titled “Cherry Suede” released.</li>
<li><strong>2009</strong> — first studio album re-released with two extra tracks, and with a new title of “Long Live Rock”.</li>
<li><strong>2010</strong> — Cherry Suede opened for Rick Springfield in Montreal, Canada (September 24th).</li>
<li><strong>2011</strong> — acoustic album titled “UK 2011” released (April 28th).</li>
<li><strong>2011</strong> — first UK tour (April-May).</li>
<li><strong>2011</strong> — acoustic album re-released with a new title of “USA & Canada 2011” (August 4th).</li>
<li><strong>2011</strong> — USA tour (August).</li>
<li><strong>2011</strong> — Canada tour (September-October).</li>
<li><strong>2012</strong> — Canada tour (March-April).</li>
<li><strong>2012</strong> — first Indiegogo campaign launched (May 31st).</li>
<li><strong>2013</strong> — second studio album titled “Between Here And There” released (March 14th).</li>
<li><strong>2013</strong> — second UK tour (March).</li>
<li><strong>2013</strong> — select songs from second studio album completely re-mixed, and released as an EP under the title of “Cellar Sessions Vol. 1” (September 9th).</li>
<li><strong>2013</strong> — third UK tour (September-October).</li>
<li><strong>2013</strong> — second Indiegogo campaign launched (November 1st).</li>
<li><strong>2013</strong> — Canada tour (November).</li>
<li><strong>2013</strong> — remaining songs from second studio album completely re-mixed, and released as an EP under the title of “Cellar Sessions Vol. 2” (November 27th).</li>
<li><strong>2014</strong> — USA tour (February).</li>
<li><strong>2014</strong> — fourth UK tour (April-June).</li>
<li><strong>2014</strong> — USA & Canada tour (August-September).</li>
<li><strong>2014</strong> — fifth UK tour (October-November).</li>
<li><strong>2015</strong> — USA tour (February).</li>
<li><strong>2015</strong> — Canada tour (March-April).</li>
<li><strong>2015</strong> — USA tour (May-June).</li>
<li><strong>2015</strong> — live acoustic CD/DVD album “Up Close and Personal” released (August).</li>
<li><strong>2015</strong> — sixth UK tour (September).</li>
<li><strong>2016</strong> — seventh UK tour (February-April).</li>
<li><strong>2016</strong> — eighth UK tour (July-September).</li>
<li><strong>2017</strong> — the two “Cellar Sessions” EPs combined into a single album and re-released as “Between Here And There: The Cellar Sessions” (January).</li>
</ul>
<p>
Cherry Suede will be returning to the UK in 2017 for their ninth tour in seven years, starting in London in February. The UK-based acts Stewart Mac and Guy Jones will be co-headliners on the majority of the tour. With a variety of show types, sizes and locations, there’s truly a show for everyone. Tickets are on sale now, with multiple dates already sold out…
</p>
</div>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title text-center">Cherry Suede 2017 UK Tour</h3>
</div>
<div class="panel-body">
<table class="table">
<thead class="hidden-xs hidden-sm">
<tr><th>Date</th><th>City</th><th>Venue</th><th>Notes</th></tr>
</thead>
<tbody>
<tr><td>February 3</td><td><strong>London</strong></td><td>The Workshop</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>February 4</td><td><strong>London</strong></td><td>Underbelly</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>February 9</td><td><strong>Cardiff</strong></td><td>The Big Top</td><td><a href="https://www.facebook.com/events/1342445155827414/" target="_blank">Charity event — more info</a>.</td></tr>
<tr><td>March 3</td><td><strong>Manchester</strong></td><td>Gullivers</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>March 4</td><td><strong>Birmingham</strong></td><td>The Flapper</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>March 5</td><td><strong>Birmingham</strong></td><td>Muthers Studio</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>March 12</td><td><strong>Sutton-in-Ashfield</strong></td><td>The Diamond</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Opening for Mike Tramp — buy tickets</a>.</td></tr>
<tr><td>March 17</td><td><strong>Glasgow</strong></td><td>The 13th Note</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>March 18</td><td><strong>Glasgow</strong></td><td>Classic Grand</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>March 19</td><td><strong>Uddingston</strong></td><td>private residence</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>March 25</td><td><strong>Malton</strong> (Yorkshire)</td><td>Suddabys Crown Hotel</td><td><a href="http://www.bandzmedia.com/charity.html" target="_blank">Charity event — more info</a>.</td></tr>
<tr><td>March 26</td><td><strong>Beadlam</strong> (Yorkshire)</td><td>private residence</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>March 31</td><td><strong>Sheffield</strong></td><td>The Royal Standard</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>April 1</td><td><strong>Liverpool</strong></td><td>Studio2</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>April 2</td><td><strong>Warrington</strong></td><td>private residence</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>April 7</td><td><strong>Bournemouth</strong></td><td>Absolute Music</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>April 8</td><td><strong>Plymouth</strong></td><td>Skymind Studios</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>April 15</td><td><strong>Kingswood</strong> (Bristol)</td><td>private residence</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
<tr><td>April 21</td><td><strong>Brighton</strong></td><td>Brighton Electric</td><td><span class="label label-danger">SOLD OUT!</span></td></tr>
<tr><td>April 22</td><td><strong>Brighton</strong></td><td>Sticky Mike’s Frog Bar</td><td><a href="http://cherrysuede.com/shows/" target="_blank">Buy tickets</a>.</td></tr>
</tbody>
</table>
</div>
</div>
<blockquote cite="http://www.cherrysuede.com" class="full-width">
<p>
Fashion changes, the sound of popular music changes and society changes. But the hopes and dreams that define the human condition are universal and timeless. And those are the themes that we try to explore and explain with our music.
</p>
<footer>
<cite>Randy Scott</cite>, Cherry Suede (vocals/guitar)
</footer>
</blockquote>
<blockquote cite="http://www.cherrysuede.com" class="blockquote-reverse full-width">
<p>
Great art is not about words, images or music. It’s about emotion. The other things are just the vehicles to get that emotion from the artist to their audience.
</p>
<footer>
<cite>Randy Young</cite>, Cherry Suede (guitar/vocals)
</footer>
</blockquote>
<div class="social-media">
<p class="text-center">
For more information about Cherry Suede, check out their official sites:
</p>
<ul class="list-inline text-center">
<li><span class="fa fa-star fa-lg" aria-hidden="true"></span> <a href="http://www.cherrysuede.com" target="_blank">Website</a></li>
<li><span class="fa fa-facebook fa-lg" aria-hidden="true"></span> <a href="https://www.facebook.com/cherrysuedeofficial/" target="_blank">Facebook</a></li>
<li><span class="fa fa-twitter fa-lg" aria-hidden="true"></span> <a href="https://twitter.com/cherrysuede" target="_blank">Twitter</a></li>
<li><span class="fa fa-youtube fa-lg" aria-hidden="true"></span> <a href="https://www.youtube.com/user/CherrySuede" target="_blank">YouTube</a></li>
<li><span class="fa fa-instagram fa-lg" aria-hidden="true"></span> <a href="https://www.instagram.com/cherrysuede/" target="_blank">Instagram</a></li>
</ul>
</div>
</div>
</main>
<footer>
<p class="text-center">
<small>© 2017 <a href="https://www.freecodecamp.org/raspberrylime" target="_blank">RaspberryLime</a>. All rights reserved.</small>
</p>
</footer>
</div>
@media only screen and (max-width: 991px) {
/* Bootstrap breakpoint, at/up to this size considered to be a phone or tablet */
.container-fluid {
padding: 0 0 2em 0;
}
.container-fluid main .jumbotron {
padding-left: 2em;
padding-right: 2em;
}
.table {
border-collapse: separate;
border-spacing: 1em;
}
.table tbody tr td {
margin: 0;
border: 0;
padding: 0;
font-size: 1.6rem;
}
.table tbody tr td:nth-of-type(1n+2) {
display: inline-block;
margin-right: 0.25em;
}
.table tbody tr td:nth-of-type(0n+2)::after {
content: ",";
}
.table tbody tr td:nth-of-type(0n+3)::after {
content: ".";
}
}
@media only screen and (min-width: 992px) {
/* Bootstrap breakpoint, at/above this size considered to be a laptop or desktop */
.container-fluid {
padding: 4em 4em 2em 4em;
max-width: 1400px; /* Larger than Bootstrap's largest non-fluid container */
}
}
#main > .lead {
padding: 1.6rem 0 1.6rem 0;
}
#main p, #main ul {
padding-bottom: 1.6rem;
}
.jumbotron li {
font-size: 1.6rem;
}
.panel-primary {
border-color: #333;
}
.panel-primary > .panel-heading {
border-color: #333;
background-color: #333;
color: #fff;
}
.table {
margin: 0;
}
.table tbody tr td:first-child {
white-space: nowrap;
}
@media only screen and (max-width: 767px) {
/* Bootstrap breakpoint, at/up to this size considered to be a phone */
blockquote.full-width {
padding: 1em 2.5em 0 2.5em;
}
blockquote.full-width::before, blockquote.full-width::after {
font-size: 7.5rem;
}
}
@media only screen and (min-width: 768px) {
/* Bootstrap breakpoint; at/above this size phones are considered to be excluded */
blockquote.full-width {
padding: 3.5em 5em 0 5em;
}
blockquote.full-width::before, blockquote.full-width::after {
font-size: 15rem;
}
}
blockquote.full-width {
position: relative;
margin-left: 0;
margin-right: 0;
border: 0;
quotes: '\201C' '\201D' "\2018" "\2019";
}
blockquote.full-width::before {
content: open-quote;
top: -0.16em;
left: 0;
}
blockquote.full-width::after {
content: close-quote;
bottom: -0.7em;
right: 0;
}
blockquote.full-width::before, blockquote.full-width::after {
position: absolute;
display: block;
font-weight: bold;
opacity: 0.2;
}
.social-media {
padding-top: 4em;
}
.social-media li {
line-height: 2;
}
Also see: Tab Triggers