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.


                <header><h1>Accessible Forms</h1></header>
<h2>Example 1: aria-labelledby on a button</h2>
  <h3 id="form-hdr">Register for Account</h3>
  <div><label for="user">User Name:
    <input type="text" id="user" name="username">
  <div><label for="email">Email Address:
      <input type="email" id="email" name="email">
  <!-- another alternative is to get rid of aria-labelledby and instead use aria-label="Register" -->
  <div><button aria-labelledby="form-hdr" id="register-btn"><img src="" role="presentation" alt=""></button></div>
  <h2>Example 2: aria-labelledby on a Table</h2>
    <caption>Seminar Participation</caption>
      <th scope="col" id="lbl-enrol">Enrollment</th>
      <th scope="col" id="lbl-attend">Attendance</th>
      <th scope="row" id="lbl-mon">Monday</th>
      <td><input type="text" size="4" aria-labelledby="lbl-enrol lbl-mon" name="enr-mon"></td>
      <td><input type="text" size="4" aria-labelledby="lbl-attend lbl-mon" name="att-mon"></td>
      <th scope="row" id="lbl-tues">Tuesday</th>
            <td><input type="text" size="4" aria-labelledby="lbl-enrol lbl-tues" name="enr-tue"></td>
      <td><input type="text" size="4" aria-labelledby="lbl-attend lbl-tues" name="att-tue"></td>
      <th scope="row" id="lbl-wed">Wednesday</th>
            <td><input type="text" size="4" aria-labelledby="lbl-enrol lbl-wed" name="enr-wed"></td>
      <td><input type="text" size="4" aria-labelledby="lbl-attend lbl-wed             " name="att-wed"></td>
<footer><address>&copy; 2023 Wendi Jollymore</address></footer>


                #register-btn > img {
  min-width: 50px;
  width: 5vw;

table {
  border: .15em solid black;
  border-collapse: collapse;
td, th {
  border: .08em solid black;
  padding: .3em;
td {
  text-align: center;
div {
  margin: .2em .3em;