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>

<!-- 

Hello Camper!

For now, the test suite only works in Chrome! 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 

-->
<!DOCTYPE HTML>
<html lang="en">
  
    <!-- Title of the webpage that describes itself -->
    <head>
      <title>Shri SWAMI VIVEKANAND</title>
      
      <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
    </head>
    
    <main id = "main">
       <!-- Header of this webpage -->         
      <header>
        
        <h1 id = "title">Shri Swami Vivekananda</h1>
         <h2> The Indian philosopher of Vedanta and Yoga to the Western world
          </h2>
      </header>
          
      <div id="img-div">
        <img src = "https://upload.wikimedia.org/wikipedia/commons/e/e8/SWAMI_VIVEKANANDA.jpeg" alt = "Swami Vivekanada Main Image" id ="image">
        
      <div id = "img-caption">
        <p>Swami Vivekananda perhaps best known for his speech which began with the words - "Sisters and brothers of America ...in which he introduced Hinduism at the Parliament of the World's Religions in Chicago in 1893.</p>
        </div>
        
      </div>
          
       
      <div id ="tribute-info"> Here's timeline of Swami Vivekananda:
        <div class = "timeline-container">
          <ul>
          <li>Vivekananda was born Narendranath Datta (shortened to Narendra or Naren) in a Bengali family at his ancestral home at 3 Gourmohan Mukherjee Street in Calcutta,the capital of British India, on 12 January 1863 during the Makar Sankranti festival.</li>
          
          <li>In 1871, at the age of eight, Narendranath enrolled at Ishwar Chandra Vidyasagar's Metropolitan Institution, where he went to school until his family moved to Raipur in 1877.
          </li>
          <li>In 1881 Narendra first met Ramakrishna, who became his spiritual focus after his own father had died in 1884
           </li>
            <li>In 1887, Narendra compiled a Bengali song anthology named Sangeet Kalpataru with Vaishnav Charan Basak. Narendra collected and arranged most of the songs of this compilation, but could not finish the work of the book for unfavourable circumstances.
            </li>
          <li>11 September 1893 at the Art Institute of Chicago as part of the World's Columbian Exposition. On this day, Vivekananda gave a brief speech representing India and Hinduism
            </li>
            
            <li>On 1 May 1897 in Calcutta, Vivekananda founded the Ramakrishna Mission for social service. Its ideals are based on Karma Yoga
            </li>
            <li>On 4 July 1902 Swamiji dies at the age of 39.
            </li>
          </ul>
                   
        </div>
        
       </div>
   <p>Please take time to read more for <a href = "https://en.wikipedia.org/wiki/Swami_Vivekananda" id="tribute-link" target = "_blank" alt ="click to know more about Swami Vivekananda"> information about Shri Swami Vivekananda
     </a></p>
  </main>
</html>
              
            
!

CSS

              
                html {
  background-color: #FFB266;
}

#title {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-family: lobster;
  
}

#main {
  font-family: "Lobster", "Calibri"
}



#image {
  display: block;
  width: 54%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  max-width: 450px;
}

#img-caption {
  font-size: 18px;
  text-align: center;
  
}

#tribute-info {
  font-size: 36px;
  text-align: center;
  padding-top: 1px; 
}

#timeline-container {
  text-align: center;
  font-size: 9px;
}

ul li {
width:auto;
text-align:justify;
font-family: san serif;
font-size: 18px;
}
h1 {
  text-align: center;
  color: black;
  text-decoration: underline;
  background: -webkit-linear-gradient(#fff, #540)
}

h2 {
  text-align: center;
  padding-right: 30px;
  opacity: 54%;
}

p {
  text-align: center;
  font-size: 27px;
  
  padding-bottom: 9px;
  padding-top: 9px;
  margin: 20px;
}

#welcome-section {
  text-align: center;
  color: white;
}
              
            
!

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