introduced tagName for select and textarea.
type is only for input element.