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.
<h1 style="text-align:center;">Los 7 Continentes</h1>
<h4 style="text-align:center;">➤ Pulsa sobre los puntos de la imagen para ir a la sección de un continente</h4>
<map name="continents_map">
<area shape="circle" coords="70,70,10" href="#north_america">
<area shape="circle" coords="133,185,10" href="#south_america">
<area shape="circle" coords="270,137,10" href="#africa">
<area shape="circle" coords="292,44,10" href="#europe">
<area shape="circle" coords="469,201,10" href="#australia">
<area shape="circle" coords="374,65,10" href="#asia">
<area shape="circle" coords="340,267,10" href="#antartica">
</map>
<figure style="text-align:center;">
<img usemap="#continents_map" src=https://bit.ly/2bgFrvL width="600px" />
<figcaption>Mapa Mundial</figcaption>
</figure>
<div>
<h3 id="africa">Africa</h3>
<p>África es el segundo continente más grande y poblado del mundo. Con unos 30,2 millones de km<sup>2</sup> (11,7 millones de millas cuadradas), incluidas las islas adyacentes, ocupa el 6% de la superficie total de la Tierra y el 20,4% de su superficie terrestre total. Con 1.100 millones de habitantes en 2013, representa alrededor del 15% de la población humana mundial.</p>
</div>
<div>
<h3 id="asia">Asia</h3>
<p>Asia es el continente más grande y poblado de la Tierra, situado principalmente en los hemisferios oriental y septentrional. Aunque sólo ocupa el 8,7% de la superficie total del planeta, comprende el 30% de la superficie terrestre e históricamente ha albergado a la mayor parte de la población humana del planeta (en la actualidad, aproximadamente el 60%). </p>
</div>
<div>
<h3 id="europe">Europa</h3>
<p>Europa es el segundo continente más pequeño del mundo por superficie, con unos 10.180.000 kilómetros cuadrados (3.930.000 millas cuadradas) o el 2% de la superficie de la Tierra y alrededor del 6,8% de su superficie terrestre. De los aproximadamente 50 países europeos, Rusia es con diferencia el más grande tanto por superficie como por población, ya que ocupa el 40% del continente (aunque el país tiene territorio tanto en Europa como en Asia), mientras que la Ciudad del Vaticano es el más pequeño. Europa es el tercer continente más poblado después de Asia y África, con una población de 739-743 millones de habitantes, es decir, alrededor del 11% de la población mundial. La moneda más utilizada es el euro.</p>
</div>
<div>
<h3 id="south_america">América del Sur</h3>
<p>Sudamérica tiene una superficie de 17.840.000 kilómetros cuadrados. En 2005, su población se estimaba en más de 371.090.000 habitantes. Sudamérica ocupa el cuarto lugar en superficie (después de Asia, África y Norteamérica) y el quinto en población (después de Asia, África, Europa y Norteamérica). Asia, África, Europa y Norteamérica).</p>
</div>
<div>
<h3 id="north_america">Norteamérica</h3>
<p>América del Norte ocupa una superficie de unos 24.709.000 kilómetros cuadrados (9.540.000 millas cuadradas), cerca del 4,8% de la superficie del planeta o alrededor del 16,5% de su superficie terrestre. En 2013, su población se estimaba en casi 565 millones de personas repartidas en 23 Estados independientes, lo que representa alrededor del 7,5% de la población humana. La mayor parte de la superficie terrestre del continente está dominada por Canadá, Estados Unidos, Groenlandia y México, mientras que existen estados más pequeños en las regiones de América Central y el Caribe. América del Norte es el tercer continente más grande por superficie, después de Asia y África, y el cuarto por población después de Asia, África y Europa.</p>
</div>
<div>
<h3 id="antartica">Antártida</h3>
<p>La Antártida es el continente más meridional de la Tierra y alberga el Polo Sur geográfico. Está situada en la región antártica del hemisferio sur, casi totalmente al sur del Círculo Polar Antártico, y rodeada por el Océano Antártico. Con 14,0 millones de km<sup>2</sup> (5,4 millones de millas cuadradas), es el quinto continente en extensión después de Asia, África, Norteamérica y Sudamérica. En comparación, la Antártida tiene casi el doble de tamaño que Australia. Alrededor del 98% de la Antártida está cubierta por hielo de 1,9 kilómetros de media. 1,9 kilómetros (1,2 mi) de grosor, que se extiende a todos los confines de la Península Antártica excepto a los más septentrionales.</p>
</div>
<div>
<h3 id="australia">Australia</h3>
<p>Con una superficie total de 8.560.000 kilómetros cuadrados, el continente australiano es el más pequeño y el más bajo de la Tierra habitado por el hombre. La plataforma continental que conecta las islas, la mitad de la cual tiene menos de 50 metros (160 pies) de profundidad, cubre unos 2.500.000 kilómetros cuadrados (970.000 millas cuadradas), incluyendo la plataforma de Sahul y el estrecho de Bass. Dado que Australia está formada por una sola masa de tierra y comprende la mayor parte del continente, a veces se la denomina informalmente una isla-continente, rodeada de islas. a veces se le llama informalmente "continente isla", rodeado de océanos.</p>
</div>
body {
font-family: "bookman old style";
}
:target {
color: lightyellow;
background: indianred;
}
h3,
h1 {
color: indianred;
}
img {
border: 3px dashed indianred;
}
body {
counter-reset: srl;
}
h3::before {
counter-increment: srl;
content: counter(srl)". ";
}
Also see: Tab Triggers