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.
<main id="main">
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<h1 id="title" class="heading">
Studio Ghibli</h1>
<article id="tribute-info">
<p>Founded by director Hayao Miyazaki, executive director Toshio Suzuki, Isao Takahata, and Yasuyoshi Tokuma.</p>
<h2 class="heading">Introduction:</h2>
<p>Studio Ghibli was founded in June 1985 after the success of the film "Nausicaa of the Valley of the Wind". Studio Ghibli has since successfully worked with Western companies such as Disney in order to reach international audiences.</p>
<div id="img-div">
<img id="image" src=https://i.imgur.com/a8nHRiZ.png>
<figcaption id="img-caption">
Since the founding of Studio Ghibli, the movies and companies have enjoyed critical acclaim from around the world. Pictured here is the de facto mascot, Totoro, from the film <u>My Neighbor Totoro</u>.
</figcaption>
</div>
<section id="tributeinfo">
<h3 id="headline"> Here's a timeline of some of the works of Studio Ghibli.</h3>
<ul>
<li><strong>1984</strong>: <u>Nausicaä of the Valley of the Wind</u> is released. Its success is the stepping stone for the launch of Studio Ghibli.</li>
<li><strong>June 1985</strong>: Studio Ghibli is founded.</li>
<li><strong>1986</strong>: <u> Laputa: Castle in the Sky</u>.
</li>
<li><strong>1988</strong>: <u>Grave of the Fireflies</u> and <u>My Neighbor Totoro</u> are both produced at the same year.
</li>
<li><strong>1989</strong>: <u>Kiki's Delivery Service</u>
</li>
<li><strong>1991</strong>: <u>Only Yesterday</u>
</li>
<li><strong>1992</strong>: <u>Porco Rosso</u>
</li>
<li><strong>1994</strong>: <u>Pom Poko</u>
</li>
<li><strong>1995</strong>: <u>Whisper of the Heart</u>
</li>
<li><strong>1997</strong>:<u> Princess Mononoke</u>
</li>
<li><strong>1999</strong>: <u>My Neighbors the Yamadas</u>
</li>
<li><strong>2001</strong>: <u>Spirited Away</u>
</li>
<li><strong>2002</strong>:<u>The Cat Returns</u>
</li>
<li><strong>2004</strong>:<u>Howl's Moving Castle</u>
</li>
<li><strong>2006</strong>:<u>Tales from Earthsea</u>. This is the lowest rated film from the studio.
</li>
<li><strong>2008</strong>:<u>Ponyo</u>
</li>
<li><strong>2010</strong>:<u>Arrietty</u>
</li>
<li><strong>2011</strong>:<u>From Up on Poppy Hill</u>
</li>
<li><strong>2013</strong>:<u>The Wind Rises</u> and <u>The Tale of Princess Kaguya</u> are both produced. Princess Kaguya is a Japanese legend.
</li>
<li><strong>2014</strong>:<u>When Marnie was there</u>
</li>
<li>The studio is also working on a movie called <u>How Do You Live?</u> which is stated to be released in a future, undetermined date.
<p> Here is a timeline for the works that appeared on television</p>
<li><strong>1993</strong>: the film <u>Ocean Waves</u>
</li>
<li><strong>2014</strong>: the television series <u>Ronja, the Robber's Daughter</u>
</ul>
This is by no means a completely exhaustive list. If you have the time, you should click the link to read more about this amazing studio and their incredible works.
<a id="tribute-link"
href="https://en.m.wikipedia.org/wiki/List_of_Studio_Ghibli_works" target="_blank"
> Wikipedia</a>
</section>
</article>
</main>
html{
margin-top: 30px;
font-size: 15px;
}
@media (max-width: 420px){
h1{
text-align: center;
font-family: font-family: Inconsolata, monospace;
font-size: 35px;
}
}
h2{
text-align: center;
font-family: ;
font-size: 35px;
}
h3{
text-align: center;
font-family: ;
font-size: 35px;
}
body{
background-color: #AFEEEE;
font-family: arial;
font-size: 17px;
line-height: 1.6;
text-align: left;
color: #C71585;
margin: 0;
width: 70%;
}
div{
text-align: center;
display: inline-block;
}
img{
max-width: 95%;
display: block;
height: auto;
margin: 0 auto;
}
Also see: Tab Triggers