Valid XHTML 1.0 Strict
Apprendre le XHTML > Quelques conseils en Xhtml > Ce qu'il ne faut plus utiliser !!

Ce qu'il ne faut plus faire !!

Comme le doctype XHTML strict 1.0 n'acceptent pas les balises de présentation du type <font> ou <center>, celles-ci ne doivent plus être utiliser. Il faut alors utiliser les styles CSS : c'est plus propre et plus pratique! Même pour le doctype XHTML transitional 1.0, ces balises sont dépréciées. Certaines de ces balises sont même complètement obsolètes et n'appartiennent à aucune norme. En conclusion, que ces balises soient dépréciées ou obsolètes, elles sont condamnées, à l'avenir, à ne plus être interprétées par les navigateurs!

Balises dépréciées

<basefont> , <center> , <font> , <s> , <strike> , <u>

Attribut dépréciés (par balise)

<a> ( les attributs target )
<body> ( les attributs alink, background, bgcolor, link, vlink, text )
<caption> ( les attributs bgcolor, height, nowrap, width )
<hr /> ( les attributs clear, noshade, size, width )
<img /> ( les attributs border, hspace, vspace )
<li> ( les attributs compact, type )
<object> ( les attributs border, hspace, vspace )
<ol> ( les attributs star, value )
<pre> ( les attributs width )
<table> ( les attributs bgcolor, height, nowrap, width )
<tbody> ( les attributs bgcolor, height, nowrap, width )
<td> ( les attributs bgcolor, height, nowrap, width )
<tfoot> ( les attributs bgcolor, height, nowrap, width )
<thead> ( les attributs bgcolor, height, nowrap, width )
<th> ( les attributs bgcolor, height, nowrap, width )
<tr> ( les attributs bgcolor, height, nowrap, width )

2024 © Fabien Branchut