I am very new to HTML and hesitate before posting this question, because it very simple looking problem, but I am not getting good answer after Googling.
So following is my simple form code, I wanted to keep both the form input elements in different line. Problem is I literally need to use hardcoded 250px width to div, so that element will code in different lines.
How do I improve my code so it will be portable across different browsers and screens?
Secondly, distance between all the lines in very less, they are actually collapsing on each other. How to give more vertical space to elements?
<form id="frm"> <div style="width: 250px;"> <label>Name </label> <input type="text" required="required" /> <label>Email</label> <input type="text" placeholder="[email protected]" /> <input type="submit" value="submit" /> </div> </form>