Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <h1>IMAGE as Html element & Css selector</h1>
<p>If you type &lt;image> as tags for images elements in the html, browser aliases 'image' to 'img'.</p>
<p>Please, read the article <a href=''><strong>"Having fun with &lt;image>"</strong></a> by @jaffathecake [ing].</p>

<p class='question'>But What if we use 'image' as css selector?</p>
<p>Please, read the article <a href=''><strong>"Más diversión con el selector image en Css"</strong></a> [es] and open this pen with Internet Explorer (7, 8 or 9 /¿10?)</p>
<h2>IMAGE as Css selector & IE´s</h2>
<div class='css-in-html'>
  <h3>This is a &lt;IMG> element</h2>
  <img src='' alt='' />
<div class='css-in-html'>
  <h3>This is a &lt;IMAGE> element</h2>
  <image src='' alt='' />
<p>The same applies if the styles are in an external CSS file or included in the head of html</p>
<p>The IEs alias the 'image' selector to 'img' (in the css rules) and then they apply the styles declared for 'image' to all 'img' of the html document.</p> 


              @import url(;
* {
  margin: 0;
  padding: 0;
  border: 0 none;
  position: relative;
*, *:after, *:before {
box-sizing: border-box;
-moz-box-sizing: border-box;
html, body {
  background: #164C88;
  font-family: Dosis;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #F6FAFD;
body {padding: 1rem;}
article {text-align: center;}
article div {
  display: inline-block;
  background: #3099DD;
  width: 45%;
  margin: .5rem 2%;
  padding: .5rem;
h2 { 
  background: #43836C;
  margin: 2rem 0 .5rem 0;
  font-size: 2rem;
h3 {
  background: #023864;
  font-size: 1.5rem;
img, image {
  background: #FF7361;
  display: block;
  max-width: 100%;
  padding: 1rem;
image {
  background: #F6FAFD;
p {font-size: 1.3rem;}
p.question {
  background: #F9D237;
  margin: 2rem 0 .5rem;
  font-size: 2rem;
  text-align: center;
  color: #444;
a {
  color: #F9D237;
  text-decoration: none;



Loading ..................