<h1>IMAGE as Html element & Css selector</h1>
<p>If you type <image> as tags for images elements in the html, browser aliases 'image' to 'img'.</p>
<p>Please, read the article <a href='http://jakearchibald.com/2013/having-fun-with-image/'><strong>"Having fun with <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='https://ksesocss.blogspot.com/2013/08/image-selector-css.html'><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>
<article>
<h2>IMAGE as Css selector & IE´s</h2>
<div class='css-in-html'>
<h3>This is a <IMG> element</h2>
<img src='https://2.bp.blogspot.com/-zGyzffKV9d4/UZKsyak0pJI/AAAAAAAAGpo/Sxb6jt70G5E/s1600/nueva-piel.jpg' alt='' />
</div>
<div class='css-in-html'>
<h3>This is a <IMAGE> element</h2>
<image src='https://2.bp.blogspot.com/-zGyzffKV9d4/UZKsyak0pJI/AAAAAAAAGpo/Sxb6jt70G5E/s1600/nueva-piel.jpg' alt='' />
</div>
<p>The same applies if the styles are in an external CSS file or included in the head of html</p>
</article>
<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(https://fonts.googleapis.com/css?family=Dosis:300);
* {
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;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.