Pen Settings



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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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.


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.


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

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Ruff Love Pet Rescue</title>

  <button id="contact-button">Contact us</button>
  <h1>Ruff Love Pet Rescue</h1>
  <h2>Ruff Love's Adoptable Dogs</h2>
  <h3>this is an h3</h3>
  <p>🐶 We hope you enjoy looking through our list of dogs available to adopt.</p>
  <p>💚 Interested in adoption?</p>
  <button class="green-button" id="apply-button">Apply to adopt</button>
    <img src="" alt="Lexi, a 17 year old dog" >
    <img src="" alt="Loki, a 6 month old puppy" >
    <img src="" alt="Hunter, a 3 month old Golden Lab">
    <img src="" alt="Griffin, a 14 year old Yorkshire Terrier mix">
    <img src="" alt="Max, a 15 year old Lab mix">
    <img src="" alt="Zoey, a 10 year old Labradoodle mix">
    <img src="" alt="Snickers, a yellow Labradoodle mix">




                body {
  margin: 50px;

h1, h2 {
  color: green;
  text-align: center;

.green-button {
  background-color: green;  

button {
  background-color: blue;
  color: white;
  margin: 20px;
  padding: 15px;
  text-transform: uppercase;
  width: 200px;

div {
  text-align: center;

img {
  width: 30%;

img:hover {
  opacity: 50%;





                document.querySelector('#apply-button').onclick = function() {
    alert("Thank you for your interest in adopting! We'll be in touch soon.");