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.
<div id="main">
<header>
<h1 id="title"><em><small>This is my tribute to </small></em><br>Ultima Online</h1>
</header>
<div id="img-div">
<figure>
<img id="image" src="https://res.cloudinary.com/rubemalmeida/image/upload/v1534529847/dev/ultimaonline.jpg" alt="Background image shown during game installation." style="width:100%">
<figcaption id="img-caption">Installation background image.</figcaption>
</figure>
</div>
<div id="tribute-info">
<h2>About</h2>
<p>Ultima Online (UO) is a massively multiplayer online role-playing game (MMORPG), released on September 24, 1997, by Origin Systems.<br>Ultima Online is a fantasy role-playing game set in the Ultima universe. It is known for its extensive player versus player combat system. Since its release, it has added eight expansion packs, a booster pack and dozens of free content updates. The release of Ultima Online: Kingdom Reborn in 2007 brought a new game engine with upgraded visuals.</p>
<h2>History</h2>
<p><span class="year-ref">1998</span>Lost Lands, along with an in-game chat system and new creatures. Also known as T2A. It was released in two boxed versions with different artwork and a single manual.</p>
<p><span class="year-ref">2000</span>Doubled the size of the world, adding a second copy. The worlds were called Felucca and Trammel, after the two moons in Ultima's Britannia world. The Trammel world did not allow player killing and was geared towards fighting monsters. Felucca adopted a darker, more foreboding look and kept its player vs player roots.</p>
<p><span class="year-ref">2001</span>ncluded a 3D client to compete with 3D competition like EverQuest. A special Third Dawn-only land was created, called Ilshenar. It was accessible only to 3D clients until the release of Lord Blackthorn's Revenge.</p>
<p><span class="year-ref">2002</span>Brought "a dark new world based on new characters from Todd McFarlane" to Ultima Online with improved game artificial intelligence, in-game help and improved character creation.</p>
<p><span class="year-ref">2003</span>Brought the landmass of Malas with space for new housing, two new character classes (Paladin and Necromancer) and the ability to customize house designs. The item system was reworked with this expansion. Armor resistance was split into five types and many new properties that affected game play were added to weaponry. As good equipment became vital, this expansion also brought with it item insurance. Subscriptions reached a peak of over 250,000 accounts following the release.</p>
<p><span class="year-ref">2004</span>Brought ancient Japanese mythology and folklore to the game, two new classes (Ninja and Samurai) and a new area to explore, the Tokuno Islands. The new class skills shifted the balance of player vs. player combat away from mage dominance.</p>
<p><span class="year-ref">2005</span>Introduced a new race, elves, and a new skill, spellweaving. Several dungeons were also added.</p>
<p><span class="year-ref">2009</span>Featured a new playable race, the Gargoyle; additional play areas; and three new skills: imbuing, throwing and mysticism. Stygian Abyss also featured significant upgrades to the Kingdom Reborn client, which has been renamed to the Enhanced Client. The original client is still supported.</p>
<p><span class="year-ref">2015</span>New Areas: Shadowguard and Valley of Eodon; two new champion spawns; сompleting the virtue system; lots of new items; new skill-masteries; updates to classic housing.</p>
<p>All this content is from Wikipedia, to know more about Ultima Online, visit <a id="tribute-link" href="https://uo.com/" target="_blank">www.uo.com</a></p>
</div>
<footer>
<hr>
<p>This page has been authored and coded by Rubem Almeida / freeCodeCamp - Build a Tribute Page Challenge</p>
</footer>
</div>
@import url('https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300i,700');
body{
margin: 0px;
padding: 0px;
background: linear-gradient(53deg,#B1814E,#D7AD82);
}
#main {
margin: 0px;
padding: 10px;
font-family: 'Open Sans Condensed', sans-serif;
display:block;
margin: auto;
max-width: 800px;
background: linear-gradient(180deg,#FFF9F3,#FFEEDC);
box-shadow: 0px 10px 20px rgba(92, 54, 15,0.75), 0 6px 6px rgba(92, 54, 15,0.75);
text-align: justify;
}
header, #img-div, figure, figcaption, img, #tribute-info, footer {
display:block;
margin: auto;
max-width: 800px;
}
#title {
text-align: center;
font-size: 45px;
line-height: 40px;
}
#image {
outline: 10px solid #fff5d7;
outline-offset: -10px;
}
#img-caption{
font-size: smaller;
}
.year-ref {
margin-right: 15px;
font-weight: 600;
}
footer {
font-size: smaller;
text-align: center !important;
}
Also see: Tab Triggers