比较/对比HTML,XHTML,XML和HTML5 [英] Compare/contrast HTML, XHTML, XML, and HTML5

查看:290
本文介绍了比较/对比HTML,XHTML,XML和HTML5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我不太清楚这些语言之间的区别。有人可以澄清吗?我知道XML具有用户定义的标签,并且html是预定义的,但基本上我知道的程度。



我知道HTML5应该取代HTML,但不是XML应该这样做?基本上,这里的哪些语言是另一种语言的替代品,哪些是补语? XML是否替代XHTML?

=noreferrer> HTML 是超文本标记语言,用于创建结构化文档并提供文档背后的语义含义。 HTML5是HTML规范的下一个版本。



XML 是可扩展标记语言,它提供了创建,结构化和编码文档的规则。您经常会看到XML被用于存储数据并允许应用程序之间的通信。它是编程语言无关的 - 所有主要的编程语言都提供读取和写入XML文档的机制,无论是作为核心的一部分,还是作为外部库。

XHTML 是一个基于XML的HTML。它的功能与HTML相同,但与XML文档具有相同的规则。这些规则处理标记的结构。


Ok, so I'm not quite sure the difference between these languages. Could someone clarify? I know that XML has user-defined tag and html is pre-defined, but thats basically the extent of my knowledge.

I know that HTML5 is supposed to replace HTML, but wasn't XML supposed to do that as well? Basically, which languages here are a substitute for the other, and which complement? Does XML replace XHTML?

解决方案

HTML is the HyperText Markup Language, which is designed to create structured documents and provide for semantic meaning behind the documents. HTML5 is the next version of the HTML specification.

XML is the Extensible Markup Language, which provides rules for creating, structuring, and encoding documents. You often see XML being used to store data and to allow for communication between applications. It's programming language-agnostic - all of the major programming languages provide mechanisms for reading and writing XML documents, either as part of the core or in external libraries.

XHTML is an XML-based HTML. It serves the same function as HTML, but with the same rules as XML documents. These rules deal with the structure of the markup.

这篇关于比较/对比HTML,XHTML,XML和HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆