An element that has properties of both metals and nonmetals