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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
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.
If the stylesheet 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 CSS 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.
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 well">
<!-- main site container-->
<div>
<!-- header -->
<h1 class="text-center">Rihanna</h1>
<div class="lead text-center"><em>patron saint of my twenties, and quite possibly my thirties</em>
</div>
<!-- end header -->
</div>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<!-- insert image -->
<img src="http://www.shesgottadevelopit.com/FCC/ri5.png" class="center-block img-fluid img-rounded">
<!-- end image -->
</div>
<div class="col-md-2"></div>
</div>
<!-- insert timeline -->
<div class="text-center">
<h3>Career & Shenanigans Highlights </h3>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<ul class="text-left">
<li> Born Robyn Rihanna Fenty on February 20, 1988 in Barbados.</li>
<li> Rihanna began singing at age 7. </li>
<li> Discovered by American record producer Evan Rogers in 2003. </li>
<li> Rihanna's debute album, <em>Music of the Sun</em> was released in August 2005. I didn't really listen to her much back then.</li>
<li> In 2007, "Umbrella" is released fom the album <em>Good Girl Gone Bad</em> her 3rd major label production. It's annoying as hell but also catchy, so we deal with it.</li>
<li> I went to college and heard "Rude Boy" for the first time and liked it as well as the video. That song is from her 4th album, <em>Rated R</em>.</li>
<li> I graduated from college and worked at a retailer that played the hell out of <a href="https://en.wikipedia.org/wiki/Love_the_Way_You_Lie" target="_blank">that song</a> with Eminimen which was annoying but that song was extremely popular and won many awards. </li>
<li> I bought the Loud album in 2010 on a whim. While driving home I heard "Complicated" and fell in love love with Rihanna for the first time.</li>
<li> One day on a drive home I heard "Complicated" and fell in love with Rihanna for the first time. </li>
<li> Since our love affair began she's released 3 other records:
<ol>
<li>Talk that Talk</li>
<li>Unapologetic</li>
<li>ANTI</li>
</ol>
<li>In 2015, Rihanna was named the Best Selling Digital Artist of All Time, according to The Recording Industry Association of America (RIAA)</li>
<li>In addition to her music work, she's also collaborated with MAC Cosmetics to release makeup for the Viva Glam line as well as her own RiRi for MAC products, all of which I own, of course. </li>
<li>Rihanna is planning to launch her own makeup line in 2017.</li>
</ul>
<br />
<br />
<div class="lead text-left">For more information about our queen Rihanna, you can <a href="https://en.wikipedia.org/wiki/Rihanna" target="_blank">wikipedia</a> her like the rest of our lazy asses or check out <a href="http://http://rihannadaily.com/" target="_blank">RihannaDaily.com</a>
</div>
<div class="col-md-2"></div>
</div>
<!-- end timeline -->
<!-- END main site container-->
</div>
body{margin-top:20px;}
Also see: Tab Triggers