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.
<!--
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
-->
<html>
<head>
<title>Tribute Page Zahard King of the Tower</title>
</head>
<body>
<main id="main">
<h1 id="title">King Zahard</h1>
<p id="sub">The adventurer who changed the tower</p>
<figure id="img-div">
<img id="image" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSee-DYFSEQoEH7r4xOPD_taRogDj1F6eQ__w&usqp=CAU" alt="King Zahard in his youth">
<figcaption id="img-caption">King Zahard in his youth</figcaption>
</figure>
<section id="tribute-info">
<h2>The legend of the King</h2>
<p>In ancient times, when there was no civilization in the Tower, Zahard came into the Tower and built his own empire. Zahard conquered the Tower with the Great Warriors and gained the control of the first 134 Floors from the Floor Guardians. It is said he was the first person to form a contract with a Guardian of the Tower. This conquest is known among the Tower's residents as "The Great Journey". He became king through contracts with the Guardians.</p>
<p>On the day Zahard declared himself the King of the Tower he decided to stop climbing, thus hiding the Key of the Tower that would open the door leading to the higher Floors so that no one could go beyond the 134th Floor. It was later revealed that Zahard had split the Key of the Tower into two parts, the first part of which was turned into the 13 Month Series and the second part became melted rings given to Prince of the Red-light District.</p>
<p>There were two forgotten individuals in the history that Zahard created however: Arlen Grace and V. Zahard had been in love with Arlen and asked her to marry him, and was enraged when she refused and, alongside V, rebelled against him. He engaged them and their organization along with others who opposed him in a long war that would be known as the Age of Genesis. Zahard forced Arlen and V into hiding, branding them as fugitives. When he learned Arlen had a child, Zahard furiously tracked them down and killed the child in front of Arlen in what was described as being the most resentful and brutal manner. He would do his best to erase all traces of Arlen and V's existence. In time, Zahard became tired with the long war and decided to give the nations and rebel groups a chance of coexistence by sealing away their own war heroes within massive walls. At some point during this war, learning of Khel Hellam and Hidden Grove's desire to attack him using Khel's power to see fate, Zahard, who could see fate to an even greater extent, already knew everything about Khel's plan. While Khun Hynd Luch betrayed and led Hidden Grove away in exchange for their survival, Zahard allowed Khel to easily push through and confront him, where instead of him being asleep in a floating castle with no guard, Zahard himself was waiting for them at the end of the path. As Khel Hellam's team questioned on his identity, Zahard merely asked what he is to them and after describing himself as the first one to climb the Tower, the greatest Fisherman in battle and the pioneer of a civilization of mutual understanding among the people of the Tower, he revealed his identity by stating that they would definitely know him as King. He ridiculed Khel Hellam's disbelief, contemptuously dismissing his arrogance over his power to just slightly look into destiny and becoming blind to the truth staring right in his face, before he exploded the cliff they were standing on and challenged them to fight him, stating that the moment they fight would allow Khel to see the truth that he is really the King. Although the flashback only showed little more, with Zahard summoning multiple giant golden needles while Khel Hellam was still intent on fighting Zahard only to learn that the Hidden Grove cannot be reached and express horror that it was not the destiny he saw, Zahard easily slaughtered Team Khel Hellam while Po Bidau Lyborick Khun defeated the Hidden Grove. The Hidden Grove was spared but captured while seemingly no one in Khel's team but Khel himself survived and escaped capture. With Zahard having effectively won the war, his Empire became the primary force in the Tower and the Age of Coexistence began.</p>
<p>At some point after this, Zahard was stated to go into some form of hibernation. Even later on, Phantaminum slaughtered his way into Zahard's inner sanctum and apparently encountered the dormant king directly. Nothing is known about this encounter, save that Phantaminum left right after, and was never seen since.</p>
</section>
<h3>If you want to know more about this amazing character you can read his <a id="tribute-link" href="https://towerofgod.fandom.com/wiki/Zahard" target="_blank">wiki entry</a></h3>
</main>
</body>
<footer>
</footer>
</html>
main {
background-color: #100000;
}
h1 {
padding-top: 3%;
color: #ee0102;
text-align: center;
font-size: 5vw;
}
#sub {
color: #900001;
text-align: center;
font-style: italic;
font-size: 2.5vw;
}
section {
margin: 2%;
padding: 2%;
background: #cf1910;
text-align: justify;
font-family: Lucida Sans Unicode;
}
#image {
max-width: 100%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
border-radius: 2%;
}
#img-caption {
text-align: center;
padding: 0.5%;
}
h3 {
text-align: center;
padding-bottom: 2%;
color:#900001;
}
// !! 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