Comment

Comment by hpaavola

By default the form builder gives you HTML like this:

    <form class="form-container">
    <div class="form-title"><h2>Sign up</h2></div>
    <div class="form-title">Name</div>
    <input class="form-field" type="text" name="firstname" /><br />
    <div class="form-title">Email</div>
    <input class="form-field" type="text" name="email" /><br />
    <div class="submit-container">
    <input class="submit-button" type="submit" value="Submit" />
    </div>
    </form>
Why wrap the h2 in div? Why labels are divs? Why the button is wrapped in div? Br elements?
parent hpaavola 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton