defaults to text type input if no type attribute is present