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

              
                <form action="送信先のURL" method="post">
  <ul>
    <li>
      <label for="name">お名前:</label>
      <input type="text" id="name" required>
    </li>
    <li class="get-sex">
      <label for="woman">女性</label>
      <input type="radio" id="woman" name="sex">
      <label for="man">男性</label>
      <input type="radio" id="man" name="sex">
    </li>
    <li>
      <select>
        <option value="">--居住地域</option>
        <option value="hokkaido">北海道</option>
        <option value=tohoku"">東北</option>
        <option value="kanto">関東</option>
        <option value="koshinetsu">甲信越</option>
        <option value="kinki">近畿</option>
        <option value="tyugoku">中国</option>
        <option value="shikoku">四国</option>
        <option value="kyusyu">九州</option>
        <option value="okinawa">沖縄</option>
      </select>
    </li>
    <li>
      <label for="phone">電話番号:</label>
      <input type="text" id="phone" required>
    </li>
    <li>
      <label for="mail">メールアドレス:</label>
      <input type="text" id="mail">
    </li>
    <li>
      <label for="textarea">ご意見:</label>
      <textarea id="textarea" cols="20" rows="8" placeholder="ご意見・ご感想をお寄せください"></textarea>
    </li>
    <li class="button">
      <button type="submit">フォームを送信</button></li>
  </ul>
  
</form>
              
            
!

CSS

              
                form{
  margin: 0 auto;
  width: 400px;
  background-color: #f0f8ff;
  border: 1px solid #808080;
  border-radius: 10px;
}

ul{
  list-style: none;
  padding: 30;
  margin: 30;
}

form li{
  margin-top: 1em;
}

label{
  display: inline-block;
  width:130px;
}

li.get-sex label{
  display: inline-block;
  width:40px;
}

.button{
  text-align: center;
}


              
            
!

JS

              
                
              
            
!
999px

Console