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

              
                <header class="site-header">
  <div class="max-width">
    <h1 class="heading__primary">Glossary of Terms</h1>

    <nav class="toggle-nav">
      <a href="#" data-toggle="all" class="active">All</a>
      <a href="#" data-toggle="content">Content</a>
      <a href="#" data-toggle="html">HTML</a>
      <a href="#" data-toggle="design">Design</a>
      <a href="#" data-toggle="css">CSS</a>
    </nav>
    
    <button id="printButton">Print</button>
  </div>
</header>

<main class="site-content">
  <article class="content-section" id="content">
    <header class="content-section__header">
      <div class="max-width">
        <h1 class="heading__tertiary">Content</h1>
      </div>
    </header>
    <div class="max-width">
      <dl>
        <dt>Content</dt>
        <dd>All the things you want to communicate to your website visitors, including headlines, paragraphs, pictures, and links.</dd>

        <dt>Topic</dt>
        <dd>What your website is about.</dd>

        <dt>Goal</dt>
        <dd>What you hope users will get out of visiting your website. </dd>
      </dl>
    </div>
  </article>
<main class="site-content">
  <article class="content-section" id="html">
    <header class="content-section__header">
      <div class="max-width">
        <h1 class="heading__tertiary">HTML</h1>
      </div>
    </header>
    <div class="max-width">
      <dl>
        <dt>Attribute</dt>
        <dd>Code that adds more information about an html element, usually in a property/value pair, where the “property” is the kind of information and the “value” is what the information is. Attributes are specified in the opening tag.</dd>

        <dt>Block Element</dt>
        <dd>An element that lives on its own line, sometimes with space automatically added, such as &lt;p&gt; or &lt;div&gt;. <a href="http://learnlayout.com/display.html" target="_blank">Learn more about layouts</a>.</dd>

        <dt>Closing Tag</dt>
        <dd>The tag at the end of a container element, also called an “end tag”. Usually includes a “/” before the coded letter inside the angle brackets. </dd>

        <dt>Container Element</dt>
        <dd>A type of html tag that has both an opening and closing tag.</dd>

        <dt>Element</dt>
        <dd>Usually consists of a start tag and end tag, along with the content between the tags.</dd>

        <dt>HTML</dt>
        <dd>Hyper Text Markup Language</dd>

        <dt>Inline Element</dt>
        <dd>An element that lives on the line with other elements, such as &lt;img /&gt; or &lt;span&gt;. <a href="http://learnlayout.com/display.html" target="_blank">Learn more about layouts</a>.</dd>

        <dt>Opening Tag</dt>
        <dd>The tag at the beginning of a container element, also called a “start tag”.</dd>

        <dt>Self-closing Tag</dt>
        <dd>A tag with no content and therefore no closing tag, like &lt; img /&gt; or &lt; hr /&gt;.</dd>

        <dt>Tag</dt>
        <dd>A coded letter between a set of angle brackets, &lt; &gt;, used as the base of HTML language.</dd>
      </dl>
    </div>
  </article>
  <article class="content-section" id="design">
    <header class="content-section__header">
      <div class="max-width">
        <h1 class="heading__tertiary">Design</h1>
      </div>
    </header>
    <div class="max-width">
      <dl>
        <dt>Display Face</dt>
        <dd>Fancy fonts designed to be used only at large sizes, such as titles and headings. </dd>

        <dt>Font</dt>
        <dd>A set of type (letters) of one particular style and size. </dd>

        <dt>Mood</dt>
        <dd>A feeling or emotion, or set of emotions, a designer wishes the audience to feel. </dd>

        <dt>Sans-serif</dt>
        <dd>A font without serifs; font lacking the “little feet”. </dd>

        <dt>Serif</dt>
        <dd>A font with lines at the top and/or bottom of the long parts of letters; font with “little feet”. </dd>
        <dt>Typography</dt>
        <dd>The style and appearance of printed text. </dd>
      </dl>
    </div>
  </article>
  <article class="content-section" id="css">
    <header class="content-section__header">
      <div class="max-width">
        <h1 class="heading__tertiary">CSS</h1>
      </div>
    </header>
    <div class="max-width">
      <dl>
        <dt>Cascade</dt>
        <dd>The defined order of precedence (importance) in CSS. </dd>

        <dt>Class Selector</dt>
        <dd>A CSS rule applied only to specific classes; Class selectors begin with a period, for example: “.class_name {}”. </dd>

        <dt>CSS</dt>
        <dd>Cascading Style Sheets</dd>

        <dt>Element Selector</dt>
        <dd>A CSS rule applied only all html elements of a single type; element selectors are the name of the element, for example: “body {}”. </dd>

        <dt>ID Selector</dt>
        <dd>A CSS rule applied only to a single ID; ID selectors begin with a number symbol, for example: “#ID_name {}”. </dd>

        <dt>Property</dt>
        <dd>The part of a CSS rule that identifies what part of the selector you what to style, such as “background-color” or “font-size”. </dd>

        <dt>Pseudo Selector</dt>
        <dd>A keyword added to selectors to identify only a specific state, such as “:hover” or “:active”. </dd>

        <dt>Reset Stylesheet</dt>
        <dd>A type of CSS stylesheet that removes all default styles and “resets” them to a baseline. </dd>

        <dt>Rule</dt>
        <dd>A CSS rule is made up of a selector and at least one property/value pair. </dd>

        <dt>Selector</dt>
        <dd>The part of a CSS rule that actually selects the content you want to style, such as a class or ID. </dd>
        <dt>Value</dt>
        <dd>The part of a CSS rule that tells a property how to behave, such as setting the font size to “200%”, or the background color to “blue”. “Blue” and “200%” are both potential values. </dd>
      </dl>
    </div>
  </article>
</main>

<footer class="site-footer">
  <div class="max-width">
    <p>&copy; 2018 <a href="https://buildingwebsites.seesparkbox.com/" target="_blank">Building Websites Workshop</a>.</p>
  </div>
</footer>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console