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.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!--
Hello Camper!
For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding!
- The freeCodeCamp Team
-->
<main id="main">
<h1 id="title">The Mirabal Sisters</h1>
<p>Also known as Las Hermanas Mirabal and symbols of both popular and feminist resistane.</p>
<figure id="img-div">
<img id="image" src="https://www.colonialzone-dr.com/wp-content/uploads/2018/07/Hermanas-Mirabal.jpg" alt="headshot photos of Patria, Minerva and Maria Teresa Mirabal" />
<figcaption id="img-caption">
On the left is Patria Mirabal, in the middle is Minerva Mirabal and at the right is Maria Teresa Mirabal.
</figcaption>
</figure>
<section id="tribute-info">
<h2 id="headline">Here is a timeline of The Mirabal Sisters' life:</h2>
<ul>
<li><strong>February 27, 1924</strong>-Patria Mercedes Mirabal Reyes, Patria is born.</li>
<li><strong> March 1, 1925</strong>-Bélgica Adela Mirabal Reyes, Dedé is born.</li>
<li><strong>March 12, 1926</strong>-María Argentina Minerva Mirabal Reyes, Minerva is born.</li>
<li><strong>August 16, 1930</strong>-Beginning of Trujillo's dictatorship</li>
<li><strong>October 15, 1935</strong>-Antonia María Teresa Mirabal Reyes, María Teresa is born.</li>
<li><strong>Feb 24, 1941</strong>-Patria and Pedro Gonzalez's marriage</li>
<li><strong>Oct 12, 1949</strong>-Trujillo's party in his mansion
The Mirabals attended this party, but they left early, angering Trujillo.</li>
<li><strong>1949</strong>-Minerva after graduating enrolled at the University of Santo Domingo where she studied law, but because she had declined Trujillo's sexual advances in 1949, she was denied a license to practice. </li>
<li><strong>Dec 14, 1953</strong>-Don Enrique (the father of the Mirabal sisters) dies </li>
<li><strong> Nov 20, 1955</strong>-Minerva and Manuel (Manolo) Tavarez Justo's marriage </li>
<li><strong> Feb 14, 1958</strong>-Maria Teresa and Leandro Guzman's Wedding </li>
<li><strong>Jun 14, 1959</strong>-Fourteenth of June Movement
On June 14, 1959, troops consisting of exiled Dominicans under Commander Enrique Jimenez Moya from the Dominican Liberation Movement were sent to the towns of Constanza, Maimón and Estero Hondo. This attempt, called the Luperion Invasion, to topple Trujillo's dictatorship was crushed, but it did planted a seed of rebellion in the Dominican people. This was the inspiration for the name of the political group, the Fourteenth of June Movement. </li>
<li><strong> Nov 25, 1960</strong>-Patria, Minerva, Maria Teresa, and their driver, Rufino de la Cruz, murdered </li>
<li><strong> May 30, 1961</strong>-Trujillo is killed </li>
<li><strong>February 1, 2014</strong>-Dede died of natural causes</li>
</ul>
<blockquote cite="https://en.wikipedia.org/wiki/Mirabal_sisters">
<p>
"We cannot allow our children to grow up in this corrupt and tyrannical regime. We have to fight against it, and I am willing to give up everything, even my life if necessary."
</p>
<cite>-- Patria Mercedes Mirabal Reyes</cite>
<hr>
<p>"It is a source of happiness to do whatever can be done for our country that suffers so many anguishes. It is sad to stay with one's arms crossed."</p>
<cite>--María Argentina Minerva Mirabal Reyes</cite>
<hr>
<p>"Perhaps what we have most near is death, but that idea does not frighten me. We shall continue to fight for that which is just."</p>
<cite>--Antonia María Teresa Mirabal Reyes</cite>
</blockquote>
<iframe width="474" height="315" src="https://www.youtube.com/embed/U4YxbGc8-4U" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<h3>
<a id="tribute-link" href="https://en.wikipedia.org/wiki/Mirabal_sisters" target="_blank">For more information on these three inspirational women</a>.
</h3>
</section>
</main>
html {
font-size: 16px;
}
body {
font-family: book antiqua;
font-size: 15px;
text-align: center;
background-color: rgba(50, 115, 220, 0.3);
}
h1,
h2,
h3 {
font-size: 20px;
}
img {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto;
}
.responsive-img {
width: 100%;
height: auto;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
iframe {
max-width: 100%;
display: block;
margin: auto;
}
ul {
max-width: 550px;
margin: 0 auto 50px auto;
text-align: left;
line-height: 1.6;
}
li {
margin: 16px 0;
}
blockquote {
font-style: helvatica;
max-width: 545px;
margin: 0 auto 50px auto;
text-align: left;
}
// !! IMPORTANT README:
// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.
/***********
INSTRUCTIONS:
- Select the project you would
like to complete from the dropdown
menu.
- Click the "RUN TESTS" button to
run the tests against the blank
pen.
- Click the "TESTS" button to see
the individual test cases.
(should all be failing at first)
- Start coding! As you fulfill each
test case, you will see them go
from red to green.
- As you start to build out your
project, when tests are failing,
you should get helpful errors
along the way!
************/
// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!
// Once you have read the above messages, you can delete all comments.
Also see: Tab Triggers