use 'getAttribute()' to check the 'type' attribute of control elements