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.
article
header
h1 Crossing borders in funk and jazz
section
p Jazz fusion, fusion, or jazz rock is a musical genre that developed in the late 1960s from mixing funk and rhythm and blues rhythms with the electric instruments, amplified sound, electronic effects and playing styles of rock music together with jazz’s complex time signatures (which were derived from non-Western music) and jazz’s complex chord progressions and altered and extended chords. Fusion musicians typically create extended instrumental compositions based around a melody and a chord progression and lengthy solo improvisations. Fusion songs use brass instruments such as trumpet and saxophone as melody and soloing instruments. The rhythm section typically consists of electric bass (in some cases fretless), electric guitar, electric piano/synthesizer (in contrast to the double bass and piano used in earlier jazz) and drums. As with jazz forms that preceded fusion, all of the instruments–including the rhythm section instruments–are used as soloing instruments and all demonstrate a high level of instrumental technique.
aside
p Davis’ 1969’s In a Silent Way is considered his first fusion album. Composed of two side-long improvised suites edited heavily by record producer Teo Macero, this quiet, static album would be equally influential upon the development of ambient music.
section
p The term “jazz-rock” is often used as a synonym for “jazz fusion” as well as for music performed by late 1960s and 1970s-era rock bands that added jazz elements to their music. It is different from the UK Canterbury Scene’s progressive rock (“prog”) and other forms of prog-jazz fusion, in which extended prog instrumentals use improvisation and take on a jazz-influenced feel. After a decade of popularity during the 1970s, fusion expanded its improvisatory and experimental approaches through the 1980s, in parallel with the development of a radio-friendly style called smooth jazz. Experimentation continued in the 1990s and 2000s. Fusion albums, even those that are made by the same group or artist, may include a variety of musical styles. Rather than being a codified musical style, fusion can be viewed as a musical tradition or approach.
section
img src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/5175/unsplash-concert-01.jpg' alt='Not Miles Davis'
footer
p
| Texts from
a href="https://en.wikipedia.org/wiki/Jazz_fusion" Wikipedia, the free encyclopedia
@import 'modular-scale'
@import 'bourbon'
@import url(https://fonts.googleapis.com/css?family=Montserrat:400)
$ms-base: 1em
$ms-ratio: $major-third
$tomato: #e64949
$white: #f1f1f1
$black: #1a0303
=mq($w: 33em)
@media (min-width: $w)
@content
html
background: $white
color: $black
font-family: 'Georgia', serif
body
padding: 1em
article
+clearfix
max-width: 50em
margin: 0 auto
header
margin-bottom: -1.5em
max-width: 36em
text-align: right
h1
color: $tomato
font-size: calc(2.8em + 5vw)
font-family: Montserrat, sans-serif
display: inline
background: linear-gradient(0, $tomato 0.08em, transparent 0)
line-height: 1.15em
section
float: right
margin: 0 0 ms(1)
position: relative // place on top of h1
p
max-width: 24em
margin: 0
line-height: ms(1)
text-shadow: 0 0 0.66em $white
aside
max-width: 24em
font-size: ms(-1)
float: left
clear: both
margin: 0 ms(1) ms(1) 0
line-height: ms(2)
footer
clear: both
img
max-width: 100%
vertical-align: middle
Also see: Tab Triggers