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

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

              
                <form class="contact" action="index.html" method="post">
  <dl>
    <dt>名前</dt>
    <dd><input type="text" name="name" class="name"></dd>
    <dt>メールアドレス</dt>
    <dd><input type="email" name="email" class="email"></dd>
    <dt>電話番号</dt>
    <dd><input type="tel" name="tel" class="tel"></dd>
    <dt>問い合わせの内容</dt>
    <dd>
      <select class="type" name="type">
        <option value="サービスに関するお問い合わせ">サービスに関して</option>
        <option value="料金に関するお問い合わせ">料金に関して</option>
        <option value="その他お問い合わせ">その他お問い合わせ</option>
      </select>
    </dd>
    <dt>ご連絡方法</dt>
    <dd>
      <input type="radio" name="contact" value="Eメール" class="radio">Eメール
      <input type="radio" name="contact" value="お電話" class="radio">電話
    </dd>
    <dt>その他</dt>
    <dd><textarea name="message" class="message"></textarea></dd>
  </dl>
  <button type="submit" class="btn">送信</button>
</form>
              
            
!

CSS

              
                form{
  background-color: #eee;
  padding:40px 60px;
}

form dl dt{
  width: 160px;
  padding: 8px 0;
  float: left;
}

form dl dd{
  padding: 8px 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console