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.
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>TRIBUTE PAGE FOR STEVE JOBS</title>
<meta name="description" content="TRIBUTE PAGE FOR STEVE JOBS">
<link rel="stylesheet" href="stylesheet.css">
<link href="https://fonts.googleapis.com/css?family=Dosis|Lato|Oswald|Pacifico|Roboto" rel="stylesheet">
</head>
<body>
<div id="container">
<div id="header">
</div> <!-- header div-->
<div id="quote-1">
<p id="text"><span> The people who are crazy enough to think they can change the world are the ones who do.</span><br>
</p></div>
<div id="content">
<div class="subsection-header" id="bio-header">
TIMELINE
</div>
<div id="main-content">
<div class="event-date event-date-first-child">24 Feb 1955</div>
<div class="event-desc event-desc-nth-child">Steven Paul was born in San Francisco, the son of Abdulfattah Jandali and Joanne Schieble. He is quickly adopted by Paul and Clara Jobs</div>
<div class="event-date">1969</div>
<div class="event-desc event-desc-nth-child">Steve Jobs meets Steve Wozniak, 5 years older, through a mutual friend. Woz and Steve share a love of electronics, Bob Dylan, and pranks</div>
<div class="event-date">Mar 1976</div>
<div class="event-desc event-desc-nth-child">Woz and Steve show the early Apple I board at the Homebrew Computer Club</div>
<div class="event-date">28 Aug 1976</div>
<div class="event-desc event-desc-nth-child">Steve Jobs and Woz show off the Apple I at the Personal Computing Festival in Atlantic City, with help from Dan Kottke</div>
<div class="event-date">1978</div>
<div class="event-desc event-desc-nth-child">At Apple, work starts on the Apple III and the Lisa, while Jef Raskin begins <em>The Book of Macintosh</em></div>
<div class="event-date">May 1980</div>
<div class="event-desc event-desc-nth-child">Apple launches the Apple III, which will prove a disastrous flop</div>
<div class="event-date">Jan 1983</div>
<div class="event-desc event-desc-nth-child">Launch of the Lisa computer. The Lisa team later merges with the Mac team under Steve Jobs's leadership</div>
<div class="event-date">8 Apr 1983</div>
<div class="event-desc event-desc-nth-child">PepsiCo CEO John Sculley becomes Apple's CEO after having been wooed by Steve Jobs for several months</div>
<div class="event-date">17 Sep 1985</div>
<div class="event-desc event-desc-last-child">Steve Jobs resigns from Apple and starts NeXT with five other refugees from Apple. Apple announces it will sue NeXT</div>
<div class="event-date">Dec 1996</div>
<div class="event-desc event-desc-last-child">Apple, which was desperately looking for a modern operating system to buy, eventually buys NeXT for $400 million. Steve Jobs is named <em>"informal adviser"</em> to Apple CEO Gil Amelio</div>
<div class="event-date">6 May 1998</div>
<div class="event-desc event-desc-nth-child">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</div>
<div class="event-date">5 Oct 1999</div>
<div class="event-desc event-desc-nth-child">Introduction of the iMac DVs and of iMovie, the first of Apple's first <em>Digital Hub</em> app</div>
<div class="event-date">28 Apr 2003</div>
<div class="event-desc event-desc-nth-child">Apple opens the revolutionary online iTunes Music Store in the US, after negotiating landmark deals with all major music labels</div>
<div class="event-date">15 Jan 2008</div>
<div class="event-desc event-desc-nth-child">At Macworld 2008, Steve Jobs introduces MacBook Air, with the tagline 'the world's thinnest notebook'. Three years later, it will come to redefine all of Apple's notebook product line</div>
<div class="event-date">24 Aug 2011</div>
<div class="event-desc event-desc-nth-child"> Steve Jobs resigns as CEO of Apple, with the words '<em>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.</em>' Tim Cook becomes Apple CEO</div>
<div class="event-date">5 Oct 2011</div>
<div class="event-desc event-desc-nth-child">Steve Jobs dies at home, surrounded by his family</div>
</div> <!-- main-content-->
<div id="side-content">
<table class="info">
<tbody>
<tr>
<th colspan="2" id="nutshell"> IN A NUTSHELL
<img id="second-image" src="http://thoughtfortheday.in/wp-content/uploads/2016/05/Steve-Jobs-Quotes-4.jpg" /></th>
</tr>
<tr>
<th>
Born
</th>
<td>Steven Paul Jobs<br>
February 24, 1955<br>
San Francisco, California, U.S.
</td>
</tr>
<tr>
<th>
Died</th>
<td>
October 5, 2011 (aged 56)<br>
Palo Alto, California, U.S.</td></tr>
<tr>
<th> Occupation</th>
<td>Co-founder, Chairman, and CEO of Apple Inc.<br>
Primary investor and CEO of Pixar<br>
Founder and CEO of NeXT</td></tr>
<tr>
<th>Parents</th>
<td>
Paul Jobs (adoptive father)<br>
Clara Jobs (adoptive mother)<br>
Abdulfattah Jandali
(biological father)<br>
Joanne Schieble Simpson (biological mother)</td></tr>
<tr>
<th>Children</th>
<td> with Brennan;<br>
Lisa Brennan (b. 1978)<br>
with Powell;<br>
Reed Jobs (b. 1991)<br>
Erin Jobs (b. 1995)<br>
Eve Jobs (b. 1998)</td></tr>
<tr>
<th> Cause of <br> death</th>
<td> Pancreatic cancer and <br> respiratory arrest</td></tr>
</tbody>
</table>
</div> <!-- side-content-->
</div> <!-- content div-->
<div id="footer">
<div id="quote"> <p>"Have the courage to follow your heart and intuition. They somehow know what you truly want to become."<br>
-STEVE JOBS</p>
<p>Do read more about this impeccable personality <a href="https://en.wikipedia.org/wiki/Steve_Jobs">here.</a></p></div>
</div> <!--footer div-->
</div> <!-- container div -->
</body>
</html>
#container {
margin-left: auto;
margin-right: auto;
width: 1100px;
background-color:white;
}
#header {
width: 950px;
height: 550px;
background-color: ghostwhite;
background-image: url(http://www.hdwallpapers.in/walls/steve_jobs-wide.jpg);
background-size:cover;
margin-left: auto;
margin-right: auto;
}
#quote-1 {
height: 75px;
}
p span {
border: 0 solid black;
padding: 12px;
position: relative;
background-color: white;
}
#text {
text-align: center;
font-family:'Pacifico', cursive;
font-size: 25px;
}
#bio-header {
background: url(http://allaboutstevejobs.com/bio/bio-header.jpg) no-repeat;
position: relative;
top:10px;
left:150px;
}
.subsection-header {
line-height: 120px;
padding-left: 30px;
font-size: 50px;
color: #ececec;
font-weight: bold;
height: 120px;
width: 768px;
}
#content {
width: 1100px;
height: 900px;
margin-right: auto;
margin-left: auto;
background-color:white;
}
#main-content {
height: 700px;
width: 800px;
background-color: white;
position: relative;
top: 25px;
left: 10px;
font-family: 'Dosis' , sans-serif;
}
.event-date-first-child {
border-top: 1px solid #ccc;
margin-top: 0;
}
.event-date {
width: 100px;
height:7px;
text-align: center;
line-height: 26px;
float: left;
font-size: 14px;
border-top: 2px solid #ccc;
margin: -1px 0 0 0;
padding: 4px 5px 6px 0;
clear: left;
font-weight: bold;
}
.event-desc {
width: 625px;
background: #f9f9f9;
float: left;
margin: 0;
padding: 8px 12px 8px 8px;
border-top: 1px solid #ccc;
clear: right;
font-size: 14px;
}
.event-desc-nth-child {
border-bottom: 1px solid #ccc;
}
#side-content {
height: 700px;
width: 290px;
background-color: white;
float: right;
clear: both;
position: relative;
bottom: 680px;
}
#second-image {
width: 250px;
height: 200px;
position: relative;
top: 7px;
float: right;
right: 18px;
}
.info {
font-size: 90%;
font-family: 'Dosis' , sans-serif;
position: relative;
margin-bottom: 2em;
text-align: center;
background-color: white;
}
.th, .info td {
vertical-align: top;
border: 0;
border-bottom: 1px solid #dddddd;
padding: 0.2em;
}
#nutshell {
font-family: 'Lato' , sans-serif;
font-weight:bold;
font-size: 26px;
}
#footer {
background-color:#ececec;
height: 200px;
}
#quote {
font-family: 'Pacifico', cursive;
text-align:center;
font-size: 24px;
position: relative;
top:5px;
left: 150px;
}
a {
color:dodgerblue;
text-decoration:none;
}
a:hover {
text-decoration: underline;
color: blue;
}
Also see: Tab Triggers