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 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.
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>
<main id="main">
<h1 id="title"><bold>Temple Grandin</bold></h1>
<figure id="img-div">
<img id="image" src="https://www.crisiscenterinc.org/uploads/images/20151230153729.jpg" width=100% height=auto; />
<figcaption id="img-caption">"I'm a visiual thinker, not a language-based thinker. My brain is like Google Images" -Temple Grandin
</figcaption>
</figure>
<section id="tribute-info">
<h2 id="timeline">Temple Grandin's Time Line</h2>
<ul>
<h4>
<li><strong>August 29,1947- </strong>born in Boston, Massachusetts to Richard Grain and Eustacia Cutler.</li></h4>
<h4>
<li><strong>August 18,1949- </strong>diagnosed with autism at age 2.</li></h4>
<li><strong>1951- </strong>speaks at the age of 4.</li></h4>
<li><strong>1966- </strong>Completes her schooling from Hampshire Country School.</li></h4>
<li><strong>1970- </strong>graduated from Franklin Pierce College with a Bachelors degree in psychology.</li></h4>
<li><strong>Dec 18,1975- </strong>Graduates from Arizona State University with a Master's degree in Animal Science.</li></h4>
<li><strong>1986-</strong>Published her autobiography 'Emergence:Labeled Autistic'</li></h4>
<li><strong>1989-</strong>Graduated from the University of Illinois at Urbana-Champaign with a doctoral degree in Animal Science.</li></h4>
<li><strong>1989-</strong>Started working as a consultant to companies that operated large animal slaughter plants, including McDonalds, Burger King and ConAgra to provide quality food to their consumers.</li></h4>
<li><strong>2004-</strong> co-author of ‘Developing Talents: Careers for Individuals with Asperger Syndrome and High-Functioning Autism’ .</li></h4>
<li><strong>2005-</strong>co-author of ‘Unwritten Rules of Social Relationships’ .</li></h4>
<li><strong>2005-</strong>Released her research of animal welfare in the New York Times best-selling book ‘Animals in Translation: Using the Mysteries of Autism to Decode Animal Behavior’, .</li></h4>
<li><strong>2009-</strong> co-authored ‘Animals Make Us Human: Creating the Best Life for Animals’ with Catherine Johnson,which was included in the best-seller list of New York Times.</li></h4>
<li><strong>2010-</strong>Her life story was adapted into an inspiring semi-biographical HBO film ‘Temple Grandin’, featuring Claire Danes in the lead role, which won several Emmy Awards and a Golden Globe Award.</li></h4>
<li><strong>20056 and 2011- </strong>She made special appearances in the documentaries ‘Beautiful Minds: A Voyage Into the Brain’ and ‘Ingenious Minds’</li></h4>
</ul>
</ul> <li><strong>other appearances-</strong>various TV programs including PrimeTime Live, Larry King Live, Fresh Air with Terry Gross, 48 Hours, Today Show, It’s Your Health, 60 Minutes, and 20/20..</li></h4>
<li><strong>other features-</strong>numerous international magazines, namely, The New York Times, People magazine, Forbes, Times magazine, Discover magazine, and US News and World Report.</li></h4>
<li><strong>other notable books-</strong> ‘Thinking in Pictures, and Other Reports from My Life with Autism’ (1995), ‘Genetics and the Behavior of Domestic Animals’ (1998), and ‘The Autistic Brain: Thinking Across the Spectrum’ (2013).</li></h4>
<li><strong>Major Works-</strong>In order to reduce panic, stress, hesitation and pain experienced by animals upon the sight of a slaughterhouse, she designed a curved corral or circular chute unlike the standard straight chutes, thereby improving plant efficiency. </li></h4>
<li><strong>other major works-</strong> She advocated the re-location of hogs to less crowded and cooler places to reduce the levels of PSE or ‘pale, soft and exudative’ in pork, eventually lowering the glycogen levels in the muscles and giving a good pH-balanced meat..</li></h4>
</ul>
<h2>More info:</h2>
<h4>Wish to know more about this great lady, check her out here:
<a id="tribute-link"
href= "https://www.thefamouspeople.com/profiles/temple-grandin-2960.php" target="_blank">Temple Grandin Biography</a></h4>
.container-fluid{
background-color: red;}
h1 {
background-color: red;
font-family: Verdana;
font-size: 500%;
text-align:center;
margin-bottom:3px;
}
#main {
margin: 30px 8px;
padding: 15px;
border-radius: 5px;
background: #eee;
}
@media (max-width: 460px) {
#main {
margin: 0;
}
}
img {
max-width: 50%;
display: block;
height: auto;
margin: 0 auto;
}
.img-caption{
text-align:center;
}
div.desc {
padding: 15px;
img-align: center;
}
ul {
list-style-type: none;
text-decoration:none;
}
li{
list-style-type:none;
}
#tribute-info{
text-align:center;
}
h2 {
font-color: blue;
font-family: Verdana;
font-size: 24;
text-align:center;
}
h4 {
font-family: Times New Roman;
font-size: 16;
font-color: black;
}
li{
text-align:center;
}
Also see: Tab Triggers