Posts

Showing posts with the label DOM structure Document Object Model XML XHTML HTML DOCTYPE META HEAD BODY

The building blocks - DOM structure and page elements

The DOM structure or the Document Object Model is the backbone of the structure that builds up every single webpage and most other information wrappers on the internet. The structure can be viewed as a tree structure. Only instead of looking at the branches of the tree we look at the roots. This also can be compared to the DOM structure directly because what we see is the result of the DOM structure being parsed by the web-browser and not the structure itself. First of all, the DOM structure is not only bound to HTML. It is actually derived from XML and appears as the main structure of XML, XHTML, SVG, XSLT etc. The DOM is a kind of wrapper containing all the information. Each TAG in the structure contains a bit of the data that is to be displayed. The TAG is refFered to as an element. An element can be anything from a header or paragraph to a form element or an image. The type of element is determined by its name. An image will have the element <img>. A header can have the nam...