What is the HTML tree?

The tree in computer data terms is the method of displaying information as a sequence of nodes that can be expanded or collapsed to display subchapters or other information. In Hypertext Markup (HTML), the implementation of a tree is often known as a tree view. The HTML tree can be used to display the page layout on the site; the headings and subchapters of the outline, document or book; or topics and answers to the forum. There is no way to implement a HTML tree, and HTML itself has no built -in support for tree display. Instead, the HTML tree is usually designed using a combination of tools that are referred to as dynamic HTML (DHTML).

HTML tree is used when there is a collection of information that can be displayed linear, and each highest input level can have zero or more information that may be related to this input. Each item is called a node and may have different nodes under it. One example of the example in which a tree can beUse to organize and display information is in the online notice board.

Each topic in the online notice board could be listed as a highest level node, with the term "highest level" indicating that the node is not nested under another node. Each answer to one topic is nested under the highest level node or the main topic. If the response to the answer to the answer is then the first answer becomes a node under which the second answer is nested. In this way, information can be organized, so the association from top to bottom can be visually displayed, usually by increasing the indentation of each line in relation to how deeply it is nested in the structure.

One aspects of the HTML tree that requires the use of DHTML is the ability to expand each node, showing all nodes below, or to reduce, hiding all nodes by seeing the highest level. This can be achieved using the HTML table that is manipulated by a scriptingA language that modifies the model of the Object of the Document (DOM) to display or hide the necessary table cells. Another method used to create a dynamic HTML tree is to use documents of the expandable brand language (XML), which are converted into HTML pages using scripts on the server side or other modules.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?