What is DOM element?

前端 未结 10 523
遥遥无期
遥遥无期 2020-12-02 07:32

What is the meaning of DOM element in the following statements?

Statement #1

You can add multiple classes to a single DOM

相关标签:
10条回答
  • 2020-12-02 07:57

    DOM is a logical model that can be implemented in any convenient manner.It is based on an object structure that closely resembles the structure of the documents it models.

    For More Information on DOM : Click Here

    0 讨论(0)
  • 2020-12-02 07:59

    See that your statements refer to "elements of the DOM", which are things such as the HTML tags (A, INPUT, etc). Thse statements simply mean that multiple CSS classes may be assigned to one such element.

    0 讨论(0)
  • As per W3C: DOM permits programs and scripts to dynamically access and update the content, structure and style of XML or HTML documents.

    DOM is composed of:

    • set of objects/elements
    • a structure of how these objects/elements can be combined
    • and an interface to access and modify them

    cheers

    0 讨论(0)
  • 2020-12-02 08:02

    It's actually Document Object Model. HTML is used to build the DOM which is an in-memory representation of the page (while closely related to HTML, they are not exactly the same thing). Things like CSS and Javascript interact with the DOM.

    0 讨论(0)
提交回复
热议问题