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.


                <main id="main"
      <div id="title">
  <h1 id="title">Queen Elizabeth I</h1>
  <p>The golden age of the virgin Queen</p>
  <figure id="img-div">

      alt="portrait of Elizebeth the First" />
   <figcaption id="img-caption">
   Queen Elizebeth the First, ruled england from 1558 until her death in 1603 she was known as the virgin Queen.

  <section id="tribute-info">
  <h3 id="headline">Here's a time line of Queen Elizabeths life and reign:</h3>
    <li><strong>1533</strong> - Elizabeth is born at Greenwich Palace.</li>
    <li><strong>1536</strong> - Elizabeth's mother, Queen Anne Boleyn, is executed at The Tower of London.</li>
    <li><strong>1537</strong> - Elizabeth's half-brother, Prince Edward, is born.</li>
    <li><strong>1547</strong> - King Henry VIII dies and Prince Edward becomes King Edward VI.</li>
    <li><strong>1553</strong> - King Edward VI dies and Elizabeth's half-sister, Mary, becomes Queen Mary I.</li>
    <li><strong>1554</strong> - Elizabeth is imprisoned in The Tower of London and then Woodstock Manor.</li>
    <li><strong>1555</strong> - Elizabeth is freed.</li>
    <li><strong>1558</strong> - Queen Mary I dies and Elizabeth becomes Queen Elizabeth I.</li>
    <li><strong>1559</strong> - Coronation of Queen Elizabeth I and Elizabethan Religious Settlement.</li>
    <li><strong>1562</strong> - Elizabeth is seriously ill with small pox at Hampton Court Palace.</li>
    <li><strong>1564</strong> - William Shakespeare and Christopher Marlowe are born.</li>
    <li><strong>1567</strong> - Mary, Queen of Scots, is forced to abdicate the throne.</li>
    <li><strong>1568</strong> - Mary, Queen of Scots, is imprisoned in England after fleeing Scotland.</li>
    <li><strong>1569</strong> - Northern Rebellion</li>
    <li><strong>1570</strong> - Elizabeth is excommunicated from the Catholic Church by the Pope.</li>
    <li><strong>1571</strong> - Ridolfi Plot to assassinate Elizabeth.</li>
    <li><strong>1572</strong> - Thomas Howard, Duke of Norfolk, is executed for treason.</li>
    <li><strong>1574</strong> - Richard Burbage opens the first theatre in England called The Theatre.</li>
    <li><strong>1575</strong> - Kenilworth Entertainments</li>
    <li><strong>1577</strong> - Francis Drake sets out on the first English voyager around the world.</li>
    <li><strong>1584</strong> - Bond of Association</li>
    <li><strong>1585</strong> - Elizabeth takes The Netherlands under her protection, beginning the War with Spain.</li>
    <li><strong>1586</strong> - Babington Plot and trial of Mary, Queen of Scots, for treason.</li>
    <li><strong>1587</strong> - Mary, Queen of Scots, is executed at Fotheringay Castle</li>
    <li><strong>1588</strong> - Defeat of the Spanish Armada</li>
    <li><strong>1597</strong>- Second Spanish Armada defeated.</li>
    <li><strong>1599</strong> - The Globe theatre is opened.</li>
    <li><strong>1601</strong> - Essex Rebellion and Queen Elizabeth's Golden Speech.</li>
    <li><strong>1603</strong> - Death of Queen Elizabeth I and accession of King James I.</li>
    <p>To be a king and wear a crown is a thing more glorious to them that see it than it is pleasant to them that bear it.</p>
    <cite>-- Elizabeth I</cite>
  If you have time, you should read more about this incredible human being
        >Wikipedia entry</a


                html {
  /* Setting a base font size of 10px give us easier rem calculations
     Info: 1rem === 10px, 1.5rem === 15px, 2rem === 20px and so forth
  font-size: 20px;

body {
  /* Native font stack */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  text-align: center;
  color: #8b0000;
  margin: 0;

h1 {
  font-size: 4rem;
  margin-bottom: 0;

@media (max-width: 460px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;

h3 {
  font-size: 2.25rem;
  color: #000;

a {
  color: #477ca7;

a:visited {
  color: #74638f;

#main {
  margin: 30px 8px;
  padding: 15px;
  border-radius: 5px;
  background: #ee;

@media (max-width: 460px) {
  #main {
    margin: 0;

img {
  max-width: 50%;
  display: block;
  height: auto;
  margin: 0 auto;

#img-div {
  background: white;
  padding: 10px;
  margin: 0;

#img-caption {
  margin: 15px 0 5px 0;

@media (max-width: 460px) {
  #img-caption {
    font-size: 1.4rem;

#headline {
  margin: 50px 0;
  text-align: center;

ul {
  max-width: 550px;
  margin: 0 auto 50px auto;
  text-align: left;
  line-height: 1.6;
  color: #000;

li {
  margin: 16px 0;

blockquote {
  font-style: italic;
  max-width: 545px;
  margin: 0 auto 50px auto;
  text-align: left;
  color: #000;