Using Web Standards in your Web Pages:Summary of Changes
From MDC
This section outlines all of the element and practice updates described in this article. For a complete discussion of these items, see the sections in which they are described.
| Proprietary or Deprecated Feature | W3C Feature or Recommended Replacement |
|---|---|
deprecated FONT |
HTML 4.01 SPAN plusCSS1 color: ; font-family: ; font-size: ; |
deprecated CENTER or align="center" |
CSS1 text-align: center; for
in-line elements like text or image |
deprecated CENTER or align="center" |
CSS1 margin-left: auto; margin-right: auto;for block-level elements |
deprecated bgcolor |
CSS1 background-color: ; |
non-standard EMBED |
HTML 4.01 OBJECT |
deprecated APPLET |
HTML 4.01 OBJECT |
non-standard MARQUEE |
HTML 4.01 DIV plus scripting |
non-standard BGSOUND |
HTML 4.01 OBJECT |
| Proprietary or Deprecated Feature | W3C Feature or Recommended Replacement |
| IE5+
document.all[id_attribute_value] |
DOM level 2:document.getElementById(id_attribute_value) |
IE5+ FormName.InputName.value |
DOM level 1: |
IE5+ InputName.value |
DOM level 1: |
IE5+ FormCtrlName |
DOM level 1: |
IE5+ document.forms(0) |
DOM level 1: |
IE ElemRef.innerText |
DOM Level 1 (Core) interface |
IE5+ ElemRef.style.pixelTop |
DOM level 2: parseInt(ElemRef.style.top, 10)
|
IE5+ ElemRef.style.pixelLeft = x;
ElemRef.style.pixelTop = y; |
DOM level 2: ElemRef.style.left = x + "px";
ElemRef.style.top = y + "px"; |
| IE5+ new ActiveXObject("Microsoft.XMLHTTP") | new XMLHttpRequest() |
| Proprietary or Deprecated Feature | W3C Feature or Recommended Replacement |