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.
<html>
<head>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li class="active"><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contacts</a></li>
</ul>
</div>
</nav>
<div class="container">
<!--C Key Title and pic-->
<div class="row">
<div class="col-xs-12 cnote" id="home"><a href="#home"></a>
<div class="row">
<div class="col-xs-8">
<h1>Design By Christopher</h1>
</div>
<div class="col-xs-4">
<img src="
http://i68.tinypic.com/10ribgz.jpg" border="0" alt="Image and video hosting by TinyPic" class="img-responsive">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-3 dSharp">
<p>dnote#</p>
</div>
<!--C Sharp key Description of job-->
<div class="col-xs-9 dFlat" id="intro">
<h2>Front End Web Developer and Designer</h2>
<p>All around Creative with experience in Web design and development, music writing and production, content management and Writing</p>
</div>
</div>
<!--D Note Key-->
<div class="row">
<div class="col-xs-12 dnote" id="about"><a href="#about" target="_blank"></a>
<p>Starting from producing music in my college dorm room, I started developing as a creator and artist. Wordplay and metaphors from songwriting translate easily practical website design with thematic elements that bring out the identity of the site owner. I’ve also experienced creating content with long form essays on my own blog. So I know what goes into making a useable website that keeps a reader or user coming back. </p>
</div>
</div>
<!--D Sharp Key note-->
<div class="row">
<div class="col-xs-3 dSharp">
</div>
<div class="col-xs-9 dFlat">
<p>I have experience in digital photography and 10 years of experience with Photoshop that have helped develop my eye for design and pleasing aesthetics. I take pride in bringing together expressive design with minimal, practical user experience. </p>
</div>
</div>
<!--E and F Note Key for site Thumbnails-->
<div class="row">
<div class="col-xs-12 enote" id="portfolio"><a href="#portfolio" target="_blank"></a>
<div class="row">
<!--first column-->
<div class="col-xs-4 thumbnail">
Thumbnail 1
</div>
<!--second column-->
<div class="col-xs-4 thumbnail">
Thumbnail 2
</div>
<!--Third column-->
<div class="col-xs-4 thumbnail">
thumbnail 3
</div>
</div>
</div>
</div>
<!--F Sharp Note Key-->
<div class="row">
<div class="col-xs-3 dSharp">
</div>
<div class="col-xs-9 dFlat" id="contact"><a href="#contact" target="_blank"></a>
<h2>Contact Me
</h2>
<p>
If you'd like to inquire about working together, please reach out to me via:
</p>
<br>
<p>
c.hale12@yahoo.com
</p>
</div>
</div>
<!--G Note key-->
<div class="row" id="social">
<div class="col-xs-12 dnote">
<div class="row">
<div class="col-xs-3"><a href="https://twitter.com/ChrystopherHale" target="_blank"><i class="fa fa-twitter"></i></div>
<div class="col-xs-3"><a href="https://github.com/ChrystopherHale" target="_blank"><i class="fa fa-github"></i></a></div>
<div class="col-xs-3"><a href="https://instagram.com/ChrystopherHale" target="_blank"><i class="fa fa-instagram"></i></a></div>
<div class="col-xs-3"><a href="https://pinterest.com/cjhale12/"><i class="fa fa-pinterest"></i></a></div>
</div>
</div>
</div>
<!--G Sharp Key-->
<div class="row">
<div class="col-xs-3 dSharp">
</div>
<div class="col-xs-9 dFlat">
</div>
</div>
<!--A Note Key-->
<div class="row">
<div class="col-xs-12 dnote">
</div>
</div>
<!--A Sharp Key-->
<div class="row">
<div class="col-xs-3 dSharp">
</div>
<div class="col-xs-9 dFlat">
</div>
</div>
<!--B note Key-->
<div class="row" id="footer">
<div class="col-xs-12 dnote">
<p>Design by Christopher</p>
</div>
</div>
</div>
</body>
<footer>
</footer>
</html>
body {
background-color: black;
/*margin-top: 5%;*/
padding: 0;
font-size: 2em;
}
.container {
min-height: 960px;*/
}
.cnote {
background-color: white;
min-height: 312px;
height: 32.5%;
color: black;
display: block;
}
.dnote {
background-color: white;
min-height: 312px;
color: black;
display: block;
padding-top: 120px;
}
.dSharp {
background-color: white;
min-height: 312px;
height: 32.5%;
color: white;
}
.dFlat {
background-color: black;
min-height: 312px;
height: 32.5%;
color: white;
text-align: right;
padding: 120px 20px 0px 20px;
}
.enote {
background-color: white;
min-height: 624px;
color: white;
display: block;
padding: 150px 50px 0px 50px;
}
.thumbnail {
height: 300px;
background-color: grey;
}
h2 {
text-decoration: underline;
}
h1 {
text-decoration: underline;
}
#intro {
padding: 20px;
}
#contact {
padding: 20px;
}
#social {
text-align: center;
font-size: 4em;
color: black;
}
#footer {
text-align: right;
font-size: 1em;
}
.navbar {
background-color: black;
width: 80%;
border-style: none;
}
.active {
background-color: white;
}
i {
color: black;
}
Also see: Tab Triggers