title: How to insert a line break with javascript?
body: <p>The Submit Form I have has the name, email, and phone number fields. Of course, I want to insert line break between the three. I tried to insert a line break between all three, but only generated one at the end of the form, when my code should appended 3 line breaks, not one.</p>
  
  <p>The generated view source shows this:</p>
  
  <pre><code>&lt;label&gt;Name: &lt;/label&gt;&lt;input required="" name="fullName" type="text"&gt;&lt;label&gt;Email: &lt;/label&gt;   &lt;input required="" name="email" type="text"&gt;&lt;label&gt;Phone Number: &lt;/label&gt;&lt;input required="" name="phoneNumber" type="text"&gt;&lt;br&gt;&lt;input value="Submit Query" type="submit"&gt;&lt;/form&gt;
  </code></pre>
  
  <p>My Javascript Code to produce this form:</p>
  
  <pre><code>function queryForm()
  {
      var queryBox = document.getElementById("queryBox").style.display = "block";
      var queryForm = document.getElementById("queryForm");
      var linebreak = document.createElement("br");
  
      var lblName = document.createElement("label");
      lblName.textContent = "Name: ";
      queryForm.appendChild(lblName);
  
      var fullName = document.createElement("input");
      fullName.name = "fullName";
      fullName.type = "text";
      fullName.required = "required";
      queryForm.appendChild(fullName);
      queryForm.appendChild(linebreak);
  
  
      var lblEmail = document.createElement("label");
      lblEmail.textContent = "Email: ";
      queryForm.appendChild(linebreak);
      queryForm.appendChild(lblEmail);
  
      var email = document.createElement("input");
      email.name = "email";
      email.type = "text";
      email.required = "required";
      queryForm.appendChild(email);
  
  
      var lblPhoneNumber = document.createElement("label");
      lblPhoneNumber.textContent = "Phone Number: ";
      queryForm.appendChild(linebreak);
      queryForm.appendChild(lblPhoneNumber);
  
      var phoneNumber = document.createElement("input");
      phoneNumber.name = "phoneNumber";
      phoneNumber.type = "text";
      phoneNumber.required = "required";
      queryForm.appendChild(phoneNumber);
  
  
      var submitQuery = document.createElement("input");
      submitQuery.type = "submit";
      submitQuery.value = "Submit Query";
      queryForm.appendChild(linebreak);
      queryForm.appendChild(submitQuery);
  }
  </code></pre>