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.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">
</script>
<!DOCTYPE html>
<html>
<head> <title>Tribute for Luffy</title></head>
<body id="main">
<header>
<h1 id="title" class="box1">
History of Monkey D Luffy
</h1>
<h2>
<em> The man who will become Pirate King. </em>
</h2>
</header>
<div id="img-div">
<img id="image" src="http://1.bp.blogspot.com/-Pz1OeixqIr4/U4K1Do5sMaI/AAAAAAAABEw/bMDXpsMeTkw/s1600/monkey+d+luffy+after+2+year+lets+go.jpg" alt="Gon freecss">
<h2 id="img-caption"> After two years of absence </h2>
</div>
<h2> Who is Monkey D Luffy? </h2>
<p id="tribute-info">
Monkey D. Luffy is the captain of the Straw hat pirates. He is the one who brought together the band of misfits we know today. Sporting his signature red and blue attire with his iconic strawhat, this pirate has made waves in both Paradise and the New
World. </p>
<p> With his gomu gomu no mi and his exceptional haki, he has attained power most did not think he could even scratch. His journey has been a great one, and his grandest feats have been recorded.
</p>
<div id="main_info">
<h2>
<b> pre-marineford war feats of Luffy and his crew </b>
</h2>
<ul>
<li> Set sail on a tiny row boat all on his own. </li>
<li> Recruited the pirate hunter Zoro (the swordsman) of the east blue. </li>
<li> Him and Zoro defeated the Captain Clown Buggy. Cat burglar Nami begins to accompany them. </li>
<li> With the aid of "Captain Usopp", defeats Kuro and his crews and foils their plans in Syrup Village. Also recruits Usopp and acquires the going merry </li>
<li> Defeats Krieg on the Baratie and recruits Sanji (the cook) </li>
<li> His crew defeats the Arlong fishman pirates. He personally defeats Arlong and officially recruits Nami (the cat Burglar) </li>
<li> Miraclously escaped execution from the hands of Captain Buggy and capture by Marine Captain Smoker. </li>
<li> Recruited the reindeer Chopper (the doctor) on Drum island after defeating King Wapol</li>
<li> Escorted Princess Vivi to Alabasta from whisky Peak relatively safely </li>
<li> His crew took down the Baroque works organization in Alabasta and helped princess Vivi stop a rebellion in Alabasta. Also defeated the leader of Baroque, the Shichibukai Crocodile pretty much singlehandedly. </li>
<li> Punched Bellamy in the face (felt so good). </li>
<li> His crew went to the sky island of Jaya and Luffy defeated god. (Yeah pretty much beat god) </li>
<li> Survived an encounter with one of the marine Admirals, Admiral Aokiji </li>
<li> His crew defeated the Cp9, with him defeating the strongest one. Saved Robin from Enies lobby and also managed to escape it. Evaded the buster call. Robin officially becomes a strawhat (the architect) </li>
<li> Recruited the perveted cyporg Franky (the shipwright) </li>
<li> Defeated another Shichibukai Gecko Moria and got his shadow back within 12 hours of it being stolen. Recruited the human skeleton Brook (the musician)</li>
<li> Somehow, evaded capture from the shichibukai Kuma, Marine Admiru Kizaru, and the pacifista, but his crew got separated. </li>
<li> Singlehandedly and unintentionally made the Kuja princess Boa Hancock (the most beautiful human woman in the world, and does not give a damn.) </li>
<li> With Hancock's help, infiltrated Impel down (which he was the first to do). </li>
<li> Survived being poisoned by the Warden of Impel Down and Escaped awith a handful of prisoners</li>
<li> Survived the war at marineford </li>
</ul>
</div>
<footer> For more descriptive info on luffy and see where his journey has lead him, <a id="tribute-link" href="https://onepiece.fandom.com/wiki/Monkey_D._Luffy" target="_blank"> "Get a detailed autobiography of luffy's life so far here" </a> </footer>
</body>
</html>
@import url(https://fonts.googleapis.com/css?family=Norican);
@import
url(https://fonts.googleapis.com/css?family=Dosis);
h1 {
text-align: center;
font-size: 3rem;
font-family: Norican;
color:rgb(0,0,210);
}
h2 {
font-size: 2.1rem;
font-family: Dosis;
color:rgb(0,0,210);
text-align: center;
}
.box1 {
display: block;
margin: auto;
border-radius: 20%;
padding: 0.1rem 2rem 0.1rem 2rem;
width: 70%;
background-image: linear-gradient(rgba(255,215,0,0.9),rgba(255,166,77,0.1) 50%);
}
#main {
background-image: linear-gradient( rgba(255,166,77,0.75) 10%, rgba(255,166,77,0.68));
}
#image {
display:block;
border-radius: 5%;
max-width: 100%;
width: 20rem;
height: auto;
margin: auto;
}
#img-div {
display:block;
margin: auto;
max-width: 60%;
border-radius: 5%;
padding: 1em 2em 1em 2em;
background-image: linear-gradient(225deg, rgba(255,166,77,0.1) 40%, rgba(0, 50, 255, 0.99));
}
#img-caption {
font-family: Dosis;
font-size: 1.4em;
color: rgb(255,140,25);
}
p {
font-family: Dosis;
font-size: 1.45em;
line-height: 1.25em;
margin: 2% 0% 5% 0%;
padding: 0em 1.5em 0em 0.8em;
text-indent: 1.5em;
color:rgb(0,0,200);
}
ul {
line-height: 1.55em;
text-indent: 0.4em;
margin: 2em 0em 2em 2.5em;
padding: 0em 1.5em 0em 0em;
font-family: Dosis;
font-size: 1.45em;
color:rgb(0,0,200);
}
footer
{
font-family: Dosis;
font-size: 1em;
color:rgb(0,0,100);
}
#tribute-link {
font-family: Dosis;
font-size: 150%;
color: black;
}
Also see: Tab Triggers