Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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.


  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="Stylesheets.css">
  <title>Tribute Page- Shaheed Bhagat Singh</title>

<main id="main">
    <h1 id="title">Shaheed Bhagat Singh</h1>
    <h2 id="Caption"><i>"An Indian revolutionary socialist
        who was influential in the Indian independence movement."</i></h2>
  <!--Header -->

  <div id="img-div">
    <img id="image" src="" alt="Bhagat_Singh">
    <p id="img-caption">Shadeed Bhagat Singh</p>
  <!--Image Div -->

  <h2 id="heading">Here is the timeline of Shaheed Bhagat Singh's Life</h2>

  <ul id="tribute-info">
    <li><b>1907 - </b>Born in village Banga, Punjab (Present Pakistan).</li>

    <li><b>1923 - </b>Joined the National College in Lahore.</li>

    <li><b>1924 -</b> Became a member of the Hindustan Republican Association.</li>

    <li><b>1928 -</b> British set up the Simon Commission to report on the political situation in India. Lala Lajpat Rai, a prominent leader of HRA, Rai died of a heart attack. Enraged by his incident, Singh vowed to avenge Rai’s death and teamed up with other revolutionaries,shivaram Rajguru, Sukhdev Thapar and Chandrashekhar Azad to make plan to kill Scott.</li>
    <li><b>1929 -</b> Singh, accompanied by Batukeshwar Dutt, threw two bombs into the Assembly chamber from its public gallery.<i>Their intention was not to kill anyone</i> but to gain publicity. After the explosion, the young men began shouting the slogan "Inquilab indabad!" ("Long Live the Revolution") and threw leaflets. Then they offered themselves for arrest.

      <span>"If the deaf are to hear the sound has to be very loud"
        -Bhagat Singh</span>

      <li><b>1931 -</b> Singh’s growing popularity bothered the British authorities greatly and the government decided to advance the start of the Saunders murder trial, which was henceforth called the Lahore Conspiracy Case. Hanged in the Lahore jail.
      Bhagat Singh was just 23 years old. The bodies were then secretly cremated outside Ganda Singh Wala village.</li>

  <!--  Unordered List -->

  <p>If you have time, you should read more about this brave revolutionary socialist on this <a id="tribute-link" target="_blank" href="">Wikipedia
      Page</a>on him.</p>
  <p>Made for <a class="link" href="">freeCodeCamp Organization </a>by Me. 
    Follow me on<a class="link" href=""> Github</a></p>
<!--  Links Section -->

<!--  Main Section -->



                /* Body Syles */
body {
  background-color: #000;

/* Main Section Syles */
#main {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-align: center;
  background-color: #b19cd9;
  padding: 25px;
  box-shadow: 3px 3px 8px white;
  width: 80%;
  margin: 3px auto;
  overflow: hidden;

/* Title Syles */
#title {
  color: teal;
  padding: 25px;
  font-size: 68px;
  text-align: center;
  text-shadow: 3px 3px 8px black;
  margin: 15px;
  justify-content: center;

/*The heading After Title*/
#Caption {
  opacity: 0.7;
  padding: 10px;
  color: black;
  margin: 10px;
  margin-bottom: 33px;
  font-size: 40px;
  text-align: center;
  font-style: italic;
  overflow: hidden;
  max-width: 100%;
  max-height: fit-content;
  text-shadow: -2px 0 white, 0 -2px whwhite, 0 0 6px white;

/* Image div syles */
#img-div {
  display: flex;
  align-items: center;
  flex-direction: column;

/* Image-styles */
#image {
  border: solid 2px whitesmoke;
  max-width: 100%;
  display: block;
  height: auto;
  padding: 2px;
  border-radius: 10% 0 10% 0;
  margin: auto;

/* Image-caption */
#img-caption {
  text-align: center;
  margin: auto;

/* Heading After Image */
#heading {
  padding: 27px;
  margin: 27px;
  color: teal;
  background-color: plum;
  border: 2px solid black;
  border-radius: 40px;
  max-width: 100%;
  height: fit-content;
  overflow: hidden;
  text-shadow: -1px 0 black, 0 -1px black, 0 0 1px black;

/* Tribute Info syles */
#tribute-info {
  text-align: left;
  padding: 7px;
  padding-top: 8px;
  padding-bottom: 8px;
  list-style: circle;

/* List Syles */
#tribute-info li {
  font-size: 28px;
  white-space: pre-line;

/* Paragraph Syles */
main p {
  font-family: sans-serif;
  font-size: 28px;

/* Link Syles */
#tribute-link {
  text-decoration: none;
  color: teal;
  padding: 10px;
  text-shadow: -1px 0 black, 0 -1px black, 0 0 1px black;

#name-link {
  text-decoration: none;
  color: teal;
  padding: 10px;
  text-shadow: -1px 0 black, 0 -1px black, 0 0 1px black;

/* Quote Syles */
span {
  color: whitesmoke;
  display: flex;
  max-width: 100%;
  height: auto;
  align-items: center;
  text-shadow: 1px 1px 5px white;
  border: 2px silver solid;
  background-color: black;
  padding: 20px;
  box-shadow: 2px 2px 8px black;

/* Footer Syles */
#footer {
  display: flex;
  text-align: center;
  background-color: black;
  color: white;
  justify-content: center;
  height: 200px;



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