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.


                <script src=""></script>
<!DOCTYPE html>
    <link rel="stylesheet" href="style.css">
    <meta charset="UTF-8">
    <meta name="description" content="Product Landing page">
    <header id="header">
        <img id="header-img" width="80" src="" alt="Google Logo">
        <nav id="nav-bar">
                <li><a class="nav-link" href="#whatischromebook">What is a Chromebook</a> </li>
                <li><a class="nav-link" href="#form">Newsletter</a> </li>
                <li><a class="nav-link" href="#Shop">Shop Chromebooks</a> </li>
        <section id="whatischromebook">
            <iframe id="video" width="560" height="315" src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        <section id="Newsletter">
            <form id="form" action="">
                <label for="email">Sign up for Newsletter:</label><br/>
                <input type="email" id="email" name="email" placeholder="Enter Email" required><br/>
                <input type="submit" id="submit" value="Sign Me Up">
        <section id="Shop">
            <div class="chrome1">
                <img style="width: 300px; height: 200px; margin-left: 5px;" src="" alt="Samsung Galaxy Chromebook">
                <h3>Samsung Galaxy Chromebook</h3>
                <p>4k AMOLED Display</p>
                <p>Intel Core i5 Processor</p>
                <p>Built-in Pen</p>
            <div class="chrome2">
                <img style="width: 300px;" src="" alt="HP Chromebook 15">
                <h3>HP Chromebook 15</h3>
                <p>Intel Core i5 Processor</p>
                <p>15" FHD Display</p>
                <p>13 Hours of Battery</p>
            <div class="chrome3">
                <img style="width: 300px;" src="" alt="Google Pixelbook Go">
                <h3>Google Pixelbook Go</h3>
                <p>Intel Core i5 Processor</p>
                <p>13.3" FHD Display</p>
                <p>12 hours of Battery Life</p>
        <p>Designed and Coded by <i>Makamae Torres</i></p>


                @media screen and (max-width: 600px){
    #nav-bar ul {
        float: none;
        width: 100%;

body {
    background-color: rgb(247, 246, 246);
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

#nav-bar {
    position: fixed;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    top: 0;

ul {
    list-style-type: none;
    display: inline;
    float: right;

li {
    float: left;

li a {
    display: block;
    color: #616060;
    text-align: center;
    text-decoration: none;
    padding: 14px 16px;

iframe {
    width: 560;
    margin-top: 100px;
    margin-left: 360px;

#header-img {
    margin-left: 340px;

#Newsletter {
    margin-left: 500px;
    margin-top: 100px;

input {
    padding: 6px;
    margin: 5px;
    border-radius: 0.25rem;

label {
    margin-left: 12px;

#submit {
    margin-left: 60px;
    background-color: #0a36fa;
    color: white;

#Shop {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: baseline;
    padding: 100px 20px;

.chrome1 {
    background-color: #bebebe;
    padding: 20px;

.chrome2 {
    background-color: #bebebe;
    padding: 20px;

.chrome3 {
    background-color: #bebebe;
    padding: 20px;

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;



                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.