Difference between HTML and DOM

前端 未结 5 1344
暖寄归人
暖寄归人 2020-12-04 16:54

What is the difference between DOM and HTML?

5条回答
  •  猫巷女王i
    2020-12-04 17:09

    Well, if you look in things like firebug, you can also check out the "DOM". Then they usually mean the current state the HTML page is in. So if you, for example, have a html page and add a tag with javascript.

    The actual HTML of the page is still the same, but the "DOM" however has changed.

    Notice that this isn't the right definition of DOM, but I thought this might be what you meant.

提交回复
热议问题