Messing with the DOM

The-DOMNow you probably shouldn’t mess with the DON, but it’s okay to mess with the DOM (Document Object Model).  That probably wasn’t very funny but I do like to lead with a joke.  The DOM is a representation of your site.  Each part represents a node and the node tree can be traversed up or down.  An HTML entity such as a paragraph can represent an object.  That paragraph tag can have properties such as a background color.   There are methods which you can use to manipulate these objects.  This is a lead-in to a discussion of javascript which is different from Java.  HTML is a presentation language.  There is no mechanism by which to make logical decisions nor manipulate objects other than by very crude means such as hover.  HTMl presents content.  CSS provides styling.  JavaScript is one means by which to provide action.

About Robert

Robert is a novice web site developer. A lack of professional training has not prevented him from creating some very nice websites for small businesses who would otherwise have gone without a web presence.


Subscribe to our e-mail newsletter to receive updates.

No comments yet.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.