Pen Settings



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


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.


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.


                <div class="articulate-area">
	<div id="voiceSelect"></div>
  <button onclick="create('#voiceSelect')">Create Menu</button>
  <button onclick="speak('article')">Speak</button>
  <button onclick="pause()">Pause</button>
  <button onclick="resume()">Resume</button>
  <button onclick="stop()">Stop</button><br>
  <button onclick="populate()">Populate Table of Voices Below Speech</button>

  <div class="intro">
    <h1>The Gettysburg Address</h1>
    <h2>Delivered by Abraham Lincoln on November 19, 1863</h2>
    <h3>Beginning with the iconic phrase <q>Four score and seven years ago,</q> this speech is generally regarded as the most famous in American history.</h3>
  <div class="speech">
    <img src="" alt="A Portrait of the Sixteenth President">
    <p>Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.</p>
    <p>Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.</p>
    <p>But, in a larger sense, we can not dedicate &mdash; we can not consecrate &mdash; we can not hallow &mdash; this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us &mdash; that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion &mdash; that we here highly resolve that these dead shall not have died in vain &mdash; that this nation, under God, shall have a new birth of freedom &mdash; and that government of the people, by the people, for the people, shall not perish from the earth.</p>


<div class="voice-table">
  <h2>Names and Languages Available</h2>
  <h3>Use these exact names when setting a voice manually.</h3>



                body {
  width: 95%;
  max-width: 800px;
  font-family: tahoma;
  background-color: #eee;
  padding: 20px 0 20px 0;
  margin: 0 auto 0 auto;

div.speech img {
  float: left;
  width: 20%;
  margin: 5px 10px 5px 0;

h1 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 10px 0;

h2 {
  font-size: 16px;
  text-align: center;
  margin: 0 0 10px 0;

h3 {
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  margin: 0 0 10px 0;

p {
  font-size: 14px;
  line-height: 1.4;

button {
  margin: 8px 5px 5px 0;

div.articulate-area {
  font-family: monospace;
  font-size: 14px;
  text-align: center;
  padding: 0 0 15px 0;
  border-bottom: 1px dotted #666;
  margin: 0 0 20px 0;

div.articulate-area div {
  margin: 0 0 10px 0;

div.articulate-area input {
  width: 250px;

div.voice-table {
  display: none;

table {
  margin: 30px auto 0 auto;
  border-collapse: collapse;
  border-spacing: 0;

table th {
  text-align: left;
  padding: 7px;

table td {
  padding: 7px 7px 7px 5px;

table td:first-child {
  padding-right: 40px;

table td:last-child {
  text-align: center;

table tr:nth-child(odd) td {
  background-color: #ddd;


                function create(obj) {
  $().articulate('getVoices', obj, 'Choose a New Voice');

function speak(obj) {

function pause() {

function resume() {

function stop() {

function populate() {
    var voices = $().articulate('getVoices');
    for (var i = 0; i < voices.length; i++) {
      voiceName = voices[i].name;
      voiceLang = voices[i].language;
      row = "<tr><td>" + voiceName + "</td>";
      row += "<td>" + voiceLang + "</td></tr>";
      $('table tbody').append(row);