Ta2O5 nanotube length, diameter, and wall thickness are controlled by varying the ratio of HF to H2O in the electrolyte solution.