Home >Web Front-end >HTML Tutorial >Comparison of HTML 5 and XHTML 1.0 Transitional

Comparison of HTML 5 and XHTML 1.0 Transitional

王林
王林forward
2023-09-08 09:17:191345browse

HTML 5与XHTML 1.0 Transitional的对比

HTML is represented by SGML and XHTML is represented by XML. Creating XHTML involves more restrictions in the form of markup.

Avoid using the

Convert from HTML to XHTML

  • Add XHTML to the first line of each page
  • Add the xmlns attribute to the HTML of each page Element
  • Change all element names to lowercase
  • Close all empty elements
  • Change all attribute names to lowercase
  • Quote all attribute values

The above is the detailed content of Comparison of HTML 5 and XHTML 1.0 Transitional. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete