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

              
                <div>
  <h3>cite</h3>
  <p>David Allen的突破性组织性的图书<em><cite>完成你的工作</cite></em>给忘了带来了一场风暴。</p>
</div>
<div>
  <h3>optgroup</h3>
  <label for="showtimes">上映时间</label>
<select id="showtimes" name="showtimes"> <optgroup label="下午一点"><option value="titanic">泰坦尼克号</option> <option value="nd">贫民窟的百万富翁</option> <option value="wab">怪物史瑞克</option> </optgroup> <optgroup label="下午两点"> <option value="bkrw">狮子王</option> <option value="stf">全民超人</option></optgroup></select>
</div>
<div>
  <h3>acronym</h3>
   微博客网站<acronym title="Founded in 2006"> Twitter</acronym> 最近常常宕机。
</div>
<div>
  <h3>address</h3>
  <address>Glen Stansberry
1234 Web Dev Lane
Anywhere, USA
</address>
</div>
<div>
  <h3>ins和del</h3>
  John <del>likes</del> <ins>LOVES</ins> his new iPod.
</div>
<div>
  <h3>label</h3>
  <label for="username">用户名</label>
<input id="username" type="text" />
</div>
<div>
  <h3>fieldset</h3>
  <form><fieldset>
<legend>你比5年纪学生聪明吗?</legend>
当然<input name="yes" type="radio" value="yes" />
 
不知道<input name="no" type="radio" value="no" />
</fieldset>
</form>
</div>
<div>
  <h3>abbr</h3>
   <abbr title="脑残">NC</abbr> 是一个不太文明的用语。
</div>
<div>
  <h3>rel</h3>
  <a rel="clickable" href="page.html">这个链接可编辑。</a>
</div>
<div>
  <h3>wbr</h3>
  <div style="width:200px;border:1px solid #00f;">
NoWbrNoWbrNoWbrNoWbrNoWbrNoWbrNoWbrNoWbrNoWbr<br />
HavaWbr<wbr>HavaWbr<wbr>HavaWbrHavaWbrHavaWbrHavaWbrHavaWbr<wbr>HavaWbr
</div>
</div>
From <a href="http://caibaojian.com/" rel="author">前端开发博客</a>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console