Text and inputs on the same line

-1

I need to put text, an input-text, another text and another input text in the same row (row) in html. I can not find a way.

Can anyone help me?

    
asked by anonymous 07.11.2017 / 18:18

2 answers

2

You can put a label in front of your input, thus:

<label>Nome: </label><input type="text" name="nome">
<label>Email: </label><input type="text" name="email">

If you want to put one input below another, you put a br to break the line.

    
07.11.2017 / 18:29
2

with a simple CSS

#inline {
    display: inline;
}
<div id="inline">
   um texto <input type="text" placeholder="um input"/>
   outro texto <input type="text" placeholder="outro input"/>
</div>
    
07.11.2017 / 20:09