Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Save Automatically?

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.

HTML

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Tribute Page</title>
</head>

<body>
  <main id="main">
  <h1 id="title">Ayumu Hirano</h1>
  <p>One of the best snowboarders in the world</p>
    <figure id="img-div">
      <img id="image" src="https://cdn-japantimes.com/wp-content/uploads/2022/02/np_file_141165.jpeg" alt="Ayumu Hirano">
      <figcaption id="img-caption">Ayumu Hirano at the Olympics</figcaption>
    </figure>

    <p id ="tribute-info">Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro, odit iusto sed quo placeat non ullam quidem? Exercitationem, aspernatur aut commodi consectetur harum sunt numquam quis praesentium omnis eius consequatur!
      Voluptatem accusamus, reprehenderit explicabo quasi adipisci enim tenetur dolorum modi corrupti, nostrum qui sed, consectetur odit quisquam commodi quo nulla provident praesentium quos consequuntur doloribus sit delectus! Voluptates, assumenda perferendis!
      Et ad sint eius enim quos iusto dolorem quia nulla est! Officia, voluptate accusamus nemo voluptatum ex dolor odio quia corporis mollitia quasi velit repudiandae earum nam nesciunt quod eos.
      Ad iusto sint ipsam similique laudantium hic at deserunt dolore nam. Ducimus minus commodi illum inventore ipsam, ad maiores similique facilis quisquam alias vero nostrum sapiente temporibus quidem praesentium autem!
      Vel voluptatibus sit nisi illo, officia impedit repellendus tenetur cupiditate quas esse enim dolore id porro accusantium quasi beatae sequi deserunt! Accusantium, eaque distinctio provident dolore cumque perferendis praesentium blanditiis!</p>

    <p>See more <a href="#" target="_blank" id="tribute-link">Here</a></p>
  </main>

</body>

</html>
              
            
!

CSS

              
                #image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

              
            
!

JS

              
                
              
            
!
999px

Console