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="page-header text-center">
<h1 class="text-primary">Ayrton Senna da Silva</h1>
<h4 class="text-primary">A tribute to the greatest Formula 1 driver.</h4>
</div>
<div class="row">
<div class="col-md-3">
<div class="well well-lg">
<div class="thumbnail center">
<img src="http://3.bp.blogspot.com/_4YqT9j_rsog/Sgi2wkUWS8I/AAAAAAAAAFc/KvhHXVboGOc/s200/186358058Ayrton%2520Senna.jpg" class="img-thumbnail img-responsive">
<div class="caption">
<p class="text-center">Ayrton Senna <br> ★ 1960 ✝ 1994</p>
</div>
</div>
<p class="text-justified">Ayrton Senna da Silva was a Brazilian racing driver who won three Formula One world championships for McLaren in 1988, 1990 and 1991, and is widely regarded as one of the greatest Formula One drivers of all time.</p>
</div>
</div>
<div class="col-md-9">
<div class="well well-lg">
<p class="lead">He streaked through the sport like a comet, an other-worldly superstar whose brilliance as a driver was matched by a dazzling intellect and coruscating charisma that illuminated Formula One racing as never before. Intensely introspective and passionate in the extreme, Ayrton Senna endlessly sought to extend his limits, to go faster than himself, a
quest that ultimately made him a martyr but did not diminish his mystique.</p>
<blockquote>No one tried harder or pushed himself further, nor did anyone shed so much light on the extremes to which only the greatest drivers go.</blockquote>
<p>Ayrton Senna da Silva was born on March 21, 1960, into a wealthy Brazilian family where, with his brother and sister, he enjoyed a privileged upbringing. He never needed to race for money but his deep need for racing began with an infatuation for a miniature go-kart his father gave him when he was four years old. As a boy the highlights of Ayrton's life were Grand Prix mornings when he awoke trembling with anticipation at the prospect of watching his Formula One heroes in action on television. At 13 he raced a kart for the first time and immediately won. Eight years later he went single-seater racing in Britain, where in three years he won five championships, by which time he had divorced his young wife and forsaken a future in his father's businesses in favour of pursuing success in Formula One racing, where he made his debut with Toleman in 1984. At Monaco (a race he would win six times), his sensational second to Alain Prost's McLaren - in torrential rain - was confirmation of the phenomenal talent that would take the sport by storm.</p>
<p>Deciding Toleman's limited resources were inadequate for his towering ambition, Senna bought out his contract and in 1985 moved to Lotus, where in three seasons he started from pole 16 times (he eventually won a record 65) and won six races. Having reached the limits of Lotus he decided the fastest way forward would be with McLaren, where he went in 1988 and stayed for six seasons, winning 35 races and three world championships.</p>
<p>In 1988, when McLaren-Honda won 15 of the 16 races, Senna beat his team mate Alain Prost eight wins to seven to take his first driving title. Thereafter two of the greatest drivers became protagonists in one of the most infamous feuds. In 1989 Prost took the title by taking Senna out at the Suzuka chicane. In 1990 Senna extracted revenge at Suzuka's first corner, winning his second championship by taking out Prost's Ferrari at Suzuka's first corner. Senna's third title, in 1991, was straightforward as his domination as a driver became even more pronounced, as did his obsession with becoming better still. Some of his greatest performances came in his final year with McLaren, following which he moved to Williams for the ill-fated 1994 season.</p>
<p>Beyond his driving genius Senna was one of the sport's most compelling personalities. Though slight in stature he possessed a powerful physical presence, and when he spoke, with his warm brown eyes sparkling and his voice quavering with intensity, his eloquence was spellbinding. Even the most jaded members of the Formula One fraternity were mesmerised by his passionate soliloquies and in his press conferences you could hear a pin drop as he spoke with such hypnotic effect. His command performances were captured by the media and the world at large became aware of Senna's magnetic appeal.</p>
<p>Everyone marvelled at how he put so much of himself, his very soul, into everything he did, not just his driving but into life itself. Behind the wheel the depth of his commitment was there for all to see and the thrilling spectacle of Senna on an all-out qualifying lap or a relentless charge through the field evoked an uneasy combination of both admiration for his superlative skill and fear for his future.</p>
<p>He drove like a man possessed - some thought by demons. His ruthless ambition provoked condemnation from critics, among them Prost who accused him of caring more about winning than living. When Senna revealed he had discovered religion Prost and others suggested he was a dangerous madman who thought God was his co-pilot. "Senna is a genius," Martin Brundle said. "I define genius as just the right side of imbalance. He is so highly developed to the point that he's almost over the edge. It's a close call."</p>
<p>Even Senna confessed he occasionally went too far, as was the case in qualifying for the 1988 Monaco Grand Prix, where he became a passenger on a surreal ride into the unknown. Already on pole, he went faster and faster and was eventually over two seconds quicker than Prost in an identical McLaren. "Suddenly, it frightened me," Ayrton said, "because I realised I was well beyond my conscious understanding. I drove back slowly to the pits and did not go out anymore that day."</p>
<p>He said he was acutely aware of his own mortality and used fear to control the extent of the boundaries he felt compelled to explore. Indeed, he regarded racing as a metaphor for life and he used driving as a means of self-discovery. "For me, this research is fascinating. Every time I push, I find something more, again and again. But there is a contradiction. The same moment that you become the fastest, you are enormously fragile. Because in a split-second, it can be gone. All of it. These two extremes contribute to knowing yourself, deeper and deeper."</p>
<p>His self-absorption did not preclude deep feelings for humanity and he despaired over the world's ills. He loved children and gave millions of his personal fortune (estimated at $400 million when he died) to help provide a better future for the underprivileged in Brazil. Early in 1994 he spoke about his own future. "I want to live fully, very intensely. I would never want to live partially, suffering from illness or injury. If I ever happen to have an accident that eventually costs my life, I hope it happens in one instant."</p>
<p>And so it did, on May 1, 1994, in the San Marino Grand Prix, where his race-leading Williams inexplicably speared off the Imola track and hit the concrete wall at Tamburello corner. Millions saw it happen on television, the world mourned his passing and his state funeral in Sao Paulo was attended by many members of the shocked Formula One community. Among the several drivers escorting the coffin was Alain Prost. Among the sad mourners was Frank Williams, who said: "Ayrton was no ordinary person. He was actually a greater man out of the car than in it."</p>
<p>For more information about Senna's life, check his <a href="https://pt.wikipedia.org/wiki/Ayrton_Senna" target="_blank">Wikipedia</a> page.</p>
</div>
</div>
</div>
<footer class="text-center small">Text written by <a href="https://twitter.com/f1speedreader" target="_blank">Gerald Donaldson</a>. Page created by <a href="https://www.freecodecamp.org/sarkioja" target="_blank" class="text-uppercase">Renan Cunha</a></footer>
</div>
body {
margin: 20px;
background-color: #ecf0f1;
font-family: "Ubuntu", sans serif;
}
h1{
font-size:4.5em;
}
.text-primary {
font-family: "PT Sans Narrow", sans-serif;
color: #2980b9;
}
Also see: Tab Triggers