Pen Settings



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


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


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.


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.


                <!DOCTYPE html>
<html lang="en-US">

  <meta charset="utf-8" />
  <meta name="author, viewport" content="Peter G. Morales, width=device-width, initial-scale=1">
  <meta name="description" content="This is the MDN Selectors Page Assessment for the CSS Building Blocks module of the MDN Learning Area.">
  <title>Selectors: Pseudo-class and Pseudo-element Selectors</title>
  <link href="styles/styles.css" rel="stylesheet" type="text/css">


  <div class="container">
    <p>Veggies es
      <a href="">bonus vobis</a>, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth
      tatsoi tomatillo melon azuki bean garlic.
    <p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard
      greens dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>



<!-- -->


                body {
  background-color: #fff;
  color: #333;
  font: 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
  padding: 1em;
  margin: 0;

* {
  box-sizing: border-box;

table {
  border-collapse: collapse;
  width: 300px;

th {
  padding: 0.2em;
  text-align: left;

/* Make the first element inside the container font-size: 150% and the first line of that element red. */
.container p:first-child {
  font-size: 150%;

.container p:first-child::first-line {
  color: red;

/* Style links, making the link-state orange, visited links green, and remove the underline on hover. */
a:link {
  color: orange;

a:visited {
  color: green;

a:hover {
  text-decoration: none;

/* Stripe every other row in the table by selecting these rows and giving them a background color of #333 and foreground of white. */
tr:nth-child(even) {
  background-color: #333;
  color: #fff;