Content deleted Content added
Tags: Reverted extraneous markup |
m Reverted edit by 2600:8801:AF32:3B00:49C3:DF4F:E1DF:DD0E (talk) to last version by Finlay McWalter |
||
Line 116:
</syntaxhighlight>
The DOM tree can be manipulated using JavaScript or other programming languages. Common tasks include navigating the tree, adding, removing, and modifying nodes, and getting and setting the properties of nodes. The DOM API provides a set of methods and properties to perform these operations, such as <code>getElementById</code>, <code>createElement</code>, <code>appendChild</code>, and <code>innerHTML</code>.<syntaxhighlight lang="javascript">
// Create the root element
|