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.
<link href="https://fonts.googleapis.com/css?family=Major+Mono+Display|Thasadith" rel="stylesheet">
<div id="main">
<div id="floating-platform">
<h1 id="jhope"> J-Hope </h1>
<h2 id="title"> Jung Hoseok</h2>
<div id="jhope-description"> member of BTS and record setting solo artist</div>
<div id="img-div" class="img-border">
<p id="image"><img src="https://i.ibb.co/CwsFjGJ/jhope.jpg" alt="Jung Hoseok lounging on a speaker case." class="responsive" </p>
<p id="img-caption"><i>Jung Hoseok lounging on a speaker case, posing for BTS' album "Love Yourself: Tear".</i></p>
</div>
<div id="hoseok-origin" class="right"> hoseok's origin</div>
<div id="tribute-info" class="left">
Jung Hoseok was born February 18,1994 in Gwangju, South Korea. Hosoek grew up with a passion for dance, he attended dance classes at Gwangju Music Academy and was part of an underground dance team "Neuron". His dance studies exposed him to the world of
singing. He was eventually scouted by Big Hit Entertainment company and became the third member of BTS. The company would later convince him to begin rapping during his trainee days.
</div>
<div id="hope-in-bts" class="right"> jhope in bts </div>
<div id="tribute-info-group" class="left">
Hoseok and the other members debuted as BTS on June 13, 2013. Hoseok hoped to be the hope of BTS and thus decided to debut with the stage name "J-Hope". The group started from the bottom but slowly rose to success. The group would be one of the first
in the current generation of K-Pop to penetrate the American market. They have collabed with <a href="https://www.youtube.com/watch?v=WP7duqy60h8" target="_blank" id="steve-link">Steve</a> <a href="https://www.youtube.com/watch?v=8JVytJm8X2g"
target="_blank" id="aoki-link">Aoki</a>, <a href="https://www.youtube.com/watch?v=Cqe37sLrH2I" target="_blank" id="desiigner-link">Desiigner</a>, <a href="https://www.youtube.com/watch?v=K1scjjbfNsk" target="_blank" id="nicki-link">Nicki Minaj</a> and the <a href="https://www.youtube.com/watch?v=RL_3D5gLwbM" target="_blank" id="chainsmokers=link">Chainsmokers</a>. They attended the Billboard Music Awards, winning Top Social Artist of the Year two years in a row and performed their track "Fake
Love", performed at the <a href="https://www.youtube.com/watch?v=rH1PVvFj8cE" target="_blank" id="ama-link">American Music Awards</a>, appeared on the <a href="https://www.youtube.com/watch?v=jLM2ibaRbrk" target="_blank" id="corden-link">Late Late Show with James Corden</a>,
<a href="https://www.youtube.com/watch?v=pjscAFB-U4o" target="_blank" id="kimmel-link">Jimmy Kimmel Live!</a>, <a href="https://www.youtube.com/watch?v=9sRQQRiltrE" target="_blank" id="ellen-link">the Ellen DeGeneres Show</a>, <a href="https://www.youtube.com/watch?v=x5HUs5IxFc0" target="_blank" id="tonight-link">the Tonight Show</a> <a href="https://www.youtube.com/watch?v=W4mmfzFazoI" target="_blank" id="fallon-link">Starring Jimmy Fallon</a>, <a href="https://www.youtube.com/watch?v=wBEu2Tmy_L4" target="_blank" id="norton-link">the Graham Norton Show</a> and <a href="https://www.youtube.com/watch?v=MvF8-sQqaqY" target="_blank" id="morning-link">Good Morning America</a>. The group also spoke at a <a
href="https://www.youtube.com/watch?v=ZhJ-LAQ6e_Y" target="_blank" id="un-link">United Nations</a> conference and presented at the <a href="https://www.youtube.com/watch?v=K4H3fsqDbWA " target="_blank " id="grammy-link">GRAMMYs</a> in 2019. </div>
<div id="hope-world" class="right"> hope world </div>
<div id="tribute-info-solo" class="left">
Although they have found much success as a group, J-Hope has also had success in his solo work. On March 1, 2018 J-Hope released his first solo mixtape, <i>Hope World</i>. Along with this mixtape he released 2 solo music videos for <a href="https://www.youtube.com/watch?v=OK3GJ0WIQ8s
"target="_blank" id="daydream-link"><i>Daydream</i></a> and <a href="https://www.youtube.com/watch?v=8O_MwlZ2dEg" target="_blank" id="airplane-link">
<i>Airplane</i></a>. <i>Hope World</i> peaked on Billboard200 at 38 making J-Hope the highest charting solo act up to that point. On top of this, Hoseok continues to pursue his passion for dance as the main dancer of BTS. He has had many <a href="https://www.youtube.com/watch?v=iJJSh-eEdRk " target="_blank " id="evil-link ">powerful</a> performances and uploads dance videos under the title <a href="https://www.youtube.com/watch?v=_hShhQgrL2o " target="_blank" id="hope-street-link"><i>Hope on the Street</i></a>.
</div>
<p id="wiki-jhope" class="right"> To learn more about Jung Hoseok's accomplishments and artistry visit his <a href="https://en.wikipedia.org/wiki/J-Hope" target="_blank" id="tribute-link">wikipedia page.</a></p>
<p id="mixtape-jhope" class="right"> Download and listen to his mixtape for free: <a href="https://twitter.com/bighitent/status/969226854786777088?lang=en" target="_blank" id="mixtape-link">HOPE WORLD.</a></p>
</div>
</h3>
</div>
/* background elements */
#main {
font-family: 'Thasadith', sans-serif;
margin: 0px 0px 0px 0px;
background-color: ##EFFEE9;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
overflow: auto;
}
#floating-platform {
background-color: #FFE7ED;
margin: 100px 150px 100px 150px;
position: absolute;
}
/* text elements */
#jhope {
text-transform: uppercase;
font-size: 15px;
text-align: right;
padding-top: 60px;
padding-right: 50px;
margin-bottom: 0px;
padding-bottom: 0px;
opacity: .9;
color: #D0CCEC;
}
#title {
text-transform: uppercase;
font-size: 40px;
text-align: right;
padding-top: 0px;
padding-right: 50px;
margin-top: 0px;
margin-bottom: 0px;
padding-top: 0px;
color: #D0CCEC;
}
#jhope-description {
text-align: right;
padding-right: 55px;
padding-top: 0px;
margin: 0px 0px 50px 0px;
text-transform: lowercase;
font-size: 12px;
color: #6C8493;
}
.responsive {
width: 100%;
height: auto;
}
#img-caption {
padding-top: 0px;
margin-top: 0px;
text-transform: lowercase;
text-align: center;
color: #6C8493;
}
#tribute-info {
text-align: right;
margin-left: 40px;
padding-top: 0px;
padding-bottom: 40px;
line-height: 35px;
color: #6C8493;
}
#tribute-info-group {
text-align: right;
margin-left: 40px;
padding-top: 0px;
padding-bottom: 40px;
line-height: 35px;
color: #6C8493;
}
#tribute-info-solo {
text-align: right;
margin-left: 40px;
padding-top: 0px;
padding-bottom: 100px;
line-height: 35px;
color: #6C8493;
}
#hoseok-origin {
text-align: right;
margin-bottom: 0px;
margin-top: 80px;
font-size: 21px;
color: #D0CCEC;
}
#hope-in-bts {
text-align: right;
margin-bottom: 0px;
margin-top: 80px;
font-size: 21px;
color: #D0CCEC;
}
#hope-world{
text-align: right;
margin-bottom: 0px;
margin-top: 80px;
font-size: 21px;
color: #D0CCEC;
}
#wiki-jhope {
text-align: right;
margin-bottom: 0px;
margin-top: 80px;
font-size: 15px;
color: #544E76;
text-transform: uppercase;
}
#mixtape-jhope {
text-align: right;
margin-bottom: 20px;
margin-top: 3px;
font-size: 15px;
color: #544E76;
text-transform: uppercase;
}
/* image elements */
#image{
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 0px;
margin-top: 0px;
width: 65%;
padding:0px 0px 0px 0px;
max-width: 100%;
z-index: 4;
}
.responsive {
width: 100%;
height: auto;
}
/* columns */
.column {
float: left;
}
.left {
width: 77%;
}
.right {
width: 95%;
}
/* links */
a:link {
color: #D0CCEC;
}
a:visited {
color: #ABCDD0;
}
a:hover{
color: #6C8493;
}
a:active {
color: #EFFEE9;
}
Also see: Tab Triggers