My form has a simple structure like this:
<form method="post" action="/registration">
<label for="alias">Alias:</label>
<input type="text" name="alias" id="alias">
<br>
<label for="email">E-mail:</label>
<input type="text" name="email" id="email">
<br>
<input type="button" value="register">
</form>
The functionality works well, but it has come to my attention that <br>
should not be utilized for spacing as it is intended for text only.
If I eliminate the <br>
, all content will render on one line, which is not desired.
What is the proper and most efficient way to present name-input pairs in a form using CSS, similar to this format:
Alias: [__field__]
E-mail: [__field__]
[SUBMIT BUTTON]