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>
<title id= "title">Tribute to Hayao Miyazaki</title>
<main id="main">
<h1>Tribute to Hayao Miyazaki</h1>
<h3> An Animation Legend</h3>
<figure id="img-div">
<img id="image" src= "https://www3.nhk.or.jp/nhkworld/en/ondemand/video/3004569/images/GXm0EzpKeE5yFHEiUxzc61SNW0WvqQetcby8fiom.jpeg"
alt= "Hayao Miyazaki working at his desk"/>
<figcaption id="img-caption"><strong>
Hayao Miyazaki, aged 79, is considered on par with animation pioneers like Walt Disney and Chuck Jones.</strong>
</figcaption>
</figure>
<section id="tribute-info">
<p>Born in 1941 at the onset of World War II, Miyazaki's early life was shaped by the desolation of the war and the rebuilding period thereafter. Miyazaki's early childhood would shape a lot of the enviromentalist and anti-war themes that would define Miyazaki's work. In 1963 Miyazaki began working at Toei Animation and would bounce around various studios, working on early animation projects like <i>Wolf Boy Ken</i> and <i>The Great Adventure of Horus, Prince of the Sun</i>. <br> <br>
However Miyazaki's star would truly start to rise when he directed a few episodes of the series <i>Lupin III</i>; which would lead to his first film director credit with <i>Lupin III: Castle of Cagliostro</i> in 1979. In 1984 Miyazaki would create his first truly original movie, <i>Nausicaä of the Valley of Wind</i>, widely considered on of the greatest animated films of the 80's. One year later Miyazaki would take much of that team that worked on <i>Nausicaä </i> and created Studio Ghibli, considered a powerhouse of animation to this day. For 28 years Miyazaki led Studio Ghibli and worked on 13 films, all of which are considered classic's.</p>
<h3><strong> List of all Studio Ghibli Films Miyazaki was involved in:</strong></h3>
<ul>
<li><strong>1986</strong>: <i>Castle in the Sky</i> - Director/Writer</li>
<li><strong>1988</strong>: <i>My Neighbor Toroto</i> - Dircetor/Writer</li>
<li><strong>1989</strong>: <i>Kiki's Delivery Service</i> - Director/Writer/Producer</li>
<li><strong>1992</strong>: <i>Porco Rosso</i> - Director/Writer</li>
<li><strong>1995</strong>: <i>Whisper of the Heart</i> - Writer</li>
<li><strong>1995</strong>: <i>On Your Mark - Director</i> </li>
<li><strong>1997</strong>: <i>Princess Mononoke</i> - Director/Writer</li>
<li><strong>2001</strong>: <i>Spirited Away</i> - Director/Writer</li>
<li><strong>2004</strong>: <i>Howl's Moving Castle</i> - Director/Writer</li>
<li><strong>2008</strong>: <i>Ponyo</i> - Director/Writer</li>
<li><strong>2010</strong>: <i>Arriety</i> - Writer</li>
<li><strong>2011</strong>: <i>From Up on Poppy Hill</i> - Writer</li>
<li><strong>2013</strong>: <i>The Wind Rises</i> - Director/Writer</li></ul><br/>
<figure>
<img id="image-2" src="https://studioghiblimovies.com/wp-content/uploads/2014/11/image0032.jpg" alt="screenshot from Nausicaa of the Valley of the Wind">
<figcaption><strong>While not the first movie made under their banner, <i>Nausicaa</i> is considered Studio Ghibli's first film.</strong></figcaption>
</figure>
<p>Miyazaki would choose to retire after the release of <i>The Wind Rises</i>, citing his age and the increased time it took him to make movies. However in 2016 Miyazaki came out of retirement for one last film, <i>How Do You Live?</i>, which as of 2020 had 36 minutes worth of animation finished. In this same timeframe Miyazaki also created his first full CG production, the short film <i>Boro the Caterpillar</i>, in 2018. Given his other flirtation with retirement in 1999, it would appear that Miyazaki's passion for art supercedes his plans to quit anytime soon.<br><br>
For more information on Hayao Miyazaki and his various achievements you can read up on his
<a id="tribute-link"
href="https://en.wikipedia.org/wiki/Hayao_Miyazaki"
target="_blank"
>Wikipedia entry</a
>.
</p><br>
<p id="quote"><i> "Of course if, as artists, we say that life is worth living and the world is worth living in then something good might come of it."</i> - Hayao Miyazaki</p>
</section>
</main>
html {
font-size: 10px;
}
body {
font-size:1.5rem;
text-align: center;
line-height: 1.5;
margin: auto;
padding: 2em;
font-family: sans-serif;
}
h1 {
font-size: 4rem;
margin: auto;
}
#image {
max-width: 600px;
display: block;
height: auto;
margin: auto;
width: 100%;
}
p {
text-align: justify;
max-width: 900px;
margin: auto;
font-size: 1.7rem;
}
h3{
font-size: 2rem;
text-align: center;
}
ul {
max-width: 550px;
margin: 10px auto;
text-align: justify;
line-height: 1.6;
}
#quote{
text-align: justify;
max-width: 400px;
margin: auto;
font-size: 1.5rem;
}
#image-2 {
max-width: 600px;
display: block;
height: auto;
margin: auto;
width: 100%;
}
// !! 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