I am struggling to format my text fields the way I envision. Here's what I want: - Username field at the top - First and last name underneath each other - Password and confirm password next to each other below names
As a newcomer to HTML, I'm finding it challenging to structure it the way I desire. Not sure whether to use div, section, etc.
In addition, I would like everything to be centered instead of aligned to the left. I also want to include an image below all the text fields with an "add child" button underneath it.
Below is the code snippet:
<form>
<label for="contact">
<span>USERNAME *</span>
<input type="text" id="contact" />
</label>
</form>
<form>
<div>
<label for="company">
<span>FIRST NAME *</span>
<input type="text" id="company" />
</label>
<label for="contact">
<span>LAST NAME *</span>
<input type="text" id="contact" />
</label>
<label for="contact">
<span>PASSWORD *</span>
<input type="text" id="contact" />
</label>
<label for="contact">
<span>CONFIRM PASSWORD *</span>
<input type="text" id="contact" />
</label>
</div>
</form>