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.
# Declaration of the Typographer (H1)
## The Present Wisdom of the Past Perfect (H2)
A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.
I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.
> When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains us, as it floats around us in an eternity of bliss; and then, my friend, when darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and absorb its power, like the form of a beloved mistress, then I often think with longing, Oh, would I could describe these conceptions, could impress upon paper all that is living so full and warm within me, that it might be the mirror of my soul, as my soul is the mirror of the infinite God! (blockquote)
## Philosophy of Language (H2)
O my friend -- but it is too much for my strength -- I sink under the weight of the splendour of these visions!
A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents.
I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.
#### The role of the sage kings (H4)
When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains us, as it floats around us in an eternity of bliss; and then, my friend, when darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and absorb its power, like the form of a beloved mistress, then I often think with longing, Oh, would I could describe these conceptions, could impress upon paper all that is living so full and warm within me, that it might be the mirror of my soul, as my soul is the mirror of the infinite God!
> The Discipline of Perception (how we see and perceive the world around us) The Discipline of Action (the decisions and actions we take-and to what end) The Discipline of Will (how we deal with the things we cannot change, attain clear and convincing judgment, and come to a true understanding of our place in the world)<sup>†</sup> (blockquote)
O my friend -- but it is too much for my strength -- I sink under the weight of the splendour of these visions!
A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.
I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents.
I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.
## Training the Rulers (H2)
### Sorai: Language as Reference (H3)
When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains us, as it floats around us in an eternity of bliss; and then, my friend, when darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and absorb its power, like the form of a beloved mistress, then I often think with longing, Oh, would I could describe these conceptions, could impress upon paper all that is living so full and warm within me, that it might be the mirror of my soul, as my soul is the mirror of the infinite God!
##### Orikuchi Shinobu’s Shintō Philosophy (H5)
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
###### The Sōhei on Mount Hiei (H6)
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
## Long Ordered Lists (H2)
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
1. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
2. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
3. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
## Long Unordered List (H2)
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
* At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
#### Trueing up the terms (H4)
O my friend -- but it is too much for my strength -- I sink under the weight of the splendour of these visions!
A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.
I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls
## Text Format (H3)
Emphasis: *example*
Importance: **example**
Emphasis + Importance: ***example***
Strikethrough: ~~striketrhough~~
## Numbered Lists (H2)
1. Ordered list item
2. Ordered list item
3. Ordered list item
## Bulleted Lists (H2)
* Bulleted list item
* Bulleted list item
* Bulleted list item
## Nesting Lists (H2)
* First level
* Second level
1. First level
1. Second level
* First level unordered list item
1. Second level ordered list item
## Blockquotes (H2)
> A quoted paragraph
>> A quoted paragraph inside a quotation
## Links (H2)
[text to link](http://example.com/)
## Images (H2)

## Code Block (H2)
This is a code block
## Fenced Code Block (H2)
```
This is a fenced code block
```
## Tables (H2)
|Header |Column 1 | Column 2 | Column 3 |
|:--- |:---- |:----:| ----:|
|1. Row| is | is | is |
|2. Row| left | nicely | right |
|3. Row| aligned | centered | aligned |
## Horizontal Rules (H2)
* * *
<div class="footnote">
† Ryan Holiday, Stephen Hanselman, <cite>The Daily Stoic</cite>
</div>
@use postcss-nested;
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
font-family: Playfair Display, serif;
background-color: #d8d4cf;
color: #3E3838;
width: 70vw;
max-width: 700px;
margin-inline: auto;
margin-block-start: 5em;
margin-block-end: 7em;
line-height: 1.6;
}
:is(h1, h2, h3, h4, h5, h6, ul, ol, blockquote, pre, hr) {
clear: left;
}
:is(h1, h2, h3, h4, h5, h6) + h1,
:is(h1, h2, h3, h4, h5, h6) + h2,
:is(h1, h2, h3, h4, h5, h6) + h3,
:is(h1, h2, h3, h4, h5, h6) + h4,
:is(h1, h2, h3, h4, h5, h6) + h5,
:is(h1, h2, h3, h4, h5, h6) + h6 {
text-indent: initial;
margin-block-start: 0;
}
h1 {
font-size: 1.8em;
margin-block-end: 0;
font-weight: 400;
}
h2 {
font-size: 1.2em;
text-indent: 5rem;
font-family: Playfair Display SC, serif;
font-variant-caps: all-small-caps;
font-feature-settings: "c2sc", "smcp";
letter-spacing: 0.05em;
font-weight: 400;
margin-block-start: 1.4em;
}
h2 + :is(h2, h3, h4, h5, h6, p) {
text-indent: 5rem;
}
h2 + :is(ul, ol, blockquote, pre, table) {
padding-inline-start: 5rem;
}
h2 + hr {
margin-inline-start: 5rem;
}
h3 {
font-style: italic;
font-size: 1em;
font-weight: 400;
text-indent: 5rem;
margin-block-start: 1em;
}
h3 + :is(h2, h3, h4, h5, h6, p) {
text-indent: 5rem;
}
h3 + :is(ul, ol, blockquote, pre, table) {
padding-inline-start: 5rem;
}
h3 + hr {
margin-inline-start: 5rem;
}
:is(h1, h2, h3, h4, h5, h6) + h4 {
float: none;
}
h4 {
font-style: italic;
font-size: 1em;
font-weight: 400;
float: left;
margin-block-start: 1em;
margin-block-end: 0;
margin-inline-start: 0;
margin-inline-end: 0;
}
h4::after {
content: ".";
margin-inline-end: 0.5em;
}
:is(h1, h2, h3, h4, h5, h6) + h4::after {
content: none;
}
h5 {
font-size: 0.8em;
text-transform: uppercase;
font-family: Playfair Display SC, serif;
font-weight: 400;
letter-spacing: 0.025em;
text-indent: 1.2rem;
margin-block-start: 2em;
margin-block-end: 1em;
}
h6 {
font-style: italic;
font-size: 0.8em;
font-weight: 400;
text-indent: 1.2rem;
margin-block-end: 1em;
}
:is(h1, h4, h5, h6) + p {
text-indent: 0;
}
:is(h4, h5) {
margin-block-start: 1em;
}
:is(h4, h5) + p {
margin-block-start: 1em;
}
:is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) + p {
text-indent: initial;
}
p {
text-indent: 1.2rem;
margin: 0;
text-align: justify;
word-break: break-word;
hyphens: auto;
}
a {
color: #3e3838;
}
img {
max-width: 100%;
width: 100%;
margin-block-start: 1.2rem;
margin-block-end: 1.2rem;
}
:is(ol, ul) {
padding: 0;
}
:is(ol, ul) :is(ol, ul) {
margin-inline-start: 1.2em;
}
li {
text-indent: 1.2rem;
list-style-position: inside;
}
table {
width: 100%;
margin-block-start: 1.2rem;
margin-block-end: 1.2rem;
}
hr {
color: #3E3838;
border-width: 1px;
border-block-end-width: 0;
margin-block-start: 2.4rem;
margin-block-end: 2.4rem;
}
blockquote {
margin-inline: 1.2em;
}
blockquote p {
text-indent: 0;
}
.footnote {
margin-block-start: 2rem;
font-size: 0.8em;
text-indent: 1.2rem;
}
Also see: Tab Triggers