What today’s lecture is about
- How did today’s Web ecosystem come to be?
- How are web technologies made?
- How could you contribute?
if (document.getElementById) { // W3C
return document.getElementById(id);
}
else if (document.all) { // IE
return document.all[id];
}
else { // Netscape
return document.layers[id];
}
<style type="text/css">
h1 { color: red; }
p { font-size: 20pt; }
h3 {
color: green;
}
h2 {
color: red;
font-size: 16pt;
margin-top: 4cm;
}
</style>
<style type="text/javascript">tags.H1.color = "red"; tags.p.fontSize = "20pt"; with (tags.H3) { color = "green"; } with (tags.H2) { color = "red"; fontSize = "16pt"; marginTop = "4cm"; }</style>
Standards are like sausages, it’s better not to see them being made.
body {
background: red;
background: conic-gradient(green, green)
}
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='white', endColorstr='black',
GradientType=0);
background: -webkit-gradient(
linear, left top, left bottom,
color-stop(0%, white), color-stop(100%, black));
background: linear-gradient(to bottom, white, black);
Theory:
User needs come before the needs of web page authors, which come before the needs of user agent implementors, which come before the needs of specification writers, which come before theoretical purity.
(Basically consumers > producers)
More aspirational in practice