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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
<body>
<h3>Kickstarter soon starts on XX--: <a href="#">link</a></h3>
<nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
<div class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</div>
</div>
</nav>
<div>
<div class="jumbotron">
<div class="container-xl">
<div class="jumbotron-background img-fluid rounded" alt="Responsive image">
<h1 class="display-4">This is my product's landing page! Wow</h1>
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<hr class="my-4">
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
</div>
</div>
</div>
<div class="container-xl container-row-card-information">
<div class="row justify-content-around row-card-information-foreground" >
<div class="col-12 col-sm-6 col-lg-4">
<div class="card card-information-foreground" >
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="card-link">Card link</a>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4">
<div class="card card-information-foreground" >
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="card-link">Card link</a>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-lg-4">
<div class="card card-information-foreground" >
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="card-link">Card link</a>
</div>
</div>
</div>
</div>
</div>
<div class="container-xl">
<div class="row row-tweeter">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<div class="card-deck">
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card-deck">
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<div class="card-deck">
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="row row-content justify-content-center">
<h1>Who's using it?</h1>
</div>
<div class="row row-content justify-content-center">
<div class="col-auto">
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/04/user-greenpeace.png" class="img-fluid" alt="Responsive image"></a>
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/04/user-matrix-1.png" class="img-fluid" alt="Responsive image"></a>
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/04/user-symphony.png" class="img-fluid" alt="Responsive image"></a>
</div>
</div>
<div class="row justify-content-around row-download-title">
<h1>Download it now:</h1>
</div>
<div class="row justify-content-around row-download-links">
<div class="col-auto">
<button type="button" class="btn btn-outline-dark"><i class="fas fa-desktop"></i> Download now</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-outline-dark"><i class="fas fa-bath"></i> Download now</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-outline-dark"><i class="fas fa-snowman"></i> Download now</button>
</div>
</div>
<div class="row row-content justify-content-center">
<div class="col-sm-9">
<div class="row">
<div class="col-auto">
<h1>What do they say about us in the news:</h1>
</div>
</div>
<div class="row">
<div class="col-auto">
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/06/cnet.png" class="img-fluid" alt="Responsive image"></a>
</div>
<div class="col-auto">
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/06/eng-logo-white.png" class="img-fluid" alt="Responsive image"></a>
</div>
<div class="col-auto">
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/06/new-york-times-logo.jpg" class="img-fluid" alt="Responsive image"></a>
</div>
<div class="col-auto">
<a href=""><img src="https://jitsi.org/wp-content/uploads/2020/06/wired.png" class="img-fluid" alt="Responsive image"></a>
</div>
</div>
<div class="row">
<div class="col-auto">
<a href=""><h3>Read the News</h3></a>
</div>
</div>
</div>
</div>
<div class="row row-faq">
<div class="col-6 div-faq" style="background:purple">
<h2>Freqynetly Asked Questions</h2>
<button type="button" class="btn btn-outline-dark">FAQ</button>
</div>
<div class="col-6 div-faq">
<h2>Ask your questions here</h2>
<button type="button" class="btn btn-outline-dark">Visit us</button>
</div>
</div>
</div>
</div>
<footer>
<div class="container-xl">
<div class="row justify-content-between">
<div class="col-4">
trademark 2020
</div>
<div class="col-4" style="text-align: right;">
<i class="fab fa-linkedin"></i><i class="fab fa-game-board"></i><i class="fab fa-holly-berry"></i><i class="fab fa-twitter-square"></i>
</div>
</div>
</div>
</footer>
</body>
.jumbotron {
padding: 70px 30px 200px 30px;
margin: 0px auto;
background: #0259dd;
color: floralwhite;
z-index: -2;
position: "absolute"; }
.jumbotron-background {
background-size: cover;
background-image: url("https://jitsi.org/wp-content/uploads/2020/04/Jitsi_Hero_1600x600_opt2_2x_no_btn-scaled.jpg");
padding: 100px 20px 100px 20px;
z-index: -3; }
address {
font-size: 80%;
margin: 0px;
color: #0f0f0f; }
.row {
padding: 0px 0px 0px 0px; }
.row-header {
margin: 0px auto;
padding: 0px;
text-align: center; }
.container-row-card-information {
position: relative; }
.row-card-information-foreground {
position: absolute;
top: -350px;
right: 50px;
z-index: 1;
padding: 100px 15px 15px 100px; }
.card {
background-color: #3131ff;
color: #ffffff; }
.card-button {
background-color: #3131ff;
color: #ffffff; }
.card-information-foreground {
background-color: #ffffff;
color: #000000;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }
.row-download-title {
background-color: floralwhite;
padding: 50px 80px 00px 100px;
text-align: center; }
.row-download-links {
background-color: floralwhite;
padding: 20px 100px 50px 100px;
text-align: center; }
.row-tweeter {
background-color: floralwhite;
padding: 100px 100px 100px 100px;
text-align: center; }
.row-faq {
background-color: floralwhite;
text-align: center; }
.div-faq {
padding: 100px 20px 100px 20px;
text-align: center; }
.row-content {
padding: 30px 15px 30px 10px;
min-height: 40px;
color: #fff;
text-align: center;
margin: auto; }
footer {
margin: 0px auto;
padding: 20px 0px 20px 0px;
background-color: #2455A0; }
body {
padding: 50px 0px 0px 0px;
z-index: 0;
background-color: #295bc0; }
.navbar-dark {
background-color: #0259dd; }
Also see: Tab Triggers