XML常识

本来只想了解下XML的,干脆就补充下常识吧^_^
在学习过程中,发现了w3schools,里面有好多网页技术的东西哈~

HTML:HyperText Markup Language,超文本标记语言,而不是一种编程语言。
HTML页面中没有嵌入任何服务端执行的语句,是一种静态的页面格式。
后缀名为.html或.htm(以前系统的后缀名只能有3位)

CSS:Cascading Style Sheets,层叠样式表,是将文件的内容(如HTML语言编写)与它的显示(如字体、颜色)分离开来。它的作用不言而喻。

XML:eXtensible Markup Language,可扩展标记语言,数据的一种描述方式,一棵树。
XML与HTML作用不同:
1. XML was designed to transport and store data, with focus on what data is.
2. HTML was designed to display data, with focus on how data looks.
3. The tags used in HTML are predefined. XML tags are not predefined.
XML特点:
1. XML Documents Must Have a Root Element.
2. All XML Elements Must Have a Closing Tag.
3. XML Tags are Case Sensitive.
4. XML Elements Must be Properly Nested.
5. XML Attribute Values Must be Quoted.

XHTML:eXtensible HyperText Markup Language,可扩展超文本标记语言,语法比HTML严格(规范使得计算机容易处理),是HTML和XML的结合体,W3C推荐XHTML替代HTML。
XHTML与HTML主要不同点:
1. XHTML elements must be properly nested. “<b><i>This text</b></i>”(Wrong!)
2. XHTML elements must always be closed. “<p>This is a paragraph”(Wrong! </p>)
3. XHTML elements must be in lowercase.
4. XHTML documents must have one root element.

来自w3schools和维基百科

你可能感兴趣的:(html,xml,css,XHTML)