textarea only one line

CSS
textarea {
  resize: none;
  white-space: nowrap;
  overflow-x: scroll; /* or hidden */
}
Source

Also in CSS: