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 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.
<link href="https://fonts.googleapis.com/css?family=Spectral" rel="stylesheet">
<div id="main">
<div class="container">
<div id="header">
<header>
<h1 id="title">kamasi washington</h1>
<div id=subtitle>A tenor saxophonist, bandleader, and composer with the profile of a low-level pop star</div>
</header>
</div>
<div id="img-div">
<img id="image" src="http://thethinair.net/wp-content/uploads/2017/02/34.jpg" alt= "pic from flickr">
<div id="img-caption">
Kamasi Washington (born February 18, 1981) is an American jazz saxophonist, composer, producer, and bandleader. Washington is known mainly for playing tenor saxophone.
</div>
<br>
</div>
<article id="tribute-info">
<h2>Background</h2>
<p>Kamasi Washington is a Los Angeles-based saxophonist, composer, and bandleader who was branded the future of the new jazz on the arrival of his three-disc The Epic. While the term has been bandied about since the 1950s, what it refers to in his case is Washington's diversity given his wide experience playing with artists of many disciplines. His sound draws few boundaries between modal and soul-jazz, funk, hip-hop, and electronic music.
He didn't pick up a saxophone until he was 13 years old, but by that point, he'd already been playing several other instruments. That's when he found his calling. Within a couple years, he was the lead tenor saxophonist at Hamilton High School Music Academy in his native Los Angeles. After graduation, he attended UCLA to study ethnomusicology. While enrolled at UCLA, he recorded a self-titled album with Young Jazz Giants, a quartet he had formed with Cameron Graves and brothers Ronald Bruner, Jr. and Stephen "Thundercat" Bruner, released in 2004.</p>
<p>From that point on, Washington continually performed and recorded with an impressive variety of major artists across several genres, including Snoop Dogg, Raphael Saadiq, Gerald Wilson, McCoy Tyner, George Duke, and PJ Morton. He self-released a handful of his own albums from 2005 to 2008 while also performing and recording as one-third of Throttle Elevator Music. In 2014 alone, Washington demonstrated his tremendous range with appearances on Broken Bells' After the Disco, Harvey Mason's Chameleon, Stanley Clarke's Up, and Flying Lotus' You're Dead!, among other albums that covered indie rock, contemporary and progressive jazz, and experimental electronic music.</p>
<p>The following year, Washington contributed to Kendrick Lamar's To Pimp a Butterfly and released The Epic on Flying Lotus' Brainfeeder label. An expansive triple album nearly three hours in duration, it involved the other three-fourths of Young Jazz Giants -- by then part of his larger collective, alternately known as the Next Step and West Coast Get Down -- and a string orchestra and choir conducted by Miguel Atwood-Ferguson. A critical and commercial success, The Epic landed at number three on Billboard's jazz chart. Washington toured the U.S., played dates in Europe and Japan, and continued session work with contributions to albums by Terrace Martin, Carlos Niño, John Legend, Run the Jewels, and Thundercat, all while continuing to tour. Washington debuted the six-song project at the Whitney Biennial in March along with a film by A.G. Rojas and artwork by Amani Washington. In early 2017, Washington premiered Harmony of Difference, an original six-movement suite, as part of the Whitney Biennial, and compiled that recording for a six-track, 13-minute EP -- his first original music since The Epic two years earlier. Issued in September, Harmony of Difference explored the philosophical possibilities of counterpoint. Composed as a suite, it contains five separate movements and a sixth, "Truth," as a finale that includes tenets and themes from its predecessors. Washington returned in 2018 with the full-length Heaven & Earth. The double album featured contributions from Thundercat, Patrice Quinn, and Miles Mosley, and the singles "Fists of Fury" and "The Space Travelers" were released in advance of the record.</p>
</article>
<img class="img1" src="https://static.stereogum.com/uploads/2018/05/kamasi-washington-heaven-and-earth-1527604524-640x640.jpg">
<img class="img2" src="https://pbs.twimg.com/profile_images/983510253663866880/LKB9BuFZ_400x400.jpg">
<img class="img3" src="https://images.sk-static.com/images/media/profile_images/artists/405330/huge_avatar">
<img class="img4" src="https://consequenceofsound.files.wordpress.com/2018/06/kamasi-washington-heaven-and-earth1.jpg?quality=80&w=350&h=350&crop=1">
<iframe id=vid width="560" height="315" src="https://www.youtube.com/embed/LdyabrdFMC8?rel=0" frameborder="0" allowfullscreen></iframe>
<footer id=footer>
<br>
<hr>
<h4> If this article interested you, you should <a id="tribute-link" href="https://www.allmusic.com/artist/kamasi-washington-mn0000772447/biography" target="_blank"> read more at this website </a>.</h4>
</footer>
</div>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
html {
font-family:"Trebuchet MS", Helvetica, sans-serif;
text-align:center;
min-width:260px;
color:#333;
}
#subtitle {
font-style: italic;
margin-bottom: 10px;
font-family: 'Spectral', serif;
}
#img-div {
grid-area: header;
}
#header {
grid-area: title;
width: 100%;
max-width: 100%;
}
#image {
max-width: 100%;
width: 70vw;
display: block;
height: auto;
margin: auto;
}
#title {
text-transform: Capitalize;
font-family: 'Spectral', serif;
background: linear-gradient(to bottom right, #B33169, #74C5DB);
padding: 10px;
}
#img-caption {
margin-top: 25px;
text-decoration:underline;
width: 100%;
}
p {
text-align: left;
border: solid 10px white;
line-height: 30px;
}
#tribute-info {
grid-area: content;
}
.container > img{
width: 100%;
max-width: 100%;
height: auto;
margin-top: 80px;
}
.container {
display: grid;
grid-template-columns: 1fr 4fr 1fr;
grid-template-rows: repeat(6, auto);
grid-template-areas:
"title title title"
"header header header"
"img1 content img2"
"img3 content img4"
". vid ."
". footer ."
}
#vid {
grid-area: vid;
margin: auto;
}
#footer {
grid-area: footer;
}
@media (max-width: 875px) {
.img1 {
display: none;
}
.img2 {
display: none;
}
.img3 {
display: none;
}
.img4 {
display: none;
}
#image {
width:80vw;
}
p {
line-height: normal;
}
#vid {
width: auto;
}
}
Also see: Tab Triggers