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.
<!--
Hello Camper!
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">Ludwig von Mises</h1>
<figure id="img-div">
<img id="image" src="https://www.mannwest.com/wp-content/uploads/2016/06/ludwig-von-mises-e1484927887909.jpg" alt="Ludwig von Mises with a library in the background" />
<figcaption id="img-caption">Ludwig von Mises</figcaption>
</figure>
<section id="tribute-info">
<p>Ludwig von Mises was an Austrian School economist, historian, logician, and sociologist. He wrote and lectured extensively on the societal contributions of classical liberalism. He is best known for his work on praxeology studies comparing communism and capitalism. <i>He is considered one of the most influential economic and political thinkers of the 20th century.</i></p>
<figure class="quote">
<blockquote>
The worship of the state is the worship of force. There is no more dangerous menace to civilization than a government of incompetent, corrupt, or vile men. The worst evils which mankind ever had to endure were inflicted by governments.
</blockquote>
<figcaption>
— Ludwig Von Mises (1985). <cite>“Omnipotent Government: The Rise of the Total State and Total War”, Libertarian Press</cite>
</figcaption>
</figure>
<h2>Biography</h2>
<h3>Early life</h3>
<ul>
<li><strong>1881</strong> - Mises was born to Jewish parents in the city of Lemberg, Galicia, Austria-Hungary (now Lviv, Ukraine).</li>
<li><strong>By the age of 12</strong> - He spoke fluent German, Polish and French, read Latin and could understand Ukrainian.</li>
<li>Mises had a younger brother, Richard, who became a mathematician and a member of the Vienna Circle, and a probability theorist. When Ludwig and Richard were still children, their family moved back to Vienna.</li>
<li><strong>1900</strong> - He attended the University of Vienna, becoming influenced by the works of Carl Menger. </li>
<li><strong>1903</strong> - Mises lost his father.</li>
<li><strong>1906</strong> - He was awarded his doctorate from the school of law.</li>
</ul>
<h3>Life in Europe</h3>
<ul>
<li><strong>1904</strong> - Mises attended lectures given by Austrian economist Eugen von Böhm-Bawerk.</li>
<li><strong>1906</strong> - He graduated (Juris Doctor) and started a career as a civil servant in Austria's financial administration.</li>
<li><strong>1906</strong> - Mises graduated (Juris Doctor) and started a career as a civil servant in Austria's financial administration. After a few months, he left to take a trainee position in a Vienna law firm.</li>
<li><strong>1909</strong> - He joined the Vienna Chamber of Commerce and Industry.</li>
<li>During World War I, Mises served as a front officer in the Austro-Hungarian artillery and as an economic adviser to the War Department.</li>
<li><strong>1934</strong> - He left Austria for Geneva, Switzerland, where he was a professor at the Graduate Institute of International Studies until 1940. While in Switzerland, Mises married Margit Herzfeld Serény, a former actress.</li>
</ul>
<h3>Work in the United States</h3>
<ul>
<li><strong>1940</strong> - Mises and his wife fled the German advance in Europe and emigrated to New York City in the United States.</li>
<li><strong>1945</strong> - He became a visiting professor at New York University and held this position until his retirement in 1969, though he was not salaried by the university. Businessman and libertarian commentator Lawrence Fertig, a member of the New York University Board of Trustees, funded Mises and his work.</li>
<li><strong>1947</strong> - Mises became one of the founding members of the Mont Pelerin Society, an international organization composed of economists, philosophers, historians, intellectuals and business leaders.</li>
<li><strong>1962</strong> - He received the Austrian Decoration for Science and Art for political economy at the Austrian Embassy in Washington, D.C.</li>
<li>Mises retired from teaching at the age of 87 and died at the age of 92 in New York. He is buried at Ferncliff Cemetery in Hartsdale, New York. Grove City College houses the 20,000-page archive of Mises papers and unpublished works. The personal library of Mises was given to Hillsdale College as per his will.</li>
</ul>
</section>
<section id="learn-more">
<p>Learn more on <a id="tribute-link" href="https://en.wikipedia.org/wiki/Ludwig_von_Mises" target="_blank">Ludwig von Mises' Wikipedia page.</a><p>
</section>
<hr>
<footer id="footer">
<p>Coded with <span style="font-size: 150%">🧋</span> by <a id="tribute-link" href="https://damianocasula.com" target="_blank">Damiano Casula</a>.<p>
</footer>
</main>
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans&display=swap');
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Base */
body {
font-family: 'Open Sans', sans-serif;
color: #222;
background-color: #eee;
background: url('https://picsum.photos/id/1048/2000/3000?blur=5');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
@media screen and (min-width: 1000px) {
body {
background-color: #111;
background: url('https://picsum.photos/id/1048/2000/2000?blur=5');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
}
@media screen and (min-width: 1600px) {
body {
background-color: #111;
background: url('https://picsum.photos/id/1048/3000/2000?blur=5');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
}
h2 {
margin: 1.33rem 0 .75rem 0;
color: #000;
}
h3 {
color: #111;
}
h3, ul, p {
margin: 1.25rem 0 .5rem 0;
}
section {
margin: 1.5rem 0 1rem 0;
}
ul {
list-style: none;
}
li {
margin: .33rem 0;
padding: 0.5rem;
border-radius: .5rem;
}
li:nth-child(odd) {
background: #eee;
}
hr {
border: none;
border-bottom: 1px dashed #ccc;
padding-top: 1rem;
margin-bottom: 1rem;
}
a {
color: #45b;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Layout */
#main {
padding: 1rem;
background: white;
box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .2);
backdrop-filter: blur(7px);
}
@media screen and (min-width: 600px) {
#main {
max-width: 90vw;
border-radius: 1rem;
margin: 2rem auto;
background: rgba(255,255,255,.8);
}
}
@media screen and (min-width: 1000px) {
#main {
max-width: 900px;
}
}
@media screen and (min-width: 1600px) {
#main {
max-width: 1200px;
}
}
/* Image */
#img-div {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
#image {
max-width: 100%;
height: auto;
border-radius: 1rem;
margin-bottom: .75rem;
}
#img-caption {
color: #555;
}
/* Title */
#title {
margin-bottom: 1rem;
color: #000;
font-family: 'Bebas Neue';
font-size: 3rem;
text-align: center;
}
/* Quote */
.quote {
margin: 0;
background: #eee;
border: 5px solid #e3e3e3;
padding: 1rem;
border-radius: 1rem;
margin: 2rem 0;
color: #000;
}
.quote figcaption,
.quote blockquote {
margin: 1rem;
}
.quote blockquote {
font-family: 'Bebas Neue', serif;
font-weight; bold;
text-transform: uppercase;
font-size: 2rem;
}
// !! 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