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.
<head>
<title>A tribute to David Bowie - Free Code Academy Project</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
</head>
<link href="https://fonts.googleapis.com/css?family=Anton" rel="stylesheet">
<!--above here are links to external files -->
<div class="container-fluid text-center" style="max-width:1200px" style="align:center">
</nav>
<div class="jumbotron text-right">
<div class="right-side"><h1 class="bowie" style="color:#A00">David Bowie</h1>
<h2 class="header">1947 - 2016</h2>
<br><br>
<a href="https://www.amazon.co.uk/David-Bowie/e/B000AQ090A" target="_blank"> <button class="btn btn-default text-primary header"><strong>LISTEN</strong></button></a><br><br><br><br>
</div>
<div class="text-center" style="max-width:1200px">
<h2 id="quote"style="font-size:50px"><small style="color:white"style="font-size:80px">“Look up here,</small><br><span style="font-size:40px"> I'm in heaven”</span></h2><br>
<img class="img-responsive img-thumbnail" src="http://images.popmatters.com/news_art/d/david-bowie-70sfp.jpg" alt="bowie black and white"></p>
<h2 class="subhead">The Life and Death of a Hero</h2>
<p><br>
David Bowie, who died in New York aged 69 on January 10, 2016, had an immeasurable impact on music and popular culture.</p>
<p>Born David Jones in London in 1947, he began his career as something close to a folk singer, though the creativity and playfulness evident on his 1969 breakthrough single “Space Oddity” were signs that assigning such simplistic genre classifications to an artist this ambitious would be a thankless task.</p>
<p>Throughout the 1970s, Bowie embarked upon an ascent to superstardom that broke old rules and made new ones in a way that only The Beatles can claim to have matched. From Aladdin Sane and Ziggy Stardust to The Man Who Fell to Earth and The Thin White Duke, Bowie’s persona and image shifted as much as his sound, proving hugely influential in the fields of film and fashion as much as rock and roll. In the world of music, such was his influence that every time he redefined himself, the parameters of pop had to be rethought also.</p>
<p>Throughout the 80s and 90s, Bowie continued to experiment with sonic styles, touching on everything from industrial to jungle music and seeing record sales break 140 million in the process. He triumphantly returned after a ten year silence in 2013 with The Next Day, following it with the wildly innovative Blackstar in 2016, released on his 69th birthday and just two days before his death. That it showed him still operating at his peak only adds to the sadness of his passing, but while Bowie may have left us, his influence could be eternal.</p>
</div>
<figure><img src="http://www.mojo4music.com/media/2014/04/bowie-top-10-albums.jpg?9ab822" alt="black and white bowie guitar" class="responsive" style="max-width:100%; margin-top:15px;" >
<figcaption class="text-left"><strong><span style="color:#555"><small>Rock Pioneer</small> -</span> </strong><em>Bowie pioneered glam-rock in the early seventies</em></figcaption><figure><br><br><br><hr class="faint">
<div class="alternate text-center" style="display:block"> <br><h2 class="subhead">Bowie's Top Five Albums </h2>
<p style="color:#ddd">The great rock star has died. Here’s his career distilled into the top five of his albums, as voted for by fans. From a career that spanned five decades and twenty-five albums: </p><br><br>
<ol style="text-left">
<li>The Rise And Fall Of Ziggy Stardust And The Spiders From Mars, <strong>1972</strong><br><img class="img-responsive img-thumbnail " alt="Ziggy Stardust" src="http://www.billboard.com/files/styles/900_wide/public/media/1972-The-Rise-and-Fall-of-Ziggy-Stardust-and-the-Spiders-from-Mars-David-Bowie-billboard-1000.jpg"></li>
<li>Low, <strong>1977</strong><br><img class="img-responsive img-thumbnail" alt="Low" src="http://www.billboard.com/files/styles/900_wide/public/media/1977-low-David-Bowie-billboard-1000.jpg"></li>
<li>Station to Station, <strong>1976</strong><br><img class="img-responsive img-thumbnail" alt="Station to Station" src="http://www.musiclipse.com/wp-content/uploads/2014/08/david-bowie-station-to-station-cover-album-wallpaper.jpg"></li>
<li>Aladdin Sane, <strong>1973</strong><br><img class="img-responsive img-thumbnail" alt="Aladdin Sane" src="https://s3-eu-central-1.amazonaws.com/centaur-wp/designweek/prod/content/uploads/2016/01/11163836/aladdin-sane-album-cover-david-bowie.jpg"></li>
<li>Scary Monsters (And Super Creeps), <strong>1980</strong><br><img class="img-responsive img-thumbnail" alt="Scary Monsters" src="http://www.billboard.com/files/styles/900_wide/public/media/1980-Scary-Monsters-And-Super-Creeps-David-Bowie-billboard-1000.jpg"></li>
</ol>
</div>
<div class="text-center"><p class="text-center" style="font-size:140%">More information on David Bowie <a href="https://en.wikipedia.org/wiki/David_Bowie" target:"_blank">here</a><p></div>
<hr>
<footer class="copyright text-center"><h5>© Kilburn Spider, 2016 • All Rights Reserved</h5>
<a href="mailto:[email protected]">Enquiries<h6><span class="glyphicon glyphicon-envelope"></span> kilburnspider@gmail.com</h6></a>
</footer>
.main{
max-width: 1200px;
}
body{
background-color:#777;
font-size: 16px;
line-height:1.2em;
}
hr {
color:red;
}
a {
color: #A00;
}
a:hover {
color: #fbb;
text-decoration:none;
}
a: visited {
text-decoration:none;
}
.container-fluid{
background-color:#000;
margin:0px;
padding:0px;
border:0px;
position: absolute;
position: absolute;
margin: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
border:1px solid black;
}
.jumbotron{
background: no-repeat center url();
border-width:1px 0px 1px 0px;
background-color:black;
}
h1{
font-size:109px;
font-family:"Anton", sans-serif;
color: black;
}
h2{
padding-bottom: 25px;
font-family:"Anton", sans-serif;
color: white;
border-width:2px 0px 0px 0px;
border-color:#A00;
border-style:solid;
display:inline
}
h5{
border-top:1px;
padding:30px;
color:#666;
}
h6{
padding-top:0px;
margin-top:0px
}
p{
font-size:16pxpx;
background-color:;
text-align: left;
width:100;
color:rgb(200,200,200);
text:center;
line-height: 1.5;
padding: 10px 50px 20px 50px;
}
.right-side{
color:black;
}
.alternate{color:white;
padding-top:35px;
background-color:#;
}
.btn{
height: 60px;
width: 120px;
font-size:17px;
color:white;
background-color:#A00;
border:0px
}
.subhead{
font-size:60px;
padding-top:;
margin-top: 0px;
text-align: ;
color:#A00;
padding-bottom:0px;
}
.img-thumbnail{
margin-top:20px;
margin-bottom:100px;
max-width:250px;
}
@media only screen and (min-width: 520px){
.img-thumbnail{
max-width:400px;
}
.subhead{
font-size:40px;
}
.jumbotron p{
font-size:16px
}
}
@media only screen and (min-width: 200px){
}
.jumbotron p{
font-size:14px;
margin:0px;
}
ol{
font-family:"Anton";
font-size:150%;
color:#A00;
line-height:1.3;
}
.subhead {
font-size:25px;
line-height:1.5;
}
#quote{
font-size:25px;
line-height:1;
border:0px;
}
@media only screen and (min-width: 767px){
.text-right {
text-align:center;
}
.right-side h1 {
text-align:center;
font-size:900%;
}
.subhead{
font-size:40px;
}
.copyright{
text-align:center;
border-width-top:1px;
color:white;
background-color:black;
padding:0px;
}
ol{
Font-family:"Anton";
text-align:center;
margin-left:25px;
margin-right:25px;
margin-bottom:30px;
font-size:180%;
font-weight:400;
color:#A00;
}
#quote{
border:0px;
padding-bottom:10px;
}
.jumbotron p{
font-size:medium;
}
@media only screen and (min-width:50px) {
.jumbotron p{
font-size:medium;
}
}
Also see: Tab Triggers