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.
<div id="container">
<h1><span>Eric Gill</span><br>
tipógrafo y escultor</h1>
<section class="principal">
<aside>
<p>información personal:
<br> Nacimiento: 22 de febrero de 1882, Brighton, Reino Unido.
<br> Fallecimiento: 17 de noviembre de 1940, Municipio de Hillingdon, Reino Unido.
<br> Nacionalidad: Británica.
<br> Educación: Alma Mmáter, Central School of Art and Design.</p>
<p>información profesional:
<br> Ocupación: Creador tipográfico, escultor, diseñador gráfico e ilustrador,empleador.
</p>
</aside>
<main>
<p>Arthur Eric Rowton Gill conocido como Eric Gill fue un tipógrafo y escultor inglés, conocido por su aportación en el campo de la tipografía, donde creó su famosa familia de tipos Gill Sans.</p>
<h4>biografía y obra</h4>
<p>Gill empezó a estudiar en la escuela de Arte de Chichester a la edad de 17 años, luego continuó sus estudios en la Central School of Arts and Crafts en Londres, donde fue alumno del tipógrafo y calígrafo Edward
Johnston. Gill solía hacer trabajos arquitectónicos y de escultura además de crear portadas para diversos libros con base al grabado en madera.</p>
<p>En 1906 se casó con Ethel Moore; él y su familia se mudaron a una comunidad de artistas en Ditchling, Sussex.</p>
<p>En 1914 Gill conoció a Stanley Morison, con quien colaboró haciendo trabajos en la editorial Burns & Oates.</p>
<p>Entre 1913 y 1917 se dedicó principalmente a la talla de las Estaciones del Viacrucis de la Catedral de Westminster, la obra que lo puso en primera fila de los escultores ingleses contemporáneos.</p>
<p>Durante 1925 Morison se encontraba trabajando para Monotype como consejero tipográfico. Fue entonces cuando se acercó a Gill para así crear una nueva tipografía, a pesar de que éste último decía que
su conocimiento en tipografía era nulo y que no formaba parte de su campo laboral. Después de un largo periodo de trabajo, Gill creó su primer tipo conocido como Perpetua, que en 1929 fue editada por Monotype.</p>
<p>En 1931 publicó su libro Essay on Typography en el cual utilizó su propio tipo, Joanna. Aquí, Gill describió sus puntos de vista en tipografía y sobre el humanismo en plena era industrial.</p>
<p>Eric Gill también es conocido por su excelente trabajo en el diseño e ilustración de libros; uno de sus más notables trabajos fue en el libro The Four Gospels.</p>
<p>Una de las frases célebres de Eric Gill en cuanto a la Tipografía fue: «Las letras son cosas, no dibujos de cosas».</p>
<p>Hombre profundamente religioso, en sus diarios personales recogió sus frecuentes abusos sexuales a sus propias hijas, la relación incestuosa que mantenía con su hermana, así como sus actividades zoofílicas con
su perro.</p>
<p>Falleció el 17 de noviembre de 1940 de cáncer en el pulmón. Fue sepultado con una lápida diseñada por él mismo en la que especificaba que era grabador.</p>
<h4>tipografías creadas por Eric Gill</h4>
<ul>
<li>Gill Sans (series 231 - 1928)</li>
<li>Perpetua y su cursiva, Felicity (1929)</li>
<li>Solus (1929)</li>
<li>Golden Cockerel Roman (1930)</li>
<li>Joanna (Hague & Gill - 1930)</li>
<li>Bunyan (1934)</li>
</ul>
</main>
</section>
<footer>
<p>Texto adaptado de <a href="https://es.wikipedia.org/wiki/Eric_Gill">Wikipedia</a></p>
</footer>
</div>
@import url(https://fonts.googleapis.com/css?family=Raleway);
/*h1,h4..*/
@import url(https://fonts.googleapis.com/css?family=Cinzel);
/*text*/
html {
font-size: 100%;
box-sizing: border-box;
font-family: 'Raleway', sans-serif;
color: #111;
background: #fefefe;
}
* {
margin: 0;
padding: 0;
}
#container {
max-width: 64rem;
min-width:18.75rem;/* 300px / 16 */
margin: 0 auto;
padding: 1em;
}
h1,
h4 {
font-family: 'Cinzel', serif;
font-weight: normal;
font-size: 1rem;
padding: 1em 0;
}
h1 {
display: block;
width: 100%;
margin: 0 auto;
text-align: center;
border-bottom: 4px double darkorange;
}
h1:first-line {
font-size: 3rem;
letter-spacing: 0 .5em;
/*text-transform:uppercase;*/
font-variant: small-caps;
}
p {
padding: .5em 0;
}
/* PRINCIPAL */
.principal {
line-height: 1.5em;
border-bottom: 1px solid darkorange;
}
.principal main p:first-child,
.principal aside p:first-of-type {
margin-top: 0;
padding-top: 0;
}
/* main */
.principal main {
margin-top: 2em;
}
.principal main p:first-child:first-line {
font-variant: small-caps;
font-size: 120%;
line-height: 120%;
}
.principal main p:first-child::first-letter {
color: darkorange;
font-weight: bold;
font-size: 5rem;
float: left;
line-height: 30%;
margin: 0 .1em .1em 0;
}
ul {
list-style: none;
margin-bottom: 2em;
}
li:before {
content: "\025b8";
display: inline-block;
width: 1em;
height: 1em;
margin: 0;
padding: 0;
}
/* aside */
.principal aside {
margin-top: 2em;
font-style: italic;
color: #555;
font-family: serif;
border-bottom: 1px solid #d9d9d9;
padding: 0 0 1em 0;
}
.principal aside p:first-line {
font-style: normal;
/*text-transform:uppercase;*/
font-variant: small-caps;
font-size: 120%;
line-height: 120%;
}
/* FOOTER */
footer {
font-style: italic;
color: #555;
font-family: serif;
margin-bottom: 2em;
}
footer a {
cursor: pointer;
text-decoration: underline;
color:#555;
}
footer a:hover {
color: darkorange;
}
@media screen and ( min-width: 40em) {
h1:first-line {
letter-spacing: .5em;
}
h1 span {
padding-left: .5em;
}
#container {
display: flex;
flex-direction: column;
}
.principal {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
}
.principal main {
width: 75%;
padding: 0 0 0 2em;
}
.principal aside {
width: 25%;
border: none;
border-right: 1px solid #d9d9d9;
padding: 0 2em 0 0;
text-align: right;
}
}
Also see: Tab Triggers