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.
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
<style>
h1 {
font-size: 64px;
color: black;
font-family: Arsenal;
}
#div1 {
background-color: silver;
text-align: center;
}
h2{
text-align: center;
color: black;
font-family: Arsenal;
}
#div2 {
}
.larger-image {
width: 750px;
border: 10px solid white;
}
#p1 {
font-fmaily: Arsenal;
font-size: 16px;
color: black;
}
#list {
text-align: left;
font-fmaily: Arsenal;
color: black;
}
.jumbotron {
<!--background-color: white;-->
font-family: Arsenal;
font-size: 12px;
color: black;
}
</style>
<script>
$(document).ready(function() {
$("h1").addclass("")
});
</script>
<div id=div1 class="container-fluid ">
<h1 class="text-center">Tribute Page for Steve Jobs</h1>
<h2><i>Pioneer of the Personal Computer</i></h2>
<div id=div2>
<div class="jumbotron">
<a href="#"> <img id="picJobs"class="imag-responsive larger-image" src="http://blogs-images.forbes.com/connieguglielmo/files/2012/11/Steve-Jobs-dates.jpg"alt="">
<div>
<div class="row">
<div class="col-xs-12">
<p id="p1">Steve Jobs is often thought of as one of the inventors of the personal computer. This tribute will timeline the key events up to the release of the Mac. </p>
</div >
</div>
</div >
</div>
</div >
<div>
<p>
<h2>
Time line of Job's introduction of the personal computer:
</h2>
<div class="row">
</div>
<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2"> <!-- class="col-xs-8" -->
<ul id="list" >
<li><b>1968</b> 13-Year-Old Seve Jobs calls up Bill Hewlett and gets a summer job at the HP factory</li>
<li><b>1969</b> Steve meets Steve Wozniak, 5 years older, through a mutal friend. Woz and Steve share a love of electronics, Bob Dylan, and pranks.</li>
<li><b>1972</b> Steve and Woz build and illegally sell "blue boxes" that allow users to make phone calls for free</li>
<li><b>1974</b> Steve gets his first job at video game maker Atari</li>
<li><b>1976</b> Woz and Steve show the early Apple I board to the Homebrew Computer Club</li>
<li><b>1976</b> Apple Computer Inc. is incorporated by Steve Jobs, Steve Wozniak adn Ron Wayne</li>
<li><b>1976</b> 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><b>1976</b> Steve Jobs and Woz show off the Apple I at the Personal Computing Festival in Atlantic City with help from Dan Kottke</li>
<li><b>1977</b> Former Intel executive turned business investor Mike Markkula invests in Apple and hires former colleague Mike Scott oas CEO. Woz is forced to leave HP to Join Apple full time</li>
<li><b>1977</b> Apple debuts the Apple II prototype at the West Coast Computer Faire to great acculades</li>
<li><b>1978</b> The Apple II becomes the fist mass-market personal computer, with impressive sales around the US. Apple becomes the symbol of the personal computing revolution</li>
<li><b>1978</b> Apple starts work on the Apple III and the Lisa, while Jef Raskin begins the <i>The Book of Macintosh</i></li>
<li><b>1979</b> Steve Jobs is shown the first working graphical user interface at Xerox PARC</li>
<li><b>1979</b> Sales of Apple II skyrocket after pioneer spreadsheet software Visicalc is introduced</li>
<li><b>1980</b> Jef Raskin's Macintosh project is green-lighted. Lisa evolves into a GUI-computer, in part because of Stve Jobs's demand</li>
<li><b>1980</b> Apple launces the Apple III, which will prove a disastrous flop</li>
<li><b>1981</b> Jef Raskin is forced out of his Macintosh project as Steve Jobs takes over</li>
<li><b>1982</b> IBM launches IBM PC, the biggest threat to Apple's future yet</li>
<li><b>1983</b> Lanuch of the Lisa computer. The Lisa Team laster merges with the Mac team under Steve Jobs's leadership</li>
<li><b>1984</b> Macintosh is launched in great fanfare at Apple's annual shareholder meeting</li>
</ul>
</div>
</div >
</p>
</div>
</div>
<div id="div1">
<p id=p1><i>Steve Jobs - We're gambling on our vision, and we would rather do that than make "me too" products. Let some other companies do that. For us, it's always the next dream.
<br>-Apple product event for the first Macintosh computer, January 24, 1984</br></i></p>
<P> </P> <!--double space-->
<p id=p1>Further reading on Steve Jobs's impact on the personal computer and his life can be found here on his <a ref="https://en.wikipedia.org/wiki/Steve_Jobs"> <b>Wikipedia entry.</b></a></p>
</div>
</div>
Also see: Tab Triggers