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.
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navmenu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#about">JQ9</a>
</div>
<!--navbar will not work with version 4.0 of bootstrap link-->
<div class="collapse navbar-collapse" id="navmenu">
<ul class="nav navbar-nav navbar-right">
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- allow a margin of 50px for spacing between "About JQ9" and Navbar. And 50px is the standard to bridge container gap
use 60 pc you will see the white margin between this botton container and top navbar container-->
<div class="container-fluid" style="margin-top: 50px; text-align: center;">
<div class="row">
<div class="col-md-12" style="background-image:url('http://dupreenterprise.co.uk/interior-design-828545_1280.jpg');">
<div style="padding: 100px 0px 100px 0px;">
<Font style="color: white; font-weight: bold; font-size: 60px;">JQ9 Web Design Studio</font>
<p>
<Font style="color: white; font-style:italic; font-size: 40px; padding-top: 100px;">Bringing Your Ideas to Life</font>
</div>
</div>
</div>
<!-- row of About JQ9 BEGIN-->
<div class="row" id="about">
<div class="col-md-3"></div>
<div class="col-md-6" style="text-align: left;">
<h2 style="text-align: center; margin-top: 50px; padding-bottom: 20px">About JQ9</h2>
<p>JQ9 Design Studio was created by Jasmine Dupre, after a 9 year break from web development in a multi-national company creating an inhouse logistic and procurement system. During the 9 year break, she worked successfully as a User Interface adviser
before moving on to a more business oriented role of a Product Developer liasing with international teams.</p>
</p>9 years later, she decided to get back into her old trade and become a web developer. She has a lot to thank Free Code Camp as she makes her transition back into the fast moving world of a web developer. Without Free Code Camp and its structured
learning, coming back to web development will take a lot longer and the climb will be a lot steeper.
</p>
With JQ9, you can rest assure that we will Bring Your Ideas to Life. We strive to provide our client with an excellent service tailored to each of their needs. We work closely with our clients and pride ourselves with our excellent communication skills.
</div>
<div class="col-md-3"></div>
</div>
<!-- row ~About JQ9 END -->
<!-- row title portfolios BEGIN-->
<div class="row" style="margin-top: 50px; text-align: center;">
<div class="col-md-1"></div>
<div class="col-md-10" style="text-align: left;" id="portfolio">
<h2 style="text-align: center; margin-top: 50px; padding-bottom: 20px">Portfolio</h2>
</div>
<div class="col-md-1"></div>
</div>
<div class="row">
<div class="col-md-6">
<div class="thumbnail">
<a href="https://codepen.io/jasminedupre/full/vmVjJB/" target="_blank;"><img src="http://dupreenterprise.co.uk/beethoven.JPG" alt="FCC Tribute Page" style="width: 100%;"></img>
<div class="caption">
Beethoven's Tribute Page
</div>
</a>
</div>
</div>
<div class="col-md-6">
<div class="thumbnail">
<a href="https://codepen.io/jasminedupre/full/YQWqGe/" target="_blank;"><img src="http://dupreenterprise.co.uk/randomQuote.JPG" alt="FCC Random Quote Machine" style="width: 100%;"></img>
<div class="caption">
Random Quote Generator
</div>
</a>
</div>
</div>
</div>
<!-- row 1 portfolio ENDS -->
<!-- row 2 portfolio BEGINS -->
<div class="row">
<div class="col-md-6">
<div class="thumbnail">
<a href="https://codepen.io/jasminedupre/full/vmVjJB/" target="_blank;"><img src="http://dupreenterprise.co.uk/localWeather.JPG" alt="FCC Local Weather App" style="width: 100%;"></img>
<div class="caption">
Local Weather App
</div>
</a>
</div>
</div>
<div class="col-md-6">
<div class="thumbnail">
<a href="#" target="_blank;"><img src="http://dupreenterprise.co.uk/5466623592_6a9c8e8a2f_z.jpg" alt="Placeholder" style="width: 100%;"></img>
<div class="caption">
Placeholder
</div>
</a>
</div>
</div>
</div>
<!-- row 2 portfolio ENDS -->
<!-- contact row BEGINS -->
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10" style="text-align: left;" id="contact">
<h2 style="text-align: center; margin-top: 50px; padding-bottom: 20px">Contact</h2>
</div>
<div class="col-md-1"></div>
</div>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10" style="text-align: left;">
<div class="row form-group">
<div class="col-md-8">
<label for="name">Name: </label>
<input type="text" class="form-control" id="name">
<p>
<label for="email">Email Address: </label>
<input type="email" class="form-control" id="email">
<p>
<label for="message">Message: </label>
<textarea class="form-control" rows="5" id="message"></textarea>
</div>
<div class="col-md-4">
</div>
</div>
<div class="col-md-1"></div>
</div>
</div>
<!-- contact row ENDS -->
<div class="row" style="background-color: purple;">
<div class="col-md-1"></div>
<div class="col-md-10" style="padding:50px 0px 50px 0px;">
<div class="row">
<div class="col-md-6">
<h4><font color="white">Created by Jasmine Dupre Freelance Web Developer</font></h4>
</div>
<div class="col-md-6">
<!-- social media -->
</div>
</div>
</div>
<div class="col-md-1"></div>
</div>
<div class="row" style="background-color: black;">
<div class="col-md-12" style="padding: 5px 5px 5px 0px;">
<a href="#">Privacy Disclaimer</a>
<p style="text-align: right">
<font color="white">Copyright 2017 Dupre Enterprise Ltd</font>
</p>
</div>
</div>
</div>
.col-md-12 {
backgroubd-image: url("http://dupreenterprise.co.uk/interior-design-828545_1280.jpg");
}
Also see: Tab Triggers