How to prevent newline at the end of html input field?

A <form> element is a block element.

You can use CSS to make text float around it:

 <form style="display:inline;"><label>Label <input/></label></form>

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
clita kasd gubergren, 
<form style="display:inline;"><label>Label <input/></label></form>
sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum dolor sit amet.

<form> is a block level element by default (things go below it). You could say something like '<form style='display:inline'> and that would help. Or you could float them left like:

<form style='float:left'>Label <input type="text" size="10"></form>
<div style='float:left'>More stuff</div>

Tags:

Html