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. 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.


1) Fork this Pen to your own CodePen account (click the 'Fork' button located in the upper right of this Pen).

2) Update the markup below and write CSS rules that:
 - Use a tag selector to color the headline red.
 - Use an ID selector to color the very first list item green.
 - Use a class selector to set all dates/years to bold and italic.
 - Use a child selector to underline the first <blockquote>.
 - Use a descendant selector to give all <blockquotes> a gray background color.
 - BONUS: Set the entire document in a sans-serif font and sensible line-height of your choosing.

 - https://developer.mozilla.org/en-US/docs/Web/HTML/Element#Forms
 - https://www.w3schools.com/html/html_forms.asp
 - https://fonts.google.com/?category=Sans+Serif

<h1>Brief History of CSS</h1>
  <li>1994: The first work on style sheets started at CERN.</li>
  <li>December 1996: CSS was proposed as W3C standard:
      <q>CSS1 defines the language in which style sheets are written and a set of properties that designers can use to describe how documents should be presented. The properties in CSS1 cover the most common screen-based presentations.</q>
  <li>November 1997: The W3C released the first public CSS2 Working Draft.</li>
  <li>May 1998: CSS2 specification becomes a W3C recommendation.</li>
  <li>2000: Work on CSS3 was under way.</li>
  <q>CSS3 will, in effect, have all of the features that users expect from a desktop publishing environment, as well as a range of features especially suited to the context of an international and multimedia Web.</q>
              body {
  width: 50%;
  margin: 2rem auto;

/* Write your external CSS styles here */

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.