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.
<div class="container white-bg">
<h1 class="text-center">Frank DeMartini</h1>
<h4 class="text-center">1952 - 2001</h4>
<h6 class="text-center">A tribute dedicated to a true hero of the World Trade Center</h6>
<div class="divider"></div>
<div class="row">
<img class="img-responsive" src="https://prologuebooks.files.wordpress.com/2011/09/frank.jpg" alt="Frank DeMartini">
</div>
<div class="divider"></div>
<div class="row">
<div class="col-md-12">
<h4 class="sub-header">About Frank</h4>
<p>Frank DeMartini had a passion for old cars, motorcycles, sailing and everything Italian. He also loved restoring Brooklyn brownstones and was fascinated with the World Trade Center. Mr. DeMartini, an architect, started working at the twin towers when he was hired to assess the damage from the 1993 bombing. He stayed on, becoming the construction manager, the man to see when you wanted to move a wall or rearrange the plumbing. Mr. DeMartini's wife, Nicole, also worked in the towers, and their children, Sabrina, 10, and Dominic, 8, could often be seen splashing around in the pool at the complex's Marriott Hotel.</p>
<p>Compact and athletic, Mr. DeMartini, 49, once used a baseball bat to chase away an intruder who had picked the wrong brownstone. "He was really very fearless," said Michael Prager, a longtime friend. When the north tower was struck, Nicole DeMartini was just leaving her husband's office on the 88th floor. Finding a stairway that was still intact, he ushered her to safety. But he refused to follow just then because others needed help. "He saw himself very much as a protector," Mr. Prager said.</p>
<p><span class="source">Source:</span> <a href="http://www.legacy.com/Sept11/Story.aspx?PersonID=103328&location=1" target="_blank">http://www.legacy.com/Sept11/Story.aspx?PersonID=103328&location=1</a></p>
<div class="divider"></div>
<h4 class="sub-header">What Happened?</h4>
<p>Frank DeMartini was the construction manager of the World Trade Center, responsible for helping rebuild the building after the 1993 bomb attack. On September 11, 2001 when a plane struck both towers, he and two other co-workers, Pablo Ortiz and Mak Hanna began going up the North Tower to rescue trapped workers. They eventually came to the 89th floor where they rescued several trapped workers including Rick Bryan, a manager at MetLife, and secretary Dianne DeFontes. DeMartini sends Hanna down the tower with an injured, elderly Port Authority worker on his back while Bryan and his co-workers begin to make their way downwards. Making their way towards the impact zone, DeMartini and Ortiz report structural damage that could lead to catastrophic results. Bryan and his group are nearly out of the building when they feel the tremors caused by the South Tower's collapse. They manage to make it out alive along with Hanna. DeMartini and Ortiz are both killed when the North Tower collapses. 50 people were saved thanks to their efforts, including Bryan and DeFontes.</p>
<p><span class="source">Source:</span> <a href="https://en.wikipedia.org/wiki/9/11:_The_Twin_Towers#Frank_De_Martini_and_Rick_Bryan" target="_blank">https://en.wikipedia.org/wiki/9/11:_The_Twin_Towers#Frank_De_Martini_and_Rick_Bryan</a></p>
<div class="divider"></div>
<h4 class="sub-header">Documentary Video</h4>
<p>Watch the full video below to see Frank DeMartini's heroism on that tragic day.</p>
<p><iframe width="560" height="315" src="https://www.youtube.com/embed/RXkfs8KjRSc" frameborder="0" allowfullscreen></iframe></p>
<div class="divider"></div>
<p style="margin-bottom: 30px;">Or read a detailed article, the untold story by clicking <a href="https://prologuebooks.wordpress.com/2011/09/16/102-minutes-the-untold-story-of-the-fight-to-survive-inside-the-twin-towers-jim-dwyer-and-kevin-flynn/" target="_blank">here</a></p>
<div class="divider"></div>
<h4 class="sub-header">Credits</h4>
<p>This is an educational purpose project created to complete a project challenge for <a href="https://www.freecodecamp.com" target="_blank">FreeCodeCamp</a>, created by Matthew Leisy. All images and texts are borrowed from the sources given. No copyright infringement is intended.</p>
</div>
</div>
</div>
body {
background-color: #3E5162;
}
.white-bg {
background-color: #fff;
}
.container {
border: 1px solid #000;
padding-top: 30px;
}
.white-text {
color: #fff;
}
img {
margin: auto;
}
.divider {
border: 1px solid #000;
width: 80%;
margin: 25px auto 25px auto;
}
p, .sub-header {
margin: 0 10% 0 10%;
}
.sub-header {
margin-bottom: 10px;
}
p {
margin-bottom: 15px;
}
.source {
font-weight: bold;
}
Also see: Tab Triggers