張貼日期:Jan 10, 2012 1:32:9 PM
-interoperability
-all info from any to any
rely on standards.
W3C
IETF (may be even more important)
protocols
low level
avoid fault-tolerant
avoid complicated code for browser.
XHTML
restrict to standard
Strict is the best
Transitional is more compilable
CSS
structure <> presentation
selectors { descriptiors}
descriptiors: propoty = value;
div vs span
div have line break
span no line break, always use for inline formatting purpose.
external, embeded and inline
external is the best any only one for XML
Pseudo-classes
using good names
use names not description names for classes.
Don't overuse class and div
JavaScript
ECMAScript
DHTML
JS and DOM
DOM spec
events
<button onclick="alert('hihi')"/>
window //the highest element like root
HTML5 & CSS3
improve from previous versions