Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add Packages

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.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <div class="wrapper">

    <header class="landmark">
      <a href="#" class="logo">
      <svg viewBox="0 0 100 100" xmlns="">
        <circle cx="50" cy="50" r="50" />

    <main class="landmark">
      <article class="chocolate">
        <h2>Chocolate cake</h2>
        <p>Cookie tart cake cotton candy chocolate chocolate.</p>
          <h3>Jelly beans</h3>
            Jelly beans gummi bears halvah halvah croissant lemon drops donut gummi bears
            candy canes. Icing sugar plum chupa chups jelly-o soufflé jelly-o pudding
            lollipop. Chocolate bar muffin bonbon pie tootsie roll danish bear claw
            Marzipan bear claw sweet marzipan tootsie roll. Chupa chups powder tart halvah gingerbread icing sweet.
            Powder halvah soufflé caramels soufflé chocolate cake halvah.
          <h3>Cotton candy</h3>
            Biscuit sugar plum cake sugar plum powder cookie halvah. Cotton candy muffin jelly-o chocolate liquorice marshmallow danish wafer cotton candy. Cake shortbread oat cake powder marshmallow.

    <footer class="landmark">
        Created and maintained by
        <a href="#">Lene</a>
        <ul role='list'>
            <a href="#" class="link-rss">RSS Feed</a>
          <li> <a href="#" class="link-rss">Follow</a>
        Crafted with semantic HTML.



                /* reset: */

/* Box sizing rules */
*::after {
  box-sizing: border-box;

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ol[role='list'] {
  list-style: none;

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;

/* general */

body {
  font-size: clamp(1rem,0.82rem + 0.88vw,1.875rem);

.wrapper {
  inline-size: clamp(16rem,93vw,120rem);
  margin-inline: auto;
  position: relative;

svg {
  block-size: 2ex;

ul {
  display: flex;
  gap: 1rem;
  padding: 0;

/* main grid */

body > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: pink;

/* subgrids */

:is(header, main, footer).landmark {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;

/* colors for landmarks */

header.landmark {
background-color: linen;

main.landmark {
background-color: paleturquoise;

footer.landmark {
background-color: whitesmoke;