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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <!-- 

Hello Camper!

Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<style>
  {
    .img-container {
      text-align: center;
      display: block;
      margin: auto;
    }
</style>
<div id="main">

  <h1 id="title"> Maya Angelou
  </h1>

  <h2> An American Poet, Memoirist, and Civil Rights Activist
  </h2>

  <div id="img-div">

    <img id="image" src=https://i.etsystatic.com/25815771/r/il/80f9aa/2644120858/il_794xN.2644120858_kgys.jpg alt="Photo of Maya Angelou" width="20%" height="20%">
    </img>

    <div img-div id="img-caption"> Photo of Maya
      Angelou
    </div>
  </div>
  </p>

  <p id="tribute-info">Maya Angelou, born Marguerite Annie Johnson on April 4, 1928 was an American poet, memoirist, and civil rights activist. She published seven autobiographies, three books of essays, several books of poetry, and is credited with a list of plays, movies, and television shows spanning over 50 years. She received dozens of awards and more than 50 honorary degrees. <br><br> Maya Angelou is best known for her series of seven autobiographies, which focus on her childhood and early adult experiences. The first, I Know Why the Caged Bird Sings (1969), tells of her life up to the age of 17 and brought her international recognition and acclaim. She became a poet and writer after a string of odd jobs during her young adulthood. These included fry cook, sex worker, nightclub performer, Porgy and Bess cast member, Southern Christian Leadership Conference coordinator, and correspondent in Egypt and Ghana during the decolonization of Africa. She was also an actress, writer, director, and producer of plays, movies, and public television programs. <br><br> In 1982, she was named the first Reynolds Professor of American Studies at Wake Forest University in Winston-Salem, North Carolina. Maya Angelou was active in the Civil Rights Movement and worked with Martin Luther King Jr. and Malcolm X. Beginning in the 1990s, she made approximately 80 appearances a year on the lecture circuit, something she continued into her eighties. <br><br> In 1993, Angelou recited her poem "On the Pulse of Morning" (1993) at the first inauguration of Bill Clinton, making her the first poet to make an inaugural recitation since Robert Frost at the inauguration of John F. Kennedy in 1961.<br><br> With the publication of I Know Why the Caged Bird Sings, Angelou publicly discussed aspects of her personal life. She was respected as a spokesperson for Black people and women, and her works have been considered a defense of Black culture. Her works are widely used in schools and universities worldwide, although attempts have been made to ban her books from some US libraries. Angelou's most celebrated works have been labeled as autobiographical fiction, but many critics consider them to be autobiographies. She made a deliberate attempt to challenge the common structure of the autobiography by critiquing, changing and expanding the genre. Her books center on themes including racism, identity, family and travel.<br><br>Angelou died on the morning of May 28, 2014 at the age 86. She was found by her nurse. Although Angelou had reportedly been in poor health and had canceled recent scheduled appearances, she was working on another book, an autobiography about her experiences with national and world leaders. During her memorial service at Wake Forest University, her son Guy Johnson stated that despite being in constant pain due to her dancing career and respiratory failure, she wrote four books during the last ten years of her life. He said, "She left this mortal plane with no loss of acuity and no loss in comprehension."
  </p>

  <a href="https://en.wikipedia.org/wiki/Maya_Angelou" target="_blank" id="tribute-link"> Click for more information about Maya Angelo</a>

</div>
              
            
!

CSS

              
                body {
  text-align: center;
  
}

h1 {
  font-family: Garamond;
  font-size: 80px;
  font-style: Italic;
  background-color: gold;
}

h2 {
  font-family: Arial;
  font-size: 30px;
  color: #800020;
}

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

#img-caption {
  font-family: Arial Black;
  font-size: 12px;
  fontstyle: Italic;
}
p {
  font-family: Times New Roman;
  font-size: 20px;

              
            
!

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