Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <header>
	<h1>タイトル</h1>
	<nav>
		<ul>
			<li><a href="">メニュー1</a></li>
			<li><a href="">メニュー2</a></li>
			<li><a href="">メニュー3</a></li>
		</ul>
	</nav>
</header>

<main>
	<article>
		<h2>タイトル</h2>
		<p>このサイトについての説明文</p>

		<section>
			<h3>このサイトについて</h3>
			<p>HTMLや、CSSについての勉強を目的としたページ<p>

			<section>
				<h4>HTML</h4>
				<p>HTMLで最低限必要な部分の説明</p>
			</section>

			<section>
				<h4>CSS</h4>
				<p>CSSでよく使う部分の説明</p>
			</section>
		</section>

    <section>
      <h3>HTMLの勉強法</h3>
      <p>HTMLで大事なのはその言葉が表しているものを意味付けすることが大事です。</p>
      <p>見た目を調整するのはCSSに任せましょう。</p>
      <p><strong>見出し</strong>、<strong>文章</strong>、<strong>リスト</strong>などの意味付けをするマークアップを心がけましょう。</p>
      <p><a href="http://www.clover.blue/doc/lXvYL28hc8CBwvZiBpuEF">[HTML講座] HTMLについて</a></p>
    </section>

    <section>
      <h3>CSSの勉強法</h3>
      <p>HTMLでマークアップした要素に対してデザインをあてます。</p>
    </section>
	</article>
</main>

<footer>
	<p><small>&copy; copyright kamem</small></p>
</footer>
            
          
!

CSS

            
              * {
  color: #fff;
}

main,
footer,
header {
  padding: 16px;
  background-color: #333;
  position: relative;
}

main {
  margin: 8px 0;
}


nav {
  position: absolute;
  top: 8px;
  right: 16px;
}

nav ul {
 display: flex;
 list-style-type: none;
}

nav li {
  margin: 0 8px;
}

section {
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.15);
}

section section {
  margin: 10px 0;
  padding: 24px;
  border: 3px solid #fff;
}
            
          
!

JS

            
              
            
          
!
999px

Console