A common way to select all elements is to find within document.body so elements like head, script, etc are left out.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
DIV
SPAN
P
Button
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself