Web standards are technologies, established by the W3C and other standards bodies, that are used to create and interpret web-based content. These technologies are designed to future-proof documents published on the Web and to make those documents accessible to as many people and devices as possible.
Roger Johansson
@media screen and (max-width: 600px) { }
Browser Support:
Very Good. Just avoid IE < 9.
.gradient{
background-image:
linear-gradient(bottom, white, black);
}
Browser Support:
Fair. IE 10+, prefixed in S/CR, not yet in O Mobile
border-radius: 10px;
Browser Support:
Very Good. IE 9+, not yet on Opera Mobile.
// CR 1+, FF 1+, IE 9+, O 7+, S 1+
if (el.addEventListener)
el.addEventListener('click',
clickHandler, false);
// IE < 9
else if (el.attachEvent)
el.attachEvent('onclick',
clickHandler);
9% of your audience uses IE < 9
.gradient { ... }
.gradient {
-ms-filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#ffffff, endColorstr=#000000);
}
Internet Explorer 6+
.gradient {
background-image: -webkit-gradient(linear,
0% 0%, 0% 100%,
from(white), to(black));
}
Safari 4+, Chrome 1-9
.gradient {
background-image: -webkit-linear-gradient(
top, white, black);
background-image: -moz-linear-gradient();
background-image: -ms-linear-gradient();
background-image: -o-linear-gradient();
}
CR 10+, S 5.1+, FF 3.6+, IE 10+, O 11.1+Quirks Mode
Legacy Browsers
W3C publishes documents that define Web technologies. These documents follow a process designed to promote consensus, fairness, public accountability, and quality. At the end of this process, W3C publishes Recommendations, which are considered Web standards.
W3C FAQ
Working Draft
Candidate Recommendation
Recommendation
#container { display: grid; }
{ grid-column-definition: auto 1fr;
grid-row-definition: auto 1fr; }
{ grid-start: 3; grid-end: span 3; }
@media screen and (max-width: 600px) { }
W3C Status:
Media Queries
(Recommendation 2012.06.19)
.gradient{
background-image:
linear-gradient(bottom, white, black);
}
W3C Status:
CSS Image Values and Replaced Content
(Candidate Recommendation 2012.04.17)
border-radius: 10px;
W3C Status:
CSS Backgrounds and Borders
(Candidate Recommendation 2012.07.24)
Surveying the present and think-tanking the future
Source: simonfosterdesign.com
.content:before {
display:block;
float:left;
width:240px;
height:280px;
background:url(...);
}
.content { flow-into: story-flow; }
.region { flow-from: story-flow; }
.circle {
float: left;
shape-outside: circle(50%, 50%, 50%);
shape-inside: outside-shape;
}
.region {
flow-from: story-flow;
shape-inside: polygon(...);
}
.content { flow-into: story-flow; }
.region { shape-inside: polygon(...); }
.content { shape-inside: circle(...); }
built with reveal.js, font awesome, and images from the noun project by Dmitry Baranovskiy