Second level paragraph
Hi, I'm a next to a span element
Hi
, I'm next to a code element
Hi, I'm next an italic element
The DOM shell
Help
Commands list | ||
cd | select the node passed as argument | Remark. The main difference between the structure of the file system and the DOM representing an HTML/XML file is that the DOM allows to have siblings with the same name. In order to distinguish such siblings, the shell append a number after the tag's name. This allows, for instance, to write cd p3
to enter the 3rd paragraph of a node.Such number is virtual, since it does not appear in the original node |
ls | list children nodes (columns) | |
ls -l | list children nodes (list) | |
ls -a | list also text nodes (all) | |
ls -d | list current node information (directory) | |
ls -dom | list children nodes (DOM metadata) | |
ls -attr | list children nodes (attributes) | |
pwd | current path position | |
echo | print a message on the console | |
help | show links to the online help | |
clear | clear console output | |
history | show list of recent commands |
You can also type any valid JavaScript command
References: Node Element HTMLElement