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.
<h1>
<span>K-pop fandom dictionary</span>
</h1>
<dl class="dictionary">
<div class="term">
<dt>
<span>All-kill</span>
</dt>
<dd>
A song receives an “all-kill” distinction when it simultaneously reaches the #1 spot on all Korean music charts
<table>
<thead>
<tr>
<th>#1 spot</th>
<th class="center">RAK</th>
<th class="center">CAK</th>
<th class="center">PAK</th>
</tr>
</thead>
<tbody>
<tr>
<td>all realtime charts</td>
<td class="center">✕</td>
<td class="center">✕</td>
<td class="center">✕</td>
</tr>
<tr>
<td>all daily charts</td>
<td></td>
<td class="center">✕</td>
<td class="center">✕</td>
</tr>
<tr>
<td>Instiz Weekly Chart</td>
<td></td>
<td></td>
<td class="center">✕</td>
</tr>
</tbody>
</table>
</dd>
</div>
<div class="term">
<dt>
<span>Akgae</span> 악개 ahk·geh
</dt>
<dd>
A fan who only stans one member of a group and actively dislikes other members. Shortened form of <strong>악</strong>성 <strong>개</strong>인 <strong>ak</strong>sung <strong>gae</strong>in “a <a href="http://endic.naver.com/krenEntry.nhn?sLn=en&entryId=4365ace3b6ce43b7bc8334b8b6bdcab8&query=%EC%95%85%EC%84%B1">malicious</a> <a href="http://endic.naver.com/krenEntry.nhn?sLn=en&entryId=988df7dfd1bb43eba725026a329ada45&query=%EA%B0%9C%EC%9D%B8">individual</a> fan”
</dd>
</div>
<div class="term">
<dt>
<span>Bias</span>
</dt>
<dd>
Your favorite member in a group, the idol you’re biased toward
<dl>
<div class="term">
<dt>Ult/Ultimate bias</dt>
<dd>The one idol you love most compared to alllllll other idols</dd>
</div>
<div class="term">
<dt>Bias wrecker</dt>
<dd>An idol you have a fondness for, but is not your bias in your bias’ group
</div>
</dl>
</dd>
</div>
<div class="term">
<dt>
<span>Daesang</span> 대상 deh·sahng
</dt>
<dd>
At the end-of-year music award shows, the Daesang award is an honor given to one artist based on record releases and album sales. Literally “<a href="http://endic.naver.com/krenEntry.nhn?sLn=en&entryId=d4627e0c7e4e4fbf84390da6b12c157f&query=%EB%8C%80%EC%83%81">grand prize</a>”
</dd>
</div>
<div class="term">
<dt>
<span>I-Fan</spna>
</dt>
<dd>International fan. A kpop fan who doesn’t live in Korea. Kpop fans are all over the world, so don’t assume all non-Korean fans are Western/American fans!</dd>
</div>
<div class="term">
<dt>
<span>_____-line</span>
</dt>
<dd>The term for grouping idols — think of it as the Western slang equivalent of "squad" or "crew". You’ll usually see this referred to as [year of birth]-line, [position]-line, etc.</dd>
</div>
<div class="term">
<dt>
<span>Netizen/knetz</spna>
</dt>
<dd>Portmanteau for “internet citizen.” Korean netizens are notoriously toxic in their critiques of idols (especially appearance) and blowing scandals out of proportion</dd>
</div>
<div class="term">
<dt>
<span>Point choreography</span>
</dt>
<dd>The point dance or point choreography is the key memorable move of a song’s choreography, often featured in the chorus or bridge
</div>
<div class="term">
<dt>
<span>Project group</span>
</dt>
<dd>
A temporary group, ususally formed from a survival TV show (such as PD101 or The Unit) or made of idols from other groups (such as Cosmic Girls and Weki Meki forming WJMK)</dd>
</div>
<div class="term">
<dt>
<span>Sajaegi</span> 사재기 sah·jeh·kee
</dt>
<dd>A method of manipulating chart rankings by a group’s own agency bulk-buying their albums. Literally “<a href="http://endic.naver.com/krenEntry.nhn?sLn=en&entryId=2ea42459322a44e1889ea0480713178b&query=%EC%82%AC%EC%9E%AC%EA%B8%B0">stockpiling</a>”
</div>
<div class="term">
<dt>
<span>Sasaeng</span> 사생 sah·seng
</dt>
<dd>Stalker fan, <em>not</em> in a cute “stan” way. 사 sah “<a href="http://endic.naver.com/enkrEntry.nhn?sLn=en&entryId=5d76e60c545b419798d447c5ca6e7d01&query=private">private</a>” 생 saeng “<a href="http://endic.naver.com/krenEntry.nhn?sLn=en&entryId=3c483a1f3deb495b877ad48835482e29&query=%EC%83%9D">life</a>” — referencing the fan’s invasion of an idol’s private life
</div>
<div class="term">
<dt>
<span>Sub-unit</span>
</dt>
<dd>A smaller group within a larger group. Sub-units have their own name and concept, typically exploring a different genre than the main group focuses on</dd>
</div>
</dl>
/*
$color_primary: #a083bc;
$color_secondary: #0c004f;*/
$color_primary: #2EC2B0;
$color_secondary: #c0d2d4;
$color_secondary--rgba: rgba($color_secondary, 10%);
body {
font-family: "Montserrat", sans-serif;
text-transform: lowercase;
font-weight: 400;
line-height: 1.666;
background: $color_secondary;
color: #555;
}
h1 {
font-weight: 900;
font-size: 500%;
text-align: center;
margin-top: 4rem;
color: #fff;
line-height: 1.2;
span {
padding: 5px 15px;
background: $color_primary;
}
}
table {
border-collapse: collapse;
width: 100%;
font-size: 90%;
max-width: 100%;
text-align: left;
.center {
text-align: center;
}
}
th,
td {
padding: 0.5rem;
vertical-align: top;
}
th {
text-align: inherit;
}
thead th {
font-weight: 600;
vertical-align: bottom;
color: $color_primary;
border-bottom: (2 * 1px) solid lighten($color_primary, 35%);
}
td {
border-top: 1px solid lighten($color_primary, 40%);
}
.dictionary {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 4rem auto;
max-width: 90%;
}
a {
color: inherit;
font-weight: 600;
text-decoration: none;
border-bottom: solid 2px lighten($color_secondary, 10%);
&:hover {
border-color: $color_primary;
}
}
.dictionary>.term {
text-align: center;
max-width: 20rem;
margin-bottom: 3rem;
padding: 2rem;
border-radius: 3px;
box-shadow:
0 2px 0 rgba(0,0,0,0.05),
0 5px 20px rgba(0,0,0,0.1);
background-color: #fff;
transition: all 100ms ease-in-out;
&:hover {
transform: scale(1.01) translateY(-4px);
box-shadow:
0 2px 0 rgba(0,0,0,0.05),
0 3px 10px rgba(0,0,0,0.1),
0 5px 20px rgba(0,0,0,0.2);
}
}
.dictionary>.term>dt {
margin-bottom: 1rem;
}
dt {
color: $color_primary;
line-height: 1;
span {
font-size: 200%;
font-weight: 900;
}
}
dd {
font-size: 92.5%;
margin-left: 0;
}
dd dt {
margin-top: 1rem;
margin-bottom: 0.25rem;
font-weight: 600;
font-size: inherit;
}
dd dl {
font-size: 90%;
margin: 1rem auto 0 auto;
letter-spacing: 0.33px;
max-width: 15rem;
}
strong {
color: $color_primary;
}
dd dl .term {
margin-bottom: 1rem;
}
dd strong {
border-bottom: solid 1px rgba(255,255,255,0.5);
}
Also see: Tab Triggers