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="mail.php" method="POST" class="c-form">
  <ul>
    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">お名前</span>
        </dt>
        <dd class="c-form__input">
          <input
            class="c-form__input-text"
            name="お名前"
            type="text"
            placeholder="太郎"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">ふりがな</span>
        </dt>
        <dd class="c-form__input">
          <input
            name="ふりがな"
            class="c-form__input-text"
            type="text"
            placeholder="たろう"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">企業名</span>
        </dt>
        <dd class="c-form__input">
          <input
            name="企業名"
            class="c-form__input-text"
            type="text"
            placeholder="株式会社〇〇"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">住所(都道府県、市区町村)</span>
        </dt>
        <dd class="c-form__input">
          <input
            name="住所(都道府県、市区町村)"
            class="c-form__input-text"
            type="text"
            placeholder="東京都〇〇区〇〇町"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">住所(番地以降)</span>
        </dt>
        <dd class="c-form__input">
          <input
            name="住所(番地以降)"
            class="c-form__input-text"
            type="text"
            placeholder="1-2-3"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">電話番号</span>
        </dt>
        <dd class="c-form__input">
          <input
            name="電話番号"
            class="c-form__input-text"
            type="text"
            placeholder="000-0000"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">メールアドレス</span>
        </dt>
        <dd class="c-form__input">
          <input
            type="email"
            name="メールアドレス"
            class="c-form__input-text"
            placeholder="hoge@〇〇.〇〇"
          />
        </dd>
      </dl>
    </li>

    <li class="c-form__item">
      <dl>
        <dt class="c-form__label">
          <span class="c-form__label-text">問い合わせ内容</span>
        </dt>
        <dd class="c-form__input">
          <textarea
            name="問い合わせ内容"
            class="c-form__textarea"
            placeholder="お問い合わせ内容が入ります。"
          ></textarea>
        </dd>
      </dl>
    </li>
  </ul>

  <div class="c-form__button">
    <input class="c-button" type="submit" value="確認画面へ" />
  </div>
</form>
              
            
!

CSS

              
                ul li {
    list-style: none;
}

.c-form__button {
  text-aling: center;
}

.c-button {
  display: inline-block;
}
              
            
!

JS

              
                
              
            
!
999px

Console