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

              
                
  <!-- 

  Hello Camper!

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

  -->
  <main id="main">
    <h1 id="title">Dr. B. R. Ambedkar</h1>
    <p>The Man who tried to turn the Wheel of the Law
toward social justice for all</p>
    <figure id="img-div">
      <img id="image" src="https://upload.wikimedia.org/wikipedia/commons/0/01/B.R._Ambedkar_in_1950.jpg" alt="Dr. Ambedkar as India’s first Law Minister in 1950">
      <figcaption id="img-caption">Dr. Ambedkar as India’s first Law Minister in 1950.
      </figcaption>
    </figure>
    <section id="tribute-info">
      <h3 id="headline">Here's Is the Timeline of The Dr. B. R. Ambedkar's Life:</h3>
      <ul>
        <li><strong>1891</strong> - On 14 April Born At Mhow(Madhyapradesh, India).</li>
        <li><strong>1913</strong> - B.A in economics and political science from University of Bombay.</li>
        <li><strong>1915</strong> - M.A. in Economics from Columbia University in New York City.</li>
        <li><strong>1921</strong> - M.Sc. in Economics from London School of Economics.</li>
        <li><strong>1922</strong> - Barrister-at-law from Gray's Inn, London UK</li>
        <li><strong>1952</strong> - LL.D.(Honoris Causa) Columbia University, New York</li>
        <li><strong>1953</strong> - D.Litt.(Honoris Causa) Osmania University, India</li>
        <li><strong>1956</strong> - Passed Away(aged 65) at Delhi, India On 6 Dec</li>
        <li><strong>1990</strong> - Dr. B. R. Ambedkar is posthumously awarded India’s highest civilian award, the Bharat Ratna</li>
      </ul>
      <blockquote 
       cite="https://velivada.com/2017/07/25/analyzing-famous-quote-babasaheb-ambedkar-battle-not-wealth/">
        <p>
          "Our is a battle&#59; not for wealth, nor for power. Ours is battle&#59; for freedom&#59; for reclamation of human personality."
        </p>
        <cite>-- 1st Minister of Law and Justice Dr. B. R. Ambedkar</cite>
      </blockquote>
      <h3>If you have time, you should read more about this incredible human being on his <a id="tribute-link" href="https://en.wikipedia.org/wiki/B._R._Ambedkar" target="_blank">Wikipedia Entry</a></h3>
    </section>
  </main>
              
            
!

CSS

              
                html {
  /* making the rems easy for future reference for example 1 rem = 10px an 1.5 rem = 15px*/
  font-size: 10px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif, Verdana;/* Verdana is best */
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  color: #333333;
  background: #145D79;
}

h1 {
  font-size: 4rem;
  margin-bottom: 0;
}

h2 {
  font-size: 3.25rem;
}

a {
  color: #3B649C;
}

a:visited {
  color: #3B649C;
}

#main {
  margin: 37.5px 10px;
  padding: 15px;
  border-radius: 5px;
  background: #1F8F7C;
}

img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
  height: auto;
}

#img-div {
  background: #50B992;
  padding: 10px;
  border-radius: 5px;
  align: center;
}

#img-caption {
  margin: 15px 0 5px 0;
}

@media (max-width:460px) {
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
  #main {
    margin: 0;
  }
  #img-caption {
    font-size: 1.4rem;
  }
}

#headline {
  margin: 30px 0;
}

ul {
  max-width: 450px;
  text-align: left;
  margin: 0 auto 50px auto;
  line-height: 1.5;
}

li {
  margin: 16px 0;
}

blockquote {
  font-style: Italic;
  max-width: 425px;
  text-align: left;
  margin: 0 auto 50px auto;
}

              
            
!

JS

              
                const projectName = 'tribute-page';
              
            
!
999px

Console