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 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.
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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<div id = "main">
<h1 id = "title">Elon Reeve Musk
</h1>
<h2> American Enterpreneur</h2>
<div id = "img-div" >
<img id = "image" src = "https://i.pinimg.com/originals/3d/0d/a0/3d0da0ebf6339bad51887223a26410ae.jpg" alt id = "Portrait of Elon Musk">
</img>
<div id = "img-caption">
Founder, CEO, Lead Designer of SpaceX. <br>
Co-founder, CEO, Product Architect of Tesla, Inc.<br>
Co-founder of Neuralink.<br>
Founder of The Boring Company.<br>
Co-founder of Zip2.<br>
Founder of X.com (now PayPal).<br>
Co-founder of OpenAI.<br>
Chairman of SolarCity.</div></div>
<p id = "tribute-info">Tribute</p>
<h3 id = "section">Biography</h3>
<a id ="tribute-link" href="https://en.wikipedia.org/wiki/Elon_Musk"target="_blank">Wikipedia Link</a>
</div>
<p id = "img-caption"> Tribute
</p>
<p id = "tribute info">Elon Reeve Musk FRS (/ˈiːlɒn/; born June 28, 1971) is an industrial designer, technology entrepreneur, and philanthropist.[2][3][4] He is a citizen of South Africa, the United States (where he has lived most of his life and currently resides), and Canada. He is the founder, CEO and chief engineer/designer of SpaceX;[5] co-founder,[6] CEO and product architect of Tesla, Inc.;[7][8] founder of The Boring Company;[9] co-founder of Neuralink; and co-founder and initial co-chairman of OpenAI.[10] He was elected a Fellow of the Royal Society (FRS) in 2018.[11][12] In December 2016, he was ranked 21st on the Forbes list of The World's Most Powerful People,[13] and was ranked joint-first on the Forbes list of the Most Innovative Leaders of 2019.[14] As of May 2020, he has a net worth of $39.4 billion and is listed by Forbes as the 23rd-richest person in the world.[15][1] He is the longest tenured CEO of any automotive manufacturer globally.[16]<br><br>
Born and raised in Pretoria, South Africa, Musk briefly attended the University of Pretoria before moving to Canada when he was 17 to attend Queen's University. He transferred to the University of Pennsylvania two years later, where he received a bachelor's degree in economics from the Wharton School and a bachelor's degree in physics from the College of Arts and Sciences. He began a Ph.D. in applied physics and material sciences at Stanford University in 1995 but dropped out after two days to pursue a business career. He subsequently co-founded (with his brother Kimbal) Zip2, a web software company, which was acquired by Compaq for $340 million in 1999. Musk then founded X.com, an online bank. It merged with Confinity in 2000, which had launched PayPal the previous year and was subsequently bought by eBay for $1.5 billion in October 2002.[7][17][18][19]<br><br>
In May 2002, Musk founded SpaceX, an aerospace manufacturer and space transport services company, of which he is CEO and lead designer. He joined Tesla Motors, Inc. (Now Tesla, Inc.), an electric vehicle manufacturer, in 2004, the year after it was founded,[7] and became its CEO and product architect. In 2006, he inspired the creation of SolarCity, a solar energy services company (now a subsidiary of Tesla). In 2015, Musk co-founded OpenAI, a nonprofit research company that aims to promote friendly artificial intelligence. In July 2016, he co-founded Neuralink, a neurotechnology company focused on developing brain–computer interfaces. In December 2016, Musk founded The Boring Company, an infrastructure and tunnel construction company focused on tunnels optimized for electric vehicles.<br><br>
Apart from Tesla, Musk is not an investor in the stock market.[20] In addition to his primary business pursuits, Musk has envisioned a high-speed transportation system known as the Hyperloop, and has proposed a vertical take-off and landing supersonic jet electric aircraft with electric fan propulsion, known as the Musk electric jet.[21] Musk has said the goals of SpaceX, Tesla, and SolarCity revolve around his vision to "change the world and help humanity".[22] His goals include reducing global warming through sustainable energy production and consumption, and reducing the risk of human extinction by establishing a human colony on Mars.
</p>
<a href = "https://www.biography.com/business-figure/elon-musk" target = "_blank" class = "tribute-link"> Click Here For More Information about Elon Musk</a>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</div>
body {
text-align: center;
}
h1 {
font-family: Sans-Serif;
font-size: 35px;
background-color: grey;
}
h2 {
color: #8b0000;
font-size: 30px;
}
img {
display: block;
margin: 0 auto;
max-width: 100%;
#img-caption {
font-family: Sans-Serif;
}
p {
font-family: Helvetica;
text-align: left;
}
.tribute-link {
font-size: 15px;
}
Also see: Tab Triggers