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.
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Tribute to Hidetaka Miyazaki</title>
</head>
<body>
<main>
<header>
<div class="hd-img">
<h1>Hidetaka Miyazaki</h1>
<img id="bg-img" src="https://www.linkpicture.com/q/DS.jpg" alt="Dark souls img">
<img id="Miyazaki-img" src="https://www.linkpicture.com/q/miyazaki_2.png" alt="Hidetaka_Miyazaki">
</div>
</header>
<hr class="divider">
<div class="h2">
<h2 id="Miyazaki-info">Who is Hidetaka Miyazaki?</h2>
</div>
<fieldset class="biography-des">
<p id="description">Miyazaki was born between 1974 and 1975 and grew up "tremendously poor" in the city of Shizuoka; he says he had no ambitions during his childhood. Despite this, he was an avid reader, but because his parents could not afford to buy him books or manga, he had to borrow them from his local library. When he encountered passages in his reading that he could not understand, he tried to fill in the gaps using his imagination and accompanying illustrations, a stratagem that Miyazaki took as inspiration for some of the game design ideas in his video games. In addition, his parents prevented him from playing video games until he was old enough to attend college, so he played game-books and board games such as Sortilegio and Dungeons & Dragons instead.
<br>
<br>
In college he earned a bachelor's degree in social sciences from Keio University, after which he began working for the Oracle Corporation. When, on the advice of a friend, he played the 2001 video game ICO, he decided to pursue a career as a video game author, and in 2004 he joined FromSoftware as a game designer for the Armored Core series. He later became known internationally for directing the Souls series, starting with Demon's Souls in 2009.
</p>
</fieldset>
</div>
<div class="infl-bg">
<hr class="divider">
<div class="h2">
<h2 id="Miyazaki-influences">What are his influences?</h2>
</div>
<fieldset class="influences-des">
<p id="description">
Miyazaki's influences range from the works of various writers, mangaka, and other game designers to Asian and European architecture. In his video games, particularly the Souls series, Miyazaki often implements elements such as high difficulty, strong visual and environmental storytelling, and a great deal of background information about the setting and characters, mostly presented through color text.
<br>
<br>
Miyazaki's other influences include, games such as ICO, the early chapters of Dragon Quest, The Legend of Zelda, and the King's Field series, manga such as Berserk, Saint Seiya, The Bizarre Adventures of JoJo, and Devilman, the literary works of H. P. Lovecraft, Bram Stoker, George R. R. Martin, and Umberto Eco, librogames such as Steve Jackson's Sorcery! and RuneQuest. His philosophy is also influenced by psychology, sociology, and human history.
</p>
</fieldset>
</div>
<div class="games-bg">
<hr class="divider">
<div class="h2">
<h2 id="Miyazaki-games">Some of his games:</h2>
</div>
<fieldset class="games-des">
<nav id="games">
<ul class="games-ul">
<li class="Souls"><a href="<!--Dark souls trilogy link-->">Dark Souls Trilogy (2011/2016)<img id="souls-trilogy" src="https://www.linkpicture.com/q/DS-trilogy.webp" alt="souls"></a></li> <br><br>
<li class="Bloodeborne"><a href="<!--Bloodborne-->"> Bloodborne (2015) <img id="bloodeborne" src="https://www.linkpicture.com/q/Bloodeborne.jpg" alt="bloodborne"></a></li> <br><br>
<li class="Sekiro"><a href=" <!--Sekiro: Shadows Die Twice */"> Sekiro: Shadows Die Twice (2019) <img id="sekiro" src="https://www.linkpicture.com/q/Sekiro.jpg" alt="sekiro"></a></li> <br><br>
<li class="Elden Ring"><a href="<!--Elden Ring */"> Elden Ring (2022)<img id="elden-ring" src="https://www.linkpicture.com/q/Elden-Ring.jpg" alt="elden ring"></a></li>
</ul>
</nav>
</fieldset>
</div>
</main>
</body>
</html>
@media (prefers-reduced-motion: no-preference) {
* {
scroll-behavior: smooth;
}
}
body {
background-color: #000000;
opacity: 99%;
width: 100%;
height: 100%;
overflow-x: hidden;
}
#bg-img{
width: 70%;
opacity: 16%;
}
#bg-img, .hd-img{
height: 300px;
}
.hd-img{
width: 100%;
background-color: black;
display: absolute;
position: relative;
top: -50px;
left: 0;
}
#Miyazaki-img{
width: 25%;
height: 250px;
float: right;
padding-right: 5px;
margin-top: 20px;
}
h1{
font-size: 45px;
color: #f1c232;
text-shadow: 5px 3px 30px #bd9f40;
text-align: left;
padding-top: 20px;
padding-right: 25px;
margin-top: -50px;
}
h1, li, body{
font-family: 'optimusprincepsregular';
src: url('optimusprinceps-webfont.woff2') format('woff2'),
url('optimusprinceps-webfont.woff') format('woff');
font-weight: normal;
font-style: italic;
}
#Miyazaki-img, h1, ul{
position: relative;
}
p{
font-size: 19px;
font-size: 2.2vw;
color: white;
}
.divider{
width: 96%;
height: 0;
color: white;
background-color: white;
display: relative;
position: absolute;
margin-top: 30px;
margin-left: 20px;
padding-top: 0;
box-shadow: 0px 1px 8px #fff2cc;
}
.bio-bg{
width: 100%;
display: block;
position: absolute;
top: 300px;
left: 0;
z-index: 1
}
.h2{
display: flex;
position:absolute;
width: 100%;
height: 5px;
}
#Miyazaki-info, #Miyazaki-influences, #Miyazaki-games{
text-align: left;
font-size: 35px;
color: white;
opacity: 95%;
text-shadow: 2px 2px 15px #a18a46;
padding-top: 30px;
margin-left: 50px;
}
.biography-des{
display: block;
position: relative;
width: fit-content;
block-size: fit-content;
border-color: #a18a46;
box-shadow: -1px -1px 8px -1px #a18a46;
border-width: 4px;
background-color: #0a0a0a;
margin-top: 120px;
margin-left: 25px;
margin-right: 25px;
paddding-top: 0;
}
.infl-bg{
width: 100%;
display: block;
position: absolute;
top: 920px;
left: 0;
z-index: 1
}
.influences-des{
display: flex;
position: relative;
width: fit-content;
block-size: fit-content;
border-color: #a18a46;
box-shadow: -1px -1px 8px -1px #a18a46;
border-width: 4px;
background-color: #0a0a0a;
margin-top: 120px;
margin-left: 25px;
margin-right: 25px;
paddding-top: 0;
}
.games-bg{
width: 100%;
display: block;
position: absolute;
top: 1425px;
left: 0;
z-index: 1
}
.games-des{
display: block;
position: relative;
width: fit-content;
block-size: fit-content;
border-color: #a18a46;
box-shadow: -1px -1px 8px -1px #a18a46;
border-width: 4px;
background-color: #0a0a0a;
margin-top: 120px;
margin-left: 25px;
margin-right: 25px;
paddding-top: 0;
}
.games-ul{
font-size: 60px;
list-style: none;
padding-left: 2px;
padding- right: 2px;
}
#souls-trilogy{
dispaly: inline-block;
float: right;
width: 22%;
border: 4px solid silver;
box-shadow: -1px -1px 8px -1px #a18a46;
margin-top: -40px;
margin-right: 15px;
padding: 1px 1px;
}
#bloodeborne{
dispaly: inline-block;
float: right;
width: 22%;
border: 4px solid silver;
box-shadow: -1px -1px 8px -1px #a18a46;
margin-top: -60px;
margin-right: 15px;
padding: 1px 1px;
}
#sekiro{
dispaly: inline-block;
float: right;
width: 22%;
border: 4px solid silver;
box-shadow: -1px -1px 8px -1px #a18a46;
margin-top: -23px;
margin-right: 15px;
padding: 1px 1px;
}
#elden-ring{
dispaly: inline-block;
float: right;
width: 22%;
border: 4px solid silver;
box-shadow: -1px -1px 8px -1px #a18a46;
margin-top: -23px;
margin-right: 15px;
padding: 1px 1px;
}
.biography, .influences, .games, a{
text-decoration: none;
color: #ffd966;
text-shadow: 5px 5px 60px #ffd966;
}
Also see: Tab Triggers