HTML和DOM之间的区别 [英] Difference between HTML and DOM

查看:580
本文介绍了HTML和DOM之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DOM和HTML有什么区别?

解决方案

DOM是一个具有相关API操作的文档模型



HTML是一种标记语言,可让您在文本中表示某种DOM。



其他DOM的种类可以用其他标记语言表示,例如RSS和Atom可以转换为DOM,并使用与HTML或XHTML文档相同的API进行操作(或多或少地有一些HTML特定的DOM扩展)。 / p>

What is the difference between DOM and HTML?

解决方案

DOM is a model of a document with an associated API for manipulating it.

HTML is a markup language that lets you represent a certain kind of DOM in text.

Other kinds of DOMs can be expressed in other markup languages, for example RSS and Atom can be converted to a DOM and manipulated with the same API as an HTML or XHTML document (more or less anyway; there are some HTML specific DOM extensions).

这篇关于HTML和DOM之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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