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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

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

              
                  <h1>Test your skills: HTML text basics</h1>
  <p>The aim of this skill test is to assess whether you understand how to mark up text in HTML to give it structure and meaning.</p>
<!-- Task 1 -->
  <fieldset>
    <legend>Task 1</legend>
    <p>In this task, we want you to mark up the provided HTML using semantic heading and paragraph elements.</p>
    
    <fieldset>
      <legend>Source code:</legend>
      Basic HTML Animals

      This is the first paragraph in our page. It introduces our animals.
      
      The Llama
      
      Our Llama is a big fan of list items. When she spies a patch of them on a web page, she will eat them like sweets, licking her lips as she goes.
      
      The Anaconda
      
      The crafty anaconda likes to slither around the page, travelling rapidly by way of anchors to sneak up on his prey.
    </fieldset>
    <br>
    <fieldset>
      <legend>My implementation:</legend>

        <h1 class="task-1-h1-h2">Basic HTML Animals</h1>
        <p class="task-1-p">This is the first paragraph in our page. It introduces our animals.</p>

        <h2 class="task-1-h1-h2">The Llama</h2>
        <p class="task-1-p">Our Llama is a big fan of list items. When she spies a patch of them on a web page, she will eat them like sweets, licking her lips as she goes.</p>

        <h2 class="task-1-h1-h2">The anaconda</h2>
        <p class="task-1-p">The crafty anaconda likes to slither around the page, travelling rapidly by way of anchors to sneak up on his prey.</p>

    </fieldset>
  
  </fieldset><br>
<!-- Task 2 -->
  <fieldset>
    <legend>Task 2</legend>
    <p>In this task, we want you to turn the first un-marked up list into an unordered list, and the second one into an ordered list.</p>
  
    <fieldset>
      <legend>Source code:</legend>

        <h1>Looking at lists</h1>

        <p>Turn the following list of my favorite vegetables into an unordered list.</p>

          Cucumber
          Broccoli
          Asparagus
          Pepper

        <p>Turn the following directions into an ordered list.</p>

          First knock on the door
          When prompted, say the magic word
          Wait for at least 5 seconds
          Turn the handle and push

    </fieldset>
    <br>
    <fieldset>
      <legend>My implementation:</legend>

        <h1>Looking at lists</h1>

        <p>Turn the following list of my favorite vegetables into an unordered list.</p>

          <ul class="task-2-ul">
            <li>Cucumber</li>
            <li>Broccoli</li>
            <li>Asparagus</li>
            <li>Pepper</li>
          </ul>

        <p>Turn the following directions into an ordered list.</p>

          <ol class="task-2-ol">
            <li>First knock on the door</li>
            <li>When promped, say the magic word</li>
            <li>Wait for at least 5 seconds</li>
            <li>Turn the handle and push</li>
          </ol>

    </fieldset>
  
  </fieldset><br>
<!-- Task 3 -->
  <fieldset>
    <legend>Task 3</legend>
    <p>In this task, you are provided with a paragraph, and your aim is to use some inline elements to mark up a couple of appropriate words with strong importance, and a couple with emphasis.</p>
  
    <fieldset>
      <legend>Source code:</legend>

        <h1 class="task-3-h1-strong">Emphasis and importance</h1>
        <p>There are two things I care about — music and friends. Someday I might be able to get my friends interested in each other, and my music!</p>

    </fieldset>
    <br>
    <fieldset>
      <legend>My implementation:</legend>

        <h1 class="task-3-h1-strong">Emphasis and importance</h1>
        <p>There are two things <em class="task-3-em">I care about</em> — <strong class="task-3-h1-strong">music and friends</strong>. Someday <em class="task-3-em">I might be able to get my friends interested in each other, and <strong class="task-3-h1-strong">my music</strong>!</em></p>

    </fieldset>
  
  </fieldset><br>
              
            
!

CSS

              
                body {
  width: 66.66%;
  margin: auto;
}
fieldset {
  border: solid 1px;
  border-radius: 1em;
}

/* Task 1 styles */
.task-1-h1-h2 {
  color: purple;
}
.task-1-p {
  color: gray;
}
/* Task 2 styles */
.task-2-ul {
  border: 2px solid orange;
  padding: 5px 20px;
  border-radius: 4px;
}
.task-2-ol {
  border: 2px solid purple;
  padding: 5px 20px;
  border-radius: 4px;
}
/* Task 3 styles */
.task-3-h1-strong {
  color: purple;
}
.task-3-em {
  color: gray;
}
              
            
!

JS

              
                
              
            
!
999px

Console