花美男为中国互联网事业而奋斗

HTML VS XHTML

来源:未知 阅读(0)次 评论(0)

What Is XHTML?

  • XHTML stands for EXtensible HyperText Markup Language

  • XHTML is almost identical to HTML

  • XHTML is stricter than HTML

  • XHTML is HTML defined as an XML application

  • XHTML is supported by all major browsers

Why XHTML?

Many pages on the internet contain "bad" HTML.

This HTML code works fine in most browsers (even if it does not follow the HTML rules):

<html>
<head>
  <title>This is bad HTML</title>

<body>
  <h1>Bad HTML
  <p>This is a paragraph
</body>



来源:www.w3school.com.cn  和 www.w3schools.com

标签:HTMLXHTML
上一篇:<!DOCTYPE>文档类型 下一篇:HTML5新特性

相关推荐