without use br tag write a vertically aligned form...
Created on: October 14, 2025
Answered using GPT-5 Thinking by Chat01
Created on: October 14, 2025
Answered using GPT-5 Thinking by Chat01
without use br tag write a vertically aligned form asking name, city and pin code
Here’s a simple vertical form (no <br>
tags):
html<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Vertical Form</title> <style> form { max-width: 360px; display: flex; flex-direction: column; gap: 12px; font-family: system-ui, Arial, sans-serif; } label { display: flex; flex-direction: column; font-weight: 600; } input { padding: 8px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; } button { padding: 10px 14px; font-size: 1rem; border: 0; border-radius: 4px; cursor: pointer; } </style> </head> <body> <form action="#" method="post" novalidate> <label for="name">Name <input id="name" name="name" type="text" autocomplete="name" required /> </label> <label for="city">City <input id="city" name="city" type="text" autocomplete="address-level2" required /> </label> <label for="pin">PIN Code <input id="pin" name="pin" type="text" inputmode="numeric" pattern="\\d{6}" placeholder="6-digit code" aria-describedby="pinHelp" required /> </label> <button type="submit">Submit</button> </form> </body> </html>
Tip: Remove the pattern="\\d{6}"
if your PIN/ZIP format isn’t 6 digits.
only html
html<form action="#" method="post"> <div> <label for="name">Name</label> </div> <div> <input id="name" name="name" type="text" autocomplete="name" required> </div> <div> <label for="city">City</label> </div> <div> <input id="city" name="city" type="text" autocomplete="address-level2" required> </div> <div> <label for="pin">PIN Code</label> </div> <div> <input id="pin" name="pin" type="text" inputmode="numeric" pattern="\d{6}" placeholder="6-digit code" required> </div> <div> <button type="submit">Submit</button> </div> </form>