Atributos y Elementos XHTML que ya no deberás ocupar

Julio 25, 2007

W3COlvidándose un poco de los problemas que estamos pasando en Chile, les comentare una noticia que es vital para los desarrolles web que trabajan con estándares, ojo no digo todos los desarrolladores web ya que esta claro que no lo siguen en su totalidad.

Mucho se ha hablado de XHTML, que es el sustituto de HTML. Este es mas semántico y completo, así que si nos decidimos a trabajar con un tipo de documento estricto (doctype stric), debemos tener en cuenta que muchos elementos o atributos que ocupamos en HTML ya no se pueden ocupar en modo estricto.

Para su información estos elementos y atributos que no deben seguir ocupando son:

Elementos

Nombre Descripción Alternativa
applet Java applet
basefont base font size font-size: 100%;
center shorthand for DIV align=center text-align: center;
dir directory list
font local change to font font-family: arial; font-size: 0.8em;
isindex single line prompt
menu menu list
s strike-through text style text-decoration: line-through;
strike strike-through text text-decoration: line-through;
u underlined text style text-decoration: underline;

Atributos

Atributo En los siguiente elementos Alternativa CSS (o HTML)
align caption, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p CSS atributo: text-align
alink, link, vlink body CSS selectores: a, a:link, a:visited, a:hover, a:active, a:visited:hover
CSS atributo: color:
background body CSS atributo: background-image:
bgcolor table, tr, td, th, body CSS atributo: background-color: or background:
border img, object CSS atributo: border:
clear br CSS atributo: clear: left | right | both | none
compact dl, ol, ul CSS atributo: line-height, min-height or height: with overflow: set.
height td, th CSS atributo: line-height for cell content; don’t use tables for layout
hspace img, object CSS atributo: padding
language script HTML atributo: type
HTML atributo value:
MIME type, ex. type=”text/javascript”
name img, a, applet, form, frame, iframe, map HTML atributo: : id
noshade hr
nowrap td, th CSS atributo: white-space:
size hr CSS atributo: width: or margin:
start ol
target a
text body CSS atributo: color
type li, ol, ul CSS atributo: list-style-type
value li
version html HTML Marca: use a DTD
vspace img, object CSS atributo: padding: or margin:
width hr, td, th, pre CSS atributo: width:

Vía Evotech
.

Ver VideosTe VerdeVideos 3GP3GPsomos tu y yo

Entry Filed under: CSS, Diseño, SEO, Web 2.0. .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Lo Más Visto

1356

Recomendados