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.
<div class="container-fluid">
<div class="whole">
<div class="text-center body">
<h1 class="heading font">Alexander Hamilton</h1>
<h5 class="head2 ">Those who stand for nothing fall for anything.</h5>
<img class="image" src="https://www.biography.com/.image/t_share/MTE5NDg0MDU0OTg3MjQ1MDcx/alexander-hamilton-9326481-1-401.jpg">
<ul>
</div>
<div class="text-left margin ">
<p class="title text-center">Timeline of his life:</p>
<li><b>1757</b>- Alexander Hamilton born in Nevis in the Carribean (birthyear could also be 1755)</li>
<li><b>1768</b>- Hamilton's Mother dies of a sever fever. Alexander is now left orphaned.</li>
<li><b>1771</b>- Hamilton's first major responsibility. A huge amount of responsibility is thrust upon 14 year old Hamilton when the boss of the company whom he was working for at the time leaves for sea and puts Hamilton in charge for five months.
</li>
<li><b>1772</b>- Community leaders from Hamilton's home town raise money for him to go to school in America. Arrives in Boston in the Autumn.
</li>
<li><b>1774</b>- Hamilton begins attending Kings College in NewYork, now named Columbia University.
</li>
<li><b>1775</b>- Hamilton joins the Hearts of Oak, a volunteer militia company from New York.
</li>
<li><b>1776</b>- Hamilton and his sixty men take part in the Battle of White Plains and the Battle of Trenton.
</li>
<li><b>1780</b>- After a few years serving as Washington's aid, Hamilton marries Elizabeth Schuyler.
</li>
<li><b>1781</b>- Hamilton is reluctantly given control of a New York light infantry division by Washington.
</li>
<li><b>1782</b>- Hamilton is elected to congress as a representative from New York.
</li>
<li><b>1783</b>- After Hamiltons resignation from congress he passed the Bar Exam and was admitted to the New York Bar in July.
</li>
<li><b>1784</b>- Hamilton founded the Bank of New York.
</i>
<li><b>1784 till 1788</b>- Hamilton serves in the Constitutional Congress and Constitutional Convention. Writes 51 of the 85 essays published in the Federal Papers.
</li>
<li><b>1789</b>- Hamilton is appointed the first United States Secretary of the Treasury. And over the next two years he submits five reports on the economic issues in the country.
</li>
<li><b>1791</b>- Alexander Hamilton is successful in creating the first National Bank of the United States. Under a 20 year charter. Washington reluctantly signs the bill, under the assumption it was needed for the financial future of America.
</li>
<li><b>1801</b>- Hamilton establishes a newspaper called the New York Evening Post (New York Post) with the help of editor William Coleman.
</li>
<li><b>1804</b>- July 11 Hamilton duels Aaron Burr on the banks of the hudson river, and is shot in the abdomen. July 12 Hamilton meets his untimely death.
</li>
</ul>
</div>
</div>
<div class="text-center quote"
<blockquote>
<h1>"Who lives, Who dies,<br></br> Who tells your story."</h1>
<footer><cite>-Hamilton The Musical</cite></footer>
</blockquote>
<h3 class="wiki">Read more about this amazing human <a href="https://en.wikipedia.org/wiki/Alexander_Hamilton" target="_blank">here</a></h3>
</div>
<footer class="text-center">
<p> Written and coded by <a href="https://codepen.io/SarahTheTomboy/" target="_blank">Sarah</a></p>
</div>
.image {Width: 500px;
Length: 500px;
border-radius: 50%;}
.margin {padding: 100px;
background-color: #22AAA1;
}
.body {padding: 10px;
padding: 10px;
background-color: #22AAA1; }
.whole {padding:40px;
background-color: #22AAA1;
font-size: 20px;}
.quote {padding: 30px;
background-color: #22AAA1;
font size: 40px;
}
.heading {font-size: 100px;}
.head2 {font-size: 30px;
padding: 20px;
padding: 50px;}
.wiki {padding: 30px;
padding: 40px;}
.title {font-size:50px;
}
.font { font-family: 'Inconsolata', monospace;}
Also see: Tab Triggers