HTML DOM Tutorial

DOM (Document Object Model) is the programming interface of HTML and XML documents.

The HTML DOM defines standard methods for accessing and manipulating HTML documents.

DOM expresses HTML documents in a tree structure.

HTML DOM tree structure


HTML DOM instance

Learn with 100 examples! Using our editor, you can edit HTML documents and click the " Try It " button to see the results.

Online example!

HTML DOM Example


Click the bulb to turn the light on/off

Try It! 

HTML DOM Reference Manual

In the, we provide a complete HTML DOM reference manual with online examples.

HTML DOM Reference Manual