The DOM

After this the next step is to create a web page.  However before starting one must ensure the Dom is working. It is the most basic and most important part of Html coding as it tells the CSS Code and Html code how to work together correctly so it does
not get confused when pulling both into a web page which is read by the
browser. It helps the script form it into a web page. Without the Dom the code cannot
function at all. It is written like this for html <!DOCTYPE HTML> at the
top of the page. Below it are <html> opening code and closing
<html>  at the bottom of the document. It contains all of the code both head and body and different languages inside it.

The reason for this is that without the Dom the document cannot cascade properly or be
read by the browser correctly. Without this it is impossible for any browser to
read any of the web pages and so this is needed as part of the design to make
sure it works correctly. It also is the action that allows CSS to interact with
html and help the web page form together. Without it the two scripts could not
work properly in conjunction, they would just collapse and the web page would
come out looking distorted to what the designer originally had in mind.

The Dom is needed in all web pages in some form as it allows the two codes to function, Html and CSS or CSS and XHTML together. Essentially it is a platform which you are able to work from. Without this the code cannot function at all. The Dom also helps arrange the Html into the correct coding and layout so when it goes on screen
everything looks and is positioned without any errors.

The Cascade can be seen above without the Dom the web page could not read it and
will simply collapse.

http://www.w3schools.com/htmldom/default.asp

Leave a comment