Javascript checkboxes vertically

Hey, my problem is the following I created some checkboxes using data from an user input using appendChild and createElement with javascript but they display horizontally like in a line and I want them to display vertically like a list, how do I do so?

You could use an unordered list and use CSS to make the bullet style none:

ul {
    list-style-type:none;
}

Then, you would nest each checkbox in an li element.

<ul>
    <li><input type="checkbox"> checkbox 1</li>
    <li><input type="checkbox"> checkbox 2</li>
    <li><input type="checkbox"> checkbox 3</li>
 <ul>