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.
<body class="background-color1">
<div class="container-fluid background-color-1 padding-top-1">
<div class="row">
<div class="col-12 col-sm-10 col-md-10 mr-sm-auto ml-sm-auto mr-md-auto ml-md-auto">
<div class="jumbotron text-color-2">
<h1 class="text-center ">Szilvia Lubics</h1>
<h3 class="text-center "><em>One of the toughest female athletes in the world </em></h3>
<div class="col-md-10 mr-md-auto ml-md-auto img-thumbnail center-block margin-bottom-1 ">
<figure class="figure">
<img src="https://files.mozgasvilag.hu/news/Lubics_Szilvia_01_FB.jpg" alt="Lubics running at Badwater" class="img-fluid center-block">
<figcaption class="figure-caption text-center text-color-3">Lubics Szilvia at the world's toughest foot race Badwater, in 2017 </figcaption>
</figure>
</div>
<div class="col-12 col-sm-10 col-md-10 ml-sm-auto mr-sm-auto ml-md-auto mr-md-auto text-color-2">
<h4 class="margin-bottom-1">Some snippets from her life:</h5>
<ul>
<li><b>Born in 1974 </b>in a town called Jászberény in Hungary</li>
<li>In 1997 she gets her <b>medical license</b>, then starts operating as a dentist in a village called Hahót</li>
<li>She has <b>three children</b>: Olivér (18), Botond (16) and Kolos (12)</li>
<li><b>Starts running in 2003</b> at the age of 28</li>
<li>Just one year later she runs <b>her first marathon</b> (42 km)</li>
<li>In 2006 she runs <b>her first Ultra</b> (more than 42 kms)</li>
<li>Next year she becomes part of the team <b>representing Hungary</b> in the long distance runnin European Championship</li>
<li>She runs her first <b>Sparthatlon</b> in 2010, then proceeeds to win the race three times (2011, 2013 and 2014 defending her title)</li>
<li>She wins <b>UltraBalaton</b> (212 kms) in 2011 and 2012</li>
<li>She wins the <b>UltraMilano-Sanremo</b> (286 kms) race in 2014</li>
<li>She finishes <b>L'Ultra Marin (177 km)</b> 1st place in 2016</li>
<li>She was awarded the <b>Hungarian Medal of Honour</b> in 2016</li>
<li>In 2017 and she tackles <b>Badwater</b> the world toughest foot race that takes place in California's Death Valley (she finishes 4th place)</li>
</ul>
<blockquote class="blockquote blockquote-reverse text-color-1">
<p class="mb-0"><em>I believe and know that in the most critical situations only the most simple words and the barest thoughts are justified to exist.</em><br><br></p> <!--- “Hiszem, és tudom, hogy a kritikus helyzetekben a legegyszerűbb szavaknak, a lecsupaszított gondolatoknak van létjogosultsága.” --->
<footer class="blockquote-footer text-color-1 text-right">Szilvia Lubics</footer>
</blockquote>
<h5>If you want to read more about this extraordinary athlete (in Hungarian) follow this <a href="http://lubicsszilvi.webnode.hu/" target="_blank">link</a>.</h5>
</div>
</div>
</div>
</div>
</div>
.margin-bottom-1 {
margin-bottom: 40px;
}
.jumbotron{
background-color: #FEF5EF!important;
}
.img-thumbnail{
background: #FEF9F6!important;
}
.text-color-1{
color: #010A10;
}
.text-color-2{
color: #010A10!important;
}
.text-color-3{
color: #010609!important;
}
.background-color-1{
background-color: #000000;
}
.padding-top-1{
padding-top:40px;
}
li{
margin: 5px 0;
}
.container-fluid {
padding-right:5;
padding-left:5;
margin-right:auto;
margin-left:auto;
}
Also see: Tab Triggers