Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <!DODTYPE html>
<html>
    <head>
        <meta charset ="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-param" content="authenticity_token">
        
        <title id = "title">Tribute Page </title>
        <!-- <header >
          <nav id="header">
            <a href="#" id="a_header">Sign Up</a>
            <a href="#" id="a_header">Log In</a>  
          </nav>
        </header> -->
        <link rel="stylesheet" type="text/css" href="index.css">
    
    </head>
    <body>
        <main id ="main">
          <span>
            Prithvi Narayan Shah: The Rise and Growth of Nepali Nation</heading>
          </span>
            <div id="img-div">
              <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Prithvi_Narayan_Shah_1960_(restoration).png/220px-Prithvi_Narayan_Shah_1960_(restoration).png" id ="image">
              <h5 id="img-caption">Prithvi Narayan Shah in 1960 after unification of Nepal</h5>
            </div>
            <section id="achieve"><u>
            <h2 id ="tribute-info">Here's a Timeline of Prithivi Narayan Shah's life: </h2></u>
            <ul>
              <li><b>1723 A.D - </b>Born in Gorkha Palace, Gorkha Kingdom</li>
              <li><b>1743 A.D - </b>Prithivi Narayan Shah had ascended to the throne of Gorkha</li>
              <li><b>1743 A.D - </b>His first attempt at invasion of Nuwakot failed and his reign began with an immediate military defeat</li>
              <li><b>1744 A.D - </b>The Nuwakot army was defeated</li>
              <li><b>1757 A.D - </b>His first attempt on Kirtipur was a defeat with a loss of minister kalu pandey</li>
              <li><b>1763 A.D - </b> Prithvi Narayan Shah attacked Kirtipur again after a humiliating defeat and defeated again</li>
              <li><b>1765 A.D - </b>Prithvi Narayan Shah attacked Kirtipur again after two humiliating defeats and finally made the conquest</li>
              <li><b>1763 A.D - </b>the Gorkhas conquered Makwanpur, one of the gateways to Nepal from Bengal</li>
              <li><b>1767 A.D - </b> Prithivi Narayan Shah had conquered the kathmandu Valley (Battle of Kathmandu, Battle of Bhaktapur, and Battle of Lalitpur)</li>
            </ul>
            </section>
            <content>
              <a href= "https://en.wikipedia.org/wiki/Prithvi_Narayan_Shah" id="tribute-link" target="_blank">Prithivi Narayan Shah</a> is a hero whose prowess the Nepalese nation owes its existence. By his valiant deeds, Prithvi Narayan transformed Gorkhali nationalism into Nepali nationalism and made it immensely more potent and effective.
            </content> 
            <hr>
            <div>
                <i class="fab fa-twitter"></i>
            </div>
        </main>
    </body>
    <footer> copyright : whoisAbi@2021</footer>
</html>

              
            
!

CSS

              
                body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
}
/* nav{
  position:relative;
  margin:-8px;
  text-align: right;
  height:10vh;
  width:100vw;
  background-color:#e01414;
} */
#a_header{
  text-decoration: None;
  padding: auto;
  font-size:24px;
  color:white;
}
span{
  font-size: 40px;
  margin-top: 300px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  
}
#image{
  align-items: center;
  display: grid;
  border-radius: 8px;
  margin: auto;
}
#img-caption{
  text-align: center;
  margin: auto;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 12px;
  color: darkviolet;
}
#tribute-info{
  text-align: center;
  margin-top: 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 32px;
  color: red;
}

#achieve{
  text-align: justify;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  margin: 10px;
}
Content{
  text-align: center;
  padding:4px;
  font-size:24px;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
footer{
  font-size: smaller;
  text-align: center;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
              
            
!

JS

              
                
              
            
!
999px

Console