Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <head>
  <link href='https://fonts.googleapis.com/css?family=Cinzel' rel='stylesheet' type='text/css'>
  
  <link href='https://fonts.googleapis.com/css?family=Gochi+Hand' rel='stylesheet' type='text/css'>
  
  <link href='https://fonts.googleapis.com/css?family=Henny+Penny' rel='stylesheet' type='text/css'>
  
</head>
<body>
  
  <div id = "box">
    <div id = "top">
      <h1>Contact Me</h1>
      <form id = "form">
        Insert Full Name:<br>  
      <input type = "text" id = "name" placeholder = "Full Name"/><br><br>
        Insert E-mail:<br>  
      <input type = "text" placeholder = "E-mail"/><br><br>
        Write Mail Here:<br>  
        <textarea placeholder = " Write your message here"/></textarea><br>
      <input type = "submit" id = "button" onclick = "wonderLand()">
      </form>  
    </div>
    
  </div>
    
    
</body>    
              
            
!

CSS

              
                body {
  
  background-image: URL("http://wallpapers.free-review.net/wallpapers/19/Grey_pattern.jpg");
  height: 300px;
  margin-top: 20px;
  
  
}

#box {
  
  margin :auto;
  height: 550px;
  width: 300px;
  background: black;
  border-radius: 20px;
  -webkit-box-shadow: 8px 8px 9px 0px rgba(50, 50, 50, 0.75);
  -moz-box-shadow:    8px 8px 9px 0px rgba(50, 50, 50, 0.75);
  box-shadow:         8px 8px 9px 0px rgba(50, 50, 50, 0.75);
  vertical-align: middle;
  font-family: 'Henny Penny', cursive;
  color:white
}

h1 {
  
  text-align:center;
  font-family: 'Henny Penny', cursive;
  color: white;
  padding-top: 7px;
  
  
}

#top {
  
  border-bottom: 3px solid #e6e6fa;
  height: 50px;
  background: black;
  border-radius: 20px 20px 0px 0px;
  padding-bottom:5px;
  
}

#form {
  
  text-align:center;
  
}

textarea {
  
  height:200px;
  width: 200px;
  border-radius: 20px;
  font-family: 'Gochi Hand', cursive;
  text-align:center;
  
}

input {
  
  font-family: 'Gochi Hand', cursive;
}

#button {
  
  width: 150px;
  height: 35px;
  background-color: #69FA72;
  border-radius: 5px;
  font-family: 'Henny Penny', cursive;
  color: white;
  font-size: 20px;
  margin-top: 10px;
  
}
              
            
!

JS

              
                function wonderLand(){
  
  var name = document.getElementById("name").value;
  alert("Hello " + name  + "! \nWelcome to Wonderland...");
  
   
};
              
            
!
999px

Console