Le web de Dominique Guebey – Bazar informatique

Page : http://www.dg77.net/tekno/xhtml/deprecat.htm


  D o m i n i q u e   G u e b e y    J u n g l e    Bazar informatique

Pages Web en XHTML / ANNEXE

Alternatives offertes par XHTML 1.0 pour les ELEMENTS DTD qu’il rend obsolètes

Nom"Deprecated"Alternative
APPLETOuiUtiliser OBJECT
BASEFONTOuiSpecifier base font size en CSS; ou pas du tout
CENTEROuitext-align: center in CSS pour elements "inline"; marges explicites en CSS pour "blocs"
DIROuiOL ou UL
FONTOuiCSS !!!
IFRAMENonOBJECT
ISINDEXOuiINPUT
MENUOuiOL ou UL
SOuiCSS : text-decoration: strike-through
STRIKEOuiCSS : text-decoration: strike-through
UOuiCSS : text-decoration: underline

Alternatives proposées par XHTML 1.0 aux ATTRIBUTS obsolètes

NomElements concernésAlternative
alignCAPTION
alignIMG, INPUT, OBJECT
alignLEGEND
aligntable
alignHR
alignDIV, H1, H2, H3, H4, H5, H6, P CSS : text-align
alinkBODY CSS : a:link
backgroundBODY CSS : background
bgcolortable CSS : background
bgcolorTR CSS : background
bgcolorTD, TH CSS : background
bgcolorBODY CSS : background
borderIMG, OBJECT CSS : border
clearBR CSS : clear
compactDL, OL, UL CSS : line-height
heightTD, TH CSS : line-height (cellules); NE PAS UTILISER DE TABLES POUR LA MISE-EN-PAGE
hspaceIMG, OBJECT CSS : padding
languageSCRIPT attribut type et type MIME
linkBODY CSS : a:link
nameIMG id
noshadeHR Eviter
nowrapTD, TH CSS : white-space: pre
sizeHR CSS : specifier margin-left et margin-right ou width pour HR alignement par defaut
startOL Trouver autre chose
targetA Interdit
textBODY CSS : color
typeLI CSS : list-style
typeOL CSS : list-style
typeUL CSS : list style
valueLI Trouver autre chose
versionHTML Eviter
vlinkBODY CSS : a:visited
vspaceIMG, OBJECT CSS : padding
widthHR CSS : width
widthTD, TH NE PAS UTILISER DE TABLES POUR LA MISE-EN-PAGE
widthPRE use CSS width