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.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!DOCTYPE html>
<html>
<main id="main">
<figure id="img-div">
<img id="image" src="https://www.investopedia.com/thmb/6Csf9SY8iD_DnBsLXHzDZBVlFPQ=/735x0/shutterstock_169450007-5bfc2f7f46e0fb002602296e.jpg" alt="Steve jobs the founder of apple">
<figcaption id="img-caption">
<u>Co-Founder of Apple Inc.</u>
</figcaption>
</figure>
<h1 id="title">
American Business Magnate
</h1>
<p>
"Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart."
<cite><strong>- Steve Jobs</strong></cite>
</p>
<h2 id="tribute-info">
Timeline of Notable Events
</h2>
<ul>
<li><strong>1955-</strong> <u>February 25th:</u> Steven Paul was born in San Francisco, the son of Abdulfattah Jandali and Joanne Schieble. He was quickly adopted by Paul and Clara Jobs. </li>
<li><strong>1960-</strong> <u></u> The Jobs family moves from San Francisco to Mountain View, a suburban town in Santa Clara county, more famous under the name Silicon Valley.</li>
<li><strong>1969-</strong> <u></u> Steve Jobs meets Steve Wozniak, 5 years older, through a mutual friend. Woz and Steve share a love of electronics, Bob Dylan, and pranks.</li>
<li><strong>1972-</strong> <u></u> Steve and Woz build and illegally sell 'blue boxes' that allow to make phone calls for free.</li>
<li><strong>1973-</strong> <u></u> Steve spends the fall semester at Reed College, Oregon, then drops out. He will stay on campus and attend the classes that interest him for a while, then move to a hippie commune.</li>
<li><strong>1976-</strong> <u>March:</u> Woz and Steve show the early Apple I board at the Homebrew Computer Club.</li>
<li><strong>1976-</strong> <u>April 1st:</u> Apple Computer Inc. is incorporated by Steve Jobs, Steve Wozniak and Ron Wayne.</li>
<li><strong>1976-</strong> <u>Spring:</u> </li>
<li><strong>1955-</strong> <u>February 25th:</u> Steve and Woz start assembling Apple I computers in the Jobses' garage, and sell them to computer hobbyists, including 50 for the Byte Shop.</li>
<li><strong>1976-</strong> <u>August 28th:</u> Steve Jobs and Woz show off the Apple I at the Personal Computing Festival in Atlantic City, with help from Dan Kottke.</li>
<li><strong>1977-</strong> <u>January:</u> Former Intel executive turned business angel Mike Markkula invests in Apple and hires former colleague Mike Scott as CEO. Woz is forced to leave HP to join Apple full time.</li>
<li><strong>1978-</strong> <u></u> The Apple II becomes the first mass-market personal computer, with impressive sales around the US. Apple becomes a symbol of the personal computing revolution. At the company, work starts on the Apple III and the Lisa.</li>
<li><strong>1978-</strong> <u>May 17th:</u> Steve's ex-girlfriend Chris-Ann Brennan gives birth to their daugher Lisa. Steve refuses to acknowledge he is the father.</li>
<li><strong>1980-</strong> <u>May:</u> Apple launches the Apple III, which will prove a disastrous flop.</li>
<li><strong>1980-</strong> <u>December 12th:</u> Apple goes public, increasing Steve Jobs' net worth from dozens of millions of dollars to over $200 million.</li>
<li><strong>1981-</strong> <u>August 12th:</u> IBM launches the IBM PC, the biggest threat to Apple's future yet.</li>
<li><strong>1984-</strong> <u>January 24th:</u> Macintosh is launched in great fanfare at Apple's annual shareholder meeting.</li>
<li><strong>1985-</strong> <u>May:</u> Palace coup: Apple's board sides with John Sculley and strips Steve off all executive duties.</li>
<li><strong>1985-</strong> <u>Septemberth 17th:</u> Steve Jobs resigns from Apple and starts NeXT with five other refugees from Apple. Apple announces it will sue NeXT.</li>
<li><strong>1986-</strong> <u>January 30th:</u> Jobs buys the computer division of George Lucas' ILM for $10 million and incorporates it as Pixar.</li>
<li><strong>1989-</strong> <u>June:</u> Canon invests $100 million in NeXT, now valued at $600 million.</li>
<li><strong>1991-</strong> <u>May:</u> Pixar signs a deal with Disney to make a computer-animated feature film.</li>
<li><strong>1995-</strong> <u>November 29th:</u> One week after Toy Story is out, Pixar goes public. Steve Jobs's worth rises to $1.5 billion, more than it ever was during his first tenure at Apple.</li>
<li><strong>1996-</strong> <u>December:</u> Apple, which was desperately looking for a modern operating system to buy, eventually buys NeXT for $400 million. Steve Jobs is named "informal adviser" to Apple CEO Gil Amelio.</li>
<li><strong>1997-</strong> <u>Fall:</u> Apple starts its Think Different campaign to restore its damaged brand image. The new slogan will quickly enter popular culture and define the company for the next five years.</li>
<li><strong>1998-</strong> <u>May 8th:</u> Steve Jobs introduces Apple's revolutionary iMac at the Flint Center auditorium in Cupertino, 14 years after he had introduced the Macintosh at that same place.</li>
<li><strong>2000-</strong> <u>January 5th:</u> At Macworld San Francisco, Steve Jobs drops the 'interim' in his title and officially becomes Apple's CEO. He also demoes Mac OS X's revolutionary Aqua interface to a bewildered audience.</li>
<li><strong>2001-</strong> <u>May 19th:</u> Apple opens its first Retail Stores in Tysons Corner, Virginia and Glendale, California.</li>
<li><strong>2003-</strong> <u>October 16th:</u> Steve Jobs introduces iTunes for Windows and further demonstrates Apple's growing lead over its competitors in the digital music business.</li>
<li><strong>2003-</strong> <u>Fall:</u>
Steve Jobs is diagnosed with pancreatic cancer, but stubbornly refuses any modern medical treatment for months. He tries alternative diets instead.</li>
<li><strong>2005-</strong> <u>June 12th:</u> Steve Jobs makes a memorable commencement speech at Stanford University. History will remember its closing remarks, Steve's advice to the young students: 'Stay hungry, stay foolish', a quote from the last page of the Whole Earth Catalogue from his youth.</li>
<li><strong>2006-</strong> <u>January 24th:</u> Steve Jobs makes a memorable commencement speech at Stanford University. History will remember its closing remarks, Steve's advice to the young students: 'Stay hungry, stay foolish', a quote from the last page of the Whole Earth Catalogue from his youth.</li>
<li><strong>2007-</strong> <u>January 9th:</u> In his most memorable keynote presentation ever, at Macworld 2007, Steve Jobs introduces iPhone and its revolutionary touch-screen interface. He also introduces Apple TV and announces the company's name change from Apple Computer Inc. to Apple Inc. to better reflect its new nature.</li>
<li><strong>2008-</strong> <u>March 6th:</u> Apple announces it will open the iPhone platform to outside developers with the App Store. VC fund KPCB starts iFund to invest in the new mobile app economy that they (rightly) believe will sprout from it.</li>
<li><strong>2010-</strong> <u>January 27th:</u> After months of wild rumors, Steve Jobs unveils iPad, 'the biggest thing Apple's ever done'. The tablet runs the same operating system as iPhone.</li>
<li><strong>2011-</strong> <u>March 2nd:</u> Despite his medical leave, Steve Jobs takes the stage to unveil the new iPad 2.</li>
<li><strong>2011-</strong> <u>June 6th:</u> At his last keynote at WWDC 2011, a freil Steve Jobs unveils Apple's cloud offering, iCloud, the foundation for the next decade of Apple products.</li>
<li><strong>2011-</strong> <u>June 7th:</u> Steve Jobs appears at the Cupertino City Council to unveil Apple's plans for its new 'Spaceship' campus. This is his last public appearance.</li>
<li><strong>2011-</strong> <u>August 24th:</u> Steve Jobs resigns as CEO of Apple, with the words 'I have always said if there ever came a day when I could no longer meet my duties and expectations as Apple's CEO, I would be the first to let you know. Unfortunately, that day has come.' Tim Cook becomes Apple CEO.</li>
<li><strong>2011-</strong> <u>October 5th:</u> Steve Jobs dies at home, surrounded by his family.</li>
</ul>
<h3 id=""> If you'd like more information about this visionary visit his <a id="tribute-link" href="https://en.wikipedia.org/wiki/Steve_Jobs" target="_blank">Wikipedia Page</a>.
</h3>
</main>
</html>
#img-div {
margin; 0;
}
#image {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto;
border-radius: 20px;
border-color: black;
border-width: 3px;
border-style: solid;
}
#img-caption {
font-family: calibri;
text-align: center;
font-size: 20px;
}
#title {
font-family: calibri;
text-align: center;
font-size: 50px;
padding-top: 30px;
padding-bottom: 0px;
}
#tribute-info {
font-family: calibri;
text-align: center;
}
p {
border-radius: 10px;
width: 60%;
height: 100px;
margin: 80px auto;
background-image: linear-gradient(360deg, white, gray);
font-family: calibri;
font-size: 20px;
text-align: center;
}
#headline {
text-align: center;
}
ul {
border-radius: 10px;
width: 70%;
height: 2045px;
margin: 80px auto;
background-image: linear-gradient(190deg, #d3d3d3, white, #d3d3d3);
font-family: calibri;
font-size: 20px;
line-height: 40px;
}
h3 {
font-family: calibri;
text-align: center;
font-size: 20px;
}
// !! 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.
/***********
INSTRUCTIONS:
- Select the project you would
like to complete from the dropdown
menu.
- Click the "RUN TESTS" button to
run the tests against the blank
pen.
- 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.
Also see: Tab Triggers