Creates an element from a variety of sources