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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
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.
If the stylesheet 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 CSS 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.
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.
<head>
<style>
body{ background-color:#f1f1f1; }
div#box {
width:1000px;
background-color:#C5C5C5;
margin-right:auto;
margin-left:auto;
margin-top:150px;
length:8000px;
box-shadow: 10px -10px 5px #888888;
border-radius:25px;
border:solid green ; }
span {
margin:500px 0px 0px;
float:middle;
width:100em;
font-size:150%;
font-family:algerian,courier;
line-height:80%;
transition:2s; }
div.footer{
width:100%;
margin:0px;
border:1px solid gray;
line-height:150%;
text-align:center;
font-family:algerian,courier;
font-size:24px;
border-radius:25px;}
<meta target="_blank">
a:link img {border-style: outset;}
.ptext {
color: #337ab7;
font-size:24px;
margin:50px;
text-align:justify;
word-spacing:2px;
font-family:georgia,fantasy;
font-style:oblique;
font-weight:normal;
font-size:2em;
margin: 20px 100px 50px; }
span a:hover{color:#F00;
font-size:125%;}
ul{list-style-type:square;}
h1{
font-size:500%; }
p.a:hover{
border:solid;
border-width:2px;
border-color:black; }
.tp{
font-family:fantasy;
color:#337ab7;
word-spacing:12px; }
#imga{
position:relative;
width:auto;
padding:5 0 0 0;
text-align:center;
}
#imageradius{
border-radius:25px;
-webkit-border-radius:25px;
box-shadow:5px 5px 5px rgba(0,0,0,.3),5px 5px 5px rgba(0,0,0,.3),5px 5px 5px rgba(0,0,0,.3),5px 5px 5px rgba(0,0,0,.3);
}
</style>
</head>
<body >
<div id="box">
<h1 class="text-primary" align=center>
Albert Einstein
</h1>
<h2 class="text-primary" align="center">
<q><i>Imagination is more important than knowledge</i></q>
</h2>
<br/>
<div id="imga" ><a href="http://einstein.com/" target="_blank"><abbr title="Click me if you want to visit Einstein.com"><img src="http://cdn.history.com/sites/2/2015/10/GettyImages-2669928-E.jpeg" id="imageradius" style="cursor:pointer"></img></abbr></a>
</div>
<h3 class="tp"align=center><big>Here is the time line of his academic career</big></h3>
<div class="ptext"> <ul><li>
<p><b>1900</b>-Einstein's paper"Folgerungen aus den Capillaritätserscheinungen" ("Conclusions from the Capillarity Phenomena") was published in the prestigious Annalen der Physik.On 30 April 1905,Einstein completed his thesis,with Alfred Kleiner,Professor of Experimental Physics,serving as pro-forma advisor.As a result,Einstein was awarded a PhD by the University of Zürich,with his dissertation entitled,"A New Determination of Molecular Dimensions."That same year,which has been called Einstein's annus mirabilis(miracle year),he published four groundbreaking papers,on the photoelectric effect,Brownian motion,special relativity,and the equivalence of mass and energy,which were to bring him to the notice of the academic world,at the age of 26.
</p></li>
<li> <p><b>1908</b>-he was recognized as a leading scientist and was appointed lecturer at the University of Bern.The following year,after giving a lecture on electrodynamics and the relativity principle at the University of Zurich,Alfred Kleiner recommended him to the faculty for a newly created professorship in theoretical physics.Einstein was appointed associate professor in 1909.Einstein became a full professor at the German Charles-Ferdinand University in Prague in 1911,accepting Austrian citizenship in the Austro-Hungarian Empire to do so.During his Prague stay,Einstein wrote 11 scientific works,five of them on radiation mathematics and on the quantum theory of solids.In July 1912,he returned to his alma mater in Zürich.From 1912 until 1914,he was professor of theoretical physics at the ETH Zurich,where he taught analytical mechanics and thermodynamics.He also studied continuum mechanics,the molecular theory of heat,and the problem of gravitation,on which he worked with mathematician and friend Marcel Grossmann.</p> </li>
<li>
<p><b>1914</b>-he returned to the German Empire after being appointed director of the Kaiser Wilhelm Institute for Physics (1914–1932) and a professor at the Humboldt University of Berlin,but freed from most teaching obligations.He soon became a member of the Prussian Academy of Sciences,and in 1916 was appointed president of the German Physical Society (1916–1918).Based on calculations Einstein made in 1911,about his new theory of general relativity,light from another star should be bent by the Sun's gravity.In 1919,that prediction was confirmed by Sir Arthur Eddington during the solar eclipse of 29 May 1919.Those observations were published in the international media,making Einstein world famous.On 7 November 1919,the leading British newspaper The Times printed a banner headline that read: "Revolution in Science–New Theory of the Universe–Newtonian Ideas Overthrown".
</p>
</li>
<li>
<p><b>1920</b>-he became a Foreign Member of the Royal Netherlands Academy of Arts and Sciences.In 1922,Einstein was awarded the 1921 Nobel Prize in Physics "for his services to Theoretical Physics,and especially for his discovery of the law of the photoelectric effect".While the general theory of relativity was still considered somewhat controversial,the citation also does not treat the cited work as an explanation but merely as a discovery of the law,as the idea of photons was considered outlandish and did not receive universal acceptance until the 1924 derivation of the Planck spectrum by S.N.Bose.Einstein was elected a Foreign Member of the Royal Society (ForMemRS) in 1921.He also received the Copley Medal from the Royal Society in 1925.</p></li>
<li>
<p><b>1921–1922</b>-Travels abroad Einstein in New York,1921,his first visit to the United States Einstein visited New York City for the first time on 2 April 1921,where he received an official welcome by Mayor John Francis Hylan,followed by three weeks of lectures and receptions.He went on to deliver several lectures at Columbia University and Princeton University,and in Washington he accompanied representatives of the National Academy of Science on a visit to the White House.On his return to Europe he was the guest of the British statesman and philosopher Viscount Haldane in London,where he met several renowned scientific,intellectual and political figures,and delivered a lecture at King's College London.He also published an essay,"My First Impression of the U.S.A.,"in July 1921,in which he tried briefly to describe some characteristics of Americans,much as had Alexis de Tocqueville,who published his own impressions in Democracy in America(1835).For some of his observations,Einstein was clearly surprised: "What strikes a visitor is the joyous,positive attitude to life...The American is friendly,self-confident,optimistic,and without envy."</p>
</li>
<li>
<p><b>1922</b>-his travels took him to Asia and later to Palestine,as part of a six-month excursion and speaking tour,as he visited Singapore,Ceylon and Japan,where he gave a series of lectures to thousands of Japanese.After his first public lecture,he met the emperor and empress at the Imperial Palace,where thousands came to watch.In a letter to his sons,Einstein described his impression of the Japanese as being modest,intelligent,considerate,and having a true feel for art.Because of Einstein's travels to the Far East,he was unable to personally accept the Nobel Prize for Physics at the Stockholm award ceremony in December 1922.In his place,the banquet speech was held by a German diplomat,who praised Einstein not only as a scientist but also as an international peacemaker and activist.On his return voyage,he visited Palestine for 12 days in what would become his only visit to that region.Einstein was greeted as if he were a head of state,rather than a physicist,which included a cannon salute upon arriving at the home of the British high commissioner,Sir Herbert Samuel.During one reception,the building was stormed by people who wanted to see and hear him.In Einstein's talk to the audience,he expressed happiness that the Jewish people were beginning to be recognized as a force in the world.</p></li>
<li>
<p><b>1930–1931</b>-Travel to the U.S.In December 1930,Einstein visited America for the second time,originally intended as a two-month working visit as a research fellow at the California Institute of Technology.After the national attention he received during his first trip to the U.S.,he and his arrangers aimed to protect his privacy.Although swamped with telegrams and invitations to receive awards or speak publicly,he declined them all.After arriving in New York City,Einstein was taken to various places and events,including Chinatown,a lunch with the editors of the New York Times,and a performance of Carmen at the Metropolitan Opera,where he was cheered by the audience on his arrival.During the days following,he was given the keys to the city by Mayor Jimmy Walker and met the president of Columbia University,who described Einstein as "the ruling monarch of the mind."Harry Emerson Fosdick,pastor at New York's Riverside Church,gave Einstein a tour of the church and showed him a full-size statue that the church made of Einstein,standing at the entrance.Also during his stay in New York,he joined a crowd of 15,000 people at Madison Square Garden during a Hanukkah celebration.</p></li></ul>
<br/>
<br/>
<h3 align=center><span>If you have time you can visit this genius on wikipedia <a href="https://en.wikipedia.org/wiki/Albert_Einstein" target="_blank"><br/><ins style="cursor:pointer">Albert Einstein</ins></span></a>
</h3>
</div>
<div class="footer">Created and coded by conan,you can visit my github here <a href="https://github.com/conanskyforce" target="_blank" ><abbr title="My Github"><img src="https://avatars2.githubusercontent.com/u/20504493?v=3&s=460" width="20px"style="cursor:pointer"></img></abbr></a></div>
</div>
</body>
Also see: Tab Triggers