I gave the test element an event handler and an attribute I invented myself.
This is the first test element.
It has the following attributes, in this order:
id="test"
align="center"
style="border: 1px solid #0000cc"
onclick="alert('Clicked!')"
ppk="JavaScript"
This is the second test element. It has only one attribute:
id="test2"
createAttributeList(). Creates a complete list of attributes, by index. Doesn't work in Explorer 5 Windows, though, because these browsers can't read out the name and value of the attributes.