Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can someone explain what the DOM is?

Featured Replies

Hey,

 

I have a web technology exam coming up soon, which is going to exam us on some of these topics:

 

HTML/DHTML/XHTML

CSS

JavaScript > jQuery

PHP

AJAX

The DOM.

 

Now that last one, the DOM, its the only one im abit iffy on understanding. I have read plenty of websites but they all go on abit. I know you have to use window.status, document.getelementbyid stuf.

 

But can someone explain to me, simpily, sort of a no waffle explanation of what it is, and why it is used?

 

Thanks!

There's some good youtube videos explaining it if I recall correctly, but the DOM basically is how the browser interprets the code which it's receiving.

 

I'm no expert, but it essentially forms the tags into a tree (or trees) which it goes through in a linear fashion. For example in <div><b></b></div>, the B tag would be a child of the DIV tag.... and so on.

 

I don't know how I would explain it concisely though, other than the means by which the browser decodes your code in order to display it.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.