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.
<div class="container">
<div class="jumbotron">
<div class="row">
<div class="col-xs-12">
<h1 class="text-center">Joseph Brodsky</h1>
<h3 class="text-center">The man who very liked his chair and walls</h3>
<div class="thumbnail">
<img src="http://www.nybooks.com/wp-content/uploads/2015/05/joseph-brodsky-memorial-fellowship-fund.jpg" alt="Iosif Brodky" class="img-responsive" />
<div class="caption text-center">Poet, translator, prose writer, playwright and <i>just a good guy</i>.</div>
</div>
<div class="col-sm-push-1 col-lg-10 col-md-10 col-sm-10 col-xs-12">
<div class="panel panel-warning">
<div class="panel-heading text-center lead">Here's his way:</div>
<div class="panel-body">
<ul>
<li>In <strong>1940</strong> – Born in Leningrad </li>
<li>In <strong>1955</strong> – Brodsky began writing his own poetry and producing literary translations </li>
<li>By <strong>1958</strong> – He was already well known in literary circles for his poems "The Jewish cemetery near Leningrad" and "Pilgrims". </li>
<li>In <strong>1960</strong> – The young Brodsky met Anna Akhmatova, one of the leading poets of the silver age. </li>
<li>In <strong>1963</strong> – Brodsky's poetry was denounced by a Leningrad newspaper as "pornographic and anti-Soviet". During juThe trial judge asked: <br />
<blockquote>
<footer><cite>"Who has recognized you as a poet? Who has enrolled you in the ranks of poets?"</cite></footer>
<p class="text-center">Brodsky replied</p>
<footer><cite>"No one,Who enrolled me in the ranks of the human race?"</cite></footer>
</blockquote>
Brodsky was not yet 24.<br />
For his "parasitism" Brodsky was sentenced to five years hard labor and served 18 months on a farm in the village of Norenskaya, in the Archangelsk region, 350 miles from Leningrad.
</li>
<li>In <strong>1965</strong> – Brodsky's sentence was commuted after protests by prominent Soviet and foreign cultural figures, including Evgeny Evtushenko, Dmitri Shostakovich, and Jean-Paul Sartre as well as Akhmatova.</li>
<li>In December <strong>1965</strong> – Brodsky returned to Leningrad and continued to write over the next seven years, many of his works being translated into German, French and English and published abroad. </li>
<li><strong>1973–1974</strong> – Brodsky went on to become a Visiting Professor at Queens College, Smith College, Columbia University, and Cambridge University, later returning to the University of Michigan (1974–80). </li>
<li>In <strong>1987</strong> – he won the Nobel Prize for Literature, the fifth Russian-born writer to do so.</li>
<li>In <strong>1991</strong> – Brodsky became Poet Laureate of the United States.</li>
<li>On January<strong> 1996</strong> – Brodsky died of a heart attack aged 55, in his New York City apartment .</li>
</ul>
</div>
</div>
</div>
<blockquote class="text-center col-md-push-3 col-lg-6 col-md-6 col-sm-push-2 col-sm-8 col-xs-12">
<p>"I do not believe in political movements. I believe in personal movement, that movement of the soul when a man who looks at himself is so ashamed that he tries to make some sort of change - within himself, not on the outside."</p>
<footer><cite>Joseph Brodsky</cite> </footer>
</blockquote>
<div class="clearfix"></div>
<h3 class="text-center">You can read more about him right <a href="https://en.wikipedia.org/wiki/Joseph_Brodsky" target="_blank">there <span class="glyphicon glyphicon-arrow-right"></span></a>.</h3>
</div>
</div>
</div>
</div>
<footer>
<hr />
<p class="text-center">Wirtten and coded by <a href="https://www.freecodecamp.com/wishez" target="_blank">Filipp Zhuravlev</a></p>
</footer>
</div>
body {
margin-top: 100px;
}
Also see: Tab Triggers