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>
<HTML>
<link href='https://fonts.googleapis.com/css?family=Cinzel Decorative' rel='stylesheet'>
<!--header-->
<div id="main">
<div class="jumbotron">
<h1 id="title">Grace Brewster Murray Hopper</h1>
</div>
<div id="main-box">
<body>
<!--first image and quote-->
<div class="container">
<div id="img-div">
<a href="#1"><img id="image" class="border" src="https://hackadaycom.files.wordpress.com/2017/12/gracehopper.jpg?w=646" alt="artistic image of young Hopper"/>
<div class="caption"><h2><span>"The most dangerous phrase <br/>in our language is:<br/> We've always done it that way."<br/><-></->Hopper</span></h2></div></a>
<!--caption under image-->
<div id="img-caption"><b>Amazing Grace, paving the way for todays progammers</b></div>
</div>
</div>
<!--biography-->
<h1 id="tribute-info">Biography:</h1>
<p>Born December 9th, 1906 Grace Hopper was to become an American computer scientist and United States Navy rear admiral. She is most well known for being among the first computer programmers. Being a pioneer in the industry lead to her being one of the first programmers of the Harvard Mark 1 computer as well as inventing one of the first compiler related tools. The idea of machine independent programming languages was made popular by Hopper which lead to the development of the early programming language COBOL. COBOL is still in use today and is primarily used in business, finance, and administrative systems for companies and governments. Grace passed away in her sleep from natural causes on January 1st, 1992. She was 85 years young. Without Grace Hoppers early contributions to programming the computer and tech industry would not be nearly as advanced as it is today. To learn more about Grace Hopper and the productive life she led <a id="tribute-link" href= "https://en.wikipedia.org/wiki/Grace_Hopper" target="_blank">Click Here </a>.</p>
<!--awards/timeline/second image-->
<h1>Awards & Accomplishments:</h1>
<ul>
<li><img id class="second-img border"
img Src="https://www.menosfios.com/wp-content/uploads/2017/03/hopper-tech.jpg" alt="Hopper standing next to computer"><b>1964:</b> Hopper recieved the Society of Women Engineers Achievement Award.
<li><b>1969:</b> Hopper was awarded the inaugural Data Processing Management Association Man of the Year award.
<li><b>1971:</b> The annual Grace Murray Hopper Award for Outstanding Young Computer Professionals was established in 1971.
<li><b>1973:</b> First American and the first woman of any nationality to be made a Distinguished Fellow of the British Computer Society.
<li><b>1982:</b> American Association of University Women Achievement Award and an Honorary Doctor of Science from Marquette University.
<li><b>1985:</b> Honorary Doctor of Letters from Western New England College.
<li><b>1986:</b> Upon her retirement, she received the Defense Distinguished Service Medal.
<li><b>1986:</b> Honorary Doctor of Science from Syracuse University.
<li><b>1987:</b> The first Computer History Museum Fellow Award Recipient "for contributions to the development of programming languages, for standardization efforts, and for lifelong naval service."
<li><b>1988:</b> Golden Gavel Award.
<li><b>1991:</b> National Medal of Technology.
<li><b>1991:</b> Elected a Fellow of the American Academy of Arts and Sciences.
<li><b>1994:</b> Inducted into the National Women's Hall of Fame.
<li><b>1996:</b> USS Hopper (DDG-70) was launched. Nicknamed Amazing Grace, it is on a very short list of U.S. military vessels named after women.
<li><b>2001:</b> Eavan Boland wrote a poem dedicated to Grace Hopper titled "Code" in her 2001 release Against Love Poetry.
<li><b>2001:</b> The Gracies, the Government Technology Leadership Award were named in her honor.
<li><b>2009:</b> The Department of Energy's National Energy Research Scientific Computing Center named its flagship system "Hopper".
<li><b>2009:</b> Office of Naval Intelligence creates the Grace Hopper Information Services Center.
<li><b>2013:</b> Google made the Google Doodle for Hopper's 107th birthday an animation of her sitting at a computer, using COBOL to print out her age. At the end of the animation, a moth flies out of the computer.
<li><b>2016:</b> On November 22, 2016 Hopper was posthumously awarded a Presidential Medal of Freedom for her accomplishments in the field of computer science.
<li><b>2017:</b> Hopper College at Yale University was named in her honor.
</ul>
</body>
</div>
<!--footer-->
<footer>Written and coded by: <a href= "https://codepen.io/hatbearingoctopus/" target="_blank">Hatbearingoctopus</a>.</footer>
</div>
</HTML>
/* Header styling */
.jumbotron {
text-align:center;
background-color:#3973ac;
padding:5px;
font-size: 28px;
}
/* font and sizing for main */
body {
font-family: 'Cinzel Decorative';font-size: 20px;
}
/* image styling */
#img-div #image {
position: relative;
height: auto;
max-width: 100%;
margin-left: auto;
margin-right: auto;
padding: 2px;
display: block;
}
#img-div a {
display: block;
}
#img-div .caption {
position: absolute;
left: 0;
right: 0;
}
/* border around images */
.border{
border-style: solid;
border-width: 2px;
border-color: #404040;
}
/* container around first image/quote/caption */
.container {
position: relative;
text-align: center;
color: black;
font-size: 12px;
}
/* Quote layout */
.caption {
position: absolute;
top: 25%;
left: 25%;
}
@media (min-width: 768px) {
.caption {
font-size: 14px;
}
}
/* Quote styling */
h2 span {
color: white;
font: bold 24px/45px Helvetica, Sans-Serif;
letter-spacing: -1px;
background: rgb(0, 0, 0); /* fallback color */
background: rgba(0, 0, 0, 0.7);
padding: 10px;
}
/* bottom right image */
.second-img{
float: right;
}
/* main background */
#main {background-color: #c6d9ec;
margin: 20px;
padding: 10px 10px 10px 10px;
}
/* biography content */
p {position: relative;
text-align: center;
color: black;
}
/* footer */
footer {
text-align:center;
font-size: 15px;
background-color:#3973ac;}
Also see: Tab Triggers