HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!--tribute page to former indian president,scientist APJ ABDULKALAM -->
<script
src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<main id="main">
<div id="title">
<h1>Dr.APJ ABDULKALAM</h1>
<h3>"The missile man of india"</h3>
</div>
<div id="img-div">
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b7/A.P.J_Abdul_Kalam.png" alt="APJ abdulkalam in his office while he presitend of india" id="image">
<p id="img-caption">Image of APJ ABDULKALAM while he was 11<sup>th</sup> president of india.</p>
</div>
<div id="tribute-info">
<h4>Timeline of apj</h4>
<ul>
<li><h5>-->1931</h5>octobur 15 apj was born and raised in Rameswaram, Tamil Nadu</li>
<li><h5>-->1954</h5>attend Saint Joseph's College, Tiruchirappalli, from where he graduated in physics</li>
<li><h5>-->1960</h5>graduating from the Madras Institute of Technology in aerospace engineering</li>
<li><h5>-->1963 - 1964</h5> he visited NASA's Langley Research Center in Hampton, Virginia.
</li>
<li><h5>-->1970s - 1990s</h5>Kalam made an effort to develop the Polar Satellite Launch Vehicle (PSLV) and SLV-III projects of india. </li>
<li><h5>-->1998</h5>He also played a pivotal organisational, technical, and political role in India's Pokhran-II nuclear tests ,along with cardiologist Soma Raju, Kalam developed a low cost coronary stent, named the "Kalam-Raju Stent".</li>
<li><h5>-->2002 - 2007</h5>served as the 11th President of India.often called "people's preisdent"</li>
<li><h5>-->2012</h5> the designed a rugged tablet computer for health care in rural areas, which was named the "Kalam-Raju Tablet", Kalam launched a programme for the youth of India called the What Can I Give Movement, with a central theme of defeating corruption.</li>
<li><h5>-->2015</h5>While delivering a lecture at the Indian Institute of Management Shillong, Kalam collapsed and died from an apparent cardiac arrest on 27 July 2015, aged 83</li>
</ul>
</div>
<div id="awards">
<h4>Awards and honors</h4>
<p>Kalam received 7 honorary doctorates from 40 universities.The Government of India honoured him with the Padma Bhushan in 1981 and the Padma Vibhushan in 1990 for his work with ISRO and DRDO and his role as a scientific advisor to the Government.In 1997, Kalam received India's highest civilian honour, the Bharat Ratna, for his contribution to the scientific research and modernisation of defence technology in India.In 2013, he was the recipient of the Von Braun Award from the National Space Society "to recognize excellence in the management and leadership of a space-related project".In 2012, Kalam was ranked number 2 in Outlook India's poll of the Greatest Indian.</p>
</div>
<div id="quote">
<q>Success is when your Signature changes to Autograph.</q>
<p>-apj abdulkalam</p>
</div>
<div>
<p id="wiki">To find more about this missile man visit
<a href="https://en.wikipedia.org/wiki/A._P._J._Abdul_Kalam" id="tribute-link" target="_blank">here</a></p>
</div>
<div id="credits">
<p> with <svg width="24" height="24" viewBox="0 0 24 24">
<path d="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"></path>
</svg> by gowtham</p>
</div>
<a href="https://dev.to/gowtham" target="_blank">
<img src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="Gowtham's DEV Profile" height="30" width="30">
</a>
</main>
@import url('https://fonts.googleapis.com/css?family=Arima+Madurai:500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arima Madurai', cursive;
font-size: 16px;
}
body{
background-color: #e3e6e1;
padding: 20px;
overflow-x: hidden;
}
#title{
text-align: center;
padding: 18px 12px 16px;
font-size: 1.3em;
}
#title h1{
font-size: 1.8em;
}
#title h3{
font-size: 1.2em;
padding-top: 8px;
}
div{
margin: 0 auto;
}
#img-div{
display: block;
padding: 20px;
background-color: white;
max-width: 360px;
}
img{
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
border-radius: 5px;
}
#image{
padding-bottom: 0.3em;
}
#img-caption{
font-size: 0.9em;
text-align: center;
}
sup{
font-size: 0.6em;
}
#tribute-info{
padding: 0.9em;
}
#tribute-info h4{
font-size: 1.4em;
padding-bottom: 0.6em;
text-decoration: underline;
}
#tribute-info h5{
font-size: 1.2em;
}
ul{
display: block;
font-size: 0.9em;
padding: 1em;
border-left: 16px solid white;
border-radius: 5px;
list-style: none;
}
li{
padding: 0.3em 0 0.7em 0.8em;
}
#awards{
padding: 1em 0.5em;
}
#awards h4{
font-size: 1.3em;
padding-bottom: 0.7em;
text-decoration: underline;
}
#awards p{
text-indent: 2em;
}
#quote{
display:block;
text-align: center;
font-weight: 900;
}
#wiki{
padding: 1em;
font-size: 1.2em;
display: block;
}
a{
font-size: 1.2em;
text-decoration: none;
curser: pointer;
}
#credits{
text-align: center;
}
const projectName = 'tribute-page';
Also see: Tab Triggers