Diferencias entre XHTML y HTML

 

html vs xhtml

XHTML son las siglas de EXtensible Hyper Text Markup Language.

XHTML es una versión de HTML más estricta y basada en XML.

XHTML es HTML definido como una aplicación XML.

XHTML es compatible con todos los navegadores principales.

Características principales de XHTML:

  • El DOCTYPE es necesario. En XHTML debemos declarar explícitamente el tipo de documento de que se trate.
  • Todas las etiquetas y atributos en minúscula. Esta es una regla común a todos los sublenguajes xml. Todas las etiquetas (tags) deberán ir escritas en minúsculas. Todos los atributos de los elementos, en minúsculas.

MAL: <INPUT TYPE="text" NAME="nombre" SIZE="20">

BIEN: <input type="text" name="nombre" size="20">

  • Todos los valores de atributos entrecomillados.

MAL: <font size=2> 

BIEN: <font size="2">

  • Todas las etiquetas deben ir cerradas. Esto incluye la necesidad de cerrar las clásicas parejas de etiquetas de HTML, incluso aquéllas que usualmente se consideraban que no eran necesarias: <li></li> <p></p> <option></option> , pero también los elementos vacíos, es decir, aquellas etiquetas que en HTML no van en parejas.

MAL: <br >

BIEN: <br> </br> ó <br/> ó <br />

  • Los elementos XHTML deben estar correctamente anidados.

MAL: <b><i>Texto</b></i>

BIEN: <b><i>Texto</i></b>

  • En XHTML, los nombres de los elementos siempre deben estar en minúsculas:

MAL:

<BODY>
<P>Etiqueta párrafo</P>
</BODY>

BIEN:

<body>
<p>Etiqueta párrafo</p>
</body>

Para validar una página usaremos W3C:

https://validator.w3.org/

 

Deja un comentario

slot gacor

slot88

slot gacor

slot88

https://fatamorgana.co.id/

slot gacor

slot777

https://descubripunilla.com

slot gacor

slot gacor

slot gacor

slot gacor

https://badudu.org/

badudu

slot gacor

https://season8.org

https://oooms.org/

https://jumpyplace.org/

situs slot gacor

slot gacor

info slot gacor

https://diafrica.org/

https://diafrica.org/

http://diafrica.org/

https://advy.ac.id/

slot

slot gacor

slot online

https://instiper.ac.id/

slot gacor

slot online

slot

situs slot gacor

https://kyani.ac.id/

slot gacor

https://pelitanusa.ac.id

slot gacor

https://lsgi.org/

https://lsgi.org/

https://lullabies-of-europe.org/

https://saint-lazarus.org/

https://gregkeyes.com/

slot

slot88

slot gacor

slot hoki

slot gacor

slot gacor

slot88

slot

slot gacor

slot-gacor

slot gacor

slot gacor

slot gacor

rtp live

slot online

info slot gacor

slot gacor

slot777

slot777

slot777

slot88

slot gacor

slot88

slot gacor

slot88

slot gacor

slot gacor

slot

slot maxwin

slot88

slot

slot gacor

slot gacor

slot

slot online

slot

slot gacor

slot777

slot gacor

slot gacor

slot88

slot gacor

slot88

slot gacor

slot online

slot gacor

slot

slot online

slot online

slot

slot gacor

slot gacor

slot88

http://bkddiklat.boalemokab.go.id/slot-gacor/

http://book.iaincurup.ac.id/slot-gacor/

slot gacor

slot online

slot777

slot

https://sipsakato.sumbarprov.go.id/slot-gacor/

slot gacor

https://instiper.ac.id/slot88/

slot88

slot-gacor

slot online

slot gacor hari ini

slot gacor

slot gacor hari ini

slot gacor

slot online

slot

situs slot gacor

slot88

slot online

slot gacor

slot online

slot gacor

slot

slot

slot gacor

slot gacor terbaru

slot gacor

slot pulsa

slot gacor

slot gacor

slot88

slot88

slot gacor

slot gacor terpercaya

slot gacor hari ini

slot88

slot gacor

slot gacor

slot88

slot88

slot gacor

slot online

slot gacor

slot88

slot gacor

slot gacor

slot gacor

slot gacor

situs slot gacor

https://ukm-futsal.upr.ac.id/assets/slot-gacor/

https://ukm-futsal.upr.ac.id/slot-dana/

https://ukm-futsal.upr.ac.id/assets/slot-gacor-hari-ini/

slot gacor

slot online

slot gacor

slot gacor

slot88

slot gacor

https://bkd.bantenprov.go.id/bkdlama/

slot pulsa

slot gacor

slot online

rtp slot gacor

slot deposit dana

slot gacor

https://human.udru.ac.th/site/togel-100perak/

slot maxwin

slot gacor

slot777

slot gacor

slot gacor

slot gacor

slot88

slot dana

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot88

slot88

slot gacor

slot88

slot gacor

slot88

slot gacor

slot gacor

slot88

slot gacor

slot88

slot gacor

slot gacor

slot gacor maxwin

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot gacor

slot88