Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE html>
<html>
    <head>
        <title> A Tribute to Bream</title>
        <link href="style1.css" type="text/css" rel="stylesheet">
    </head>
    <body>
        <div id="main">
            <header id="title">
                <h1>Julian Bream</h1>
                <h2>The English Guitarist</h2>
            </header>
            <div id="img-div">
                <img id="image" src="https://ichef.bbci.co.uk/images/ic/640x360/p01nrd8t.jpg" alt="During an interview with BBC in his home, Wiltshire, England.">
                <p id="img-caption"><em>During an interview with BBC in his home, Wiltshire, England</em>.</p>
            </div>
            <div id="tribute-info">
                <h3>Bream's Journey</h3>
                <ul>
                    <li><strong>1933</strong> - Born July 15, Battersea, London, England</li>
                    <li><strong>1935</strong> - Early in the year, the family moved to 25, Cleveland Avenue, Hampton, London, England 
                            Young Julian remembers being fascinated by the sound of the grand piano his father had just bought for 
                            their new home.</li>
                    <li><strong>1945</strong> - Julian's father encourages a career in music but with a orchestral instrument (the 
                            guitar was not considered an orchestral instrument or even widely accepted as a solo classical instrument 
                            at this time). Julian continues to play the piano.</li>
                    <li><strong>1947</strong> - Julian plays his first radio show for the BBC called the Children's Hour for Young 
                            Artist. He played Turina's "Fandanguillo", Carcassi's "Prelude" and Schumann's "Romanza". He played the 
                            Maccaferri guitar (additional unfretted string guitar).</li>
                    <li><strong>1949</strong> - Julian initiates his full time studies at the Royal College of Music.</li>
                    <li><strong>1960</strong> - Release of the LP recording Guitar Concertos on the RCA Victor Red Seal label.</li>
                    <li><strong>1992</strong> - Recording sessions for Nocturnal: Britten, Lutoslawski, Martin, Takemitsu and 
                            Brouwer at Forde Abbey in Dorset.</li>
                </ul>
                <div id="testimonial">
                    <p><em>"Bream had an extraordinary sense of an instrument's capability. His guitar music, even the accompaniments,
                             are simultaneously virtuosic and idiomatic."</em></p>
                    <p id="critic">- Steve Schwartz, music critic</p>
                </div> 
                <div id="more-info">
                    <p>If you have time, you should read more about this incredible musician on his <a id="tribute-link"
                             href="https://en.wikipedia.org/wiki/Julian_Bream" target="_blank">Wikipedia entry</a>.</p>
                </div>
            </div>
        </div>
    </body>
</html>
              
            
!

CSS

              
                #main {
   font-family: Garamond, Times, serif;
   background-color: lightgray;
   width: 100%;
   height: 100%;
   text-align: center;
}

#img-div {     /* image container */
    display: block;
    width: 100%;
    height: 360px;
    overflow: visible;
    margin: 0 auto;
    background-color: white;
    border: 5px solid white;
    padding: 10px 0 40px 0;
}

#img-caption {
    margin: 15px;
}

#image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

#tribute-info {
    max-width: 550px;
    margin: 30px auto;
}

h3 {
    text-align: center;
}

ul {
    text-align: left;
}
              
            
!

JS

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

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - 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. 

              
            
!
999px

Console