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.
<h1 style="color:white" class="text-center"> Bruce Lee Tribute!</h1>
<div align="center">
<h3 class="text-center well2" ><em>Movie Star! Martial Arts Master! Influential Human!</em></h3>
</div>
<body>
<div class="image-border" align="center">
<img style="border: solid; border-width: 30px;" src="http://iambruceleemovie.com/wp-content/uploads/2015/04/brucelee.jpg" />
</div>
<div align="center" id="timeline-title">
<p class="well3 title2">The Life of Lee</p>
</div>
<div align="center">
<ul class="well">
<li><p><b style="font-size: 20px;">Birth</b> – Born November 27, 1940 in Chinatown, San Francisco, USA under the name Lee Jun-fan (李振藩). The English name "Bruce" is thought to have been given by the hospital attending physician, Dr. Mary Glove. Lee was born in both the hour and the year of the Dragon, which according to tradition is a strong and fortuitous omen. Bruce's father, Lee Hoi-chuen, (李海泉) was Han Chinese, and his mother, Grace Ho (何愛瑜), was of half-Chinese and half-Caucasian descent.</p></li>
<li><p><b style="font-size: 20px;">Learning</b> – After Lee was involved in several street fights, his parents decided that he needed to be trained in the martial arts. Lee's first introduction to martial arts was through his father, from whom he learned the fundamentals of <a href="https://en.wikipedia.org/wiki/Wu-style_t%27ai_chi_ch%27uan" target="_blank">Wu-style t'ai chi ch'uan</a></p></li>
<li><p><b style="font-size: 20px;">Wing Chun</b> – The largest influence on Lee's martial arts development was his study of Wing Chun. Lee began training in Wing Chun when he was 16 years old under the Wing Chun teacher <a href="https://en.wikipedia.org/wiki/Ip_Man" target="_blank">Yip Man</a> in 1957. Yip aimed to keep his students from fighting in the streets by having them involved in organized competitions. Lee also suffered from issues in training due to his mixed ancestry.</p></li>
<li><p><b style="font-size: 20px;">To America!</b> – In the spring of 1959, Lee had changed schools due to his excessive conduct issues and poor performance academically. Lee ended up in a street fight where he beat the son a triad leader. Lee's father decided to send him to the United States to live a safer and healthier life. <em>The police detective came and he says "Excuse me Mr. Lee, your son is really fighting bad in school. If he gets into just one more fight I might have to put him in jail". --Robert Lee</em></p></li>
<li><p><b style="font-size: 20px;">Jeet Kune Do</b> – Jeet Kune Do originated in 1967.Lee emphasised what he called "the style of no style". This consisted of getting rid of the formalised approach which Lee claimed was indicative of traditional styles. Lee felt the system he now called Jun Fan Gung Fu was even too restrictive, and eventually evolved into a philosophy and martial art he would come to call Jeet Kune Do or the Way of the Intercepting Fist. It is a term he would later regret, because Jeet Kune Do implied specific parameters that styles connote; whereas the idea of his martial art was to exist outside of parameters and limitations</p></li>
<li><b style="font-size: 20px;">Lights!</b>–<b style="font-size: 20px;">Camera!</b>–<b style="font-size: 20px;">Action!</b> – While in the United States from 1959 to 1964, Lee abandoned thoughts of a film career in favour of pursuing martial arts. However, a martial arts exhibition on Long Beach in 1964 eventually led to the invitation by William Dozier for an audition for a part in the pilot for "Number One Son". The show never aired, but Lee was invited for the role of Kato alongside Van Williams in the TV series The Green Hornet. <p>Lee later went on to star in many more films in Hong Kong, where The Green Hornet was a huge success. Lee's biggest grossing film ever has been Enter the Dragon with $200 million worldwide. </p> </li>
<li><p><b style="font-size: 20px;">Family</b> – Lee was a married man with a wife and two kids before his death. His wife Linda Lee, son Brandon Lee(1965-1993 <em>Bruce Lee and Brandon Lee are buried next to one another at Lakeview Cemetery, Seattle.</em>), and daughter Shannon Lee are the ones to carry on his legacy with the Bruce Lee Foundation</p></li>
<li><b style="font-size: 20px;">Death</b> – On May 10, 1973, Lee collapsed during an ADR session for Enter the Dragon at Golden Harvest in Hong Kong. Suffering from seizures and headaches, he was immediately rushed to Hong Kong Baptist Hospital where doctors diagnosed cerebral edema. They were able to reduce the swelling through the administration of mannitol. The headache and cerebral edema that occurred in his first collapse were later repeated on the day of his death. On July 20, 1973, Lee was in Hong Kong to have dinner with at the time James Bond star George Lazenby. The two were aiming to make a film together. Lee then was driven to Taiwanese actress Betty Ting Pei's apartment. Lee complained of a headache, and was given a painkiller Equagesic which contains a tranquillzer meprobamate. That evening Lee went to lie down for a nap, and never made it to dinner. Producer Raymond Chow arrived at the apartment, and tried to wake Lee. Lee did not wake up, and was later taken to Queen Elizabeth Hospital via ambulance. By the time the ambulance reached the hospital, Lee was pronounced dead. <p>Around the time of Lee's death, numerous rumors appeared in the media.[88] Lee's iconic status and untimely demise fed many wild rumors and theories. These included murder involving the Triads and a supposed curse on him and his family.</p></li>
</ul>
</div>
<div align="center">
<p class="links well4"><em>For more information regarding the Bruce Lee Foundation please <a href="https://bruceleefoundation.org/" target="_blank">Click Here!</a>, and for the wikipedia page of Bruce Lee please <a href="https://en.wikipedia.org/wiki/Bruce_Lee" target="_blank">Click Here!</a></em>
</div>
<p align="center"> <iframe width="560" height="315" src="https://www.youtube.com/embed/xP0LsLUcMDg" frameborder="0" allowfullscreen></iframe></p>
</body>
/*HTML elements */
h1{
font-size: 72px;
text-decoration: underline;
font-family: fantasy, monospace, serif;
}
body{
background-image: url("http://www.greendragonsociety.com/images/Bruce%20Lee_Dragons.jpg");
background-color: black;
color: white;
}
/* IDs */
#timeline-title{
font-size: 60px;
}
/* All classes */
.links{
margin: 100px;
text-align: center;
font-size: 27px;
}
.well{
background-color: rgba(0,0,0, 0.5);
width: 90%;
margin: 10px;
text-align: left;
}
.well2{
background-color: rgba(0,0,0, 0.5);
position: center;
width: 30%;
text-align: center;
border: 1px solid white;
}
.well3{
background-color: rgba(0,0,0, 0.5);
width: 30%;
margin: 10px;
border: 1px solid white;
}
.well4{
background-color: rgba(0,0,0, 0.5);
width: 90%;
margin: 10px;
border: 1px solid white;
}
.title2{
font-family: fantasy, monospace, serif;
}
Also see: Tab Triggers