Utvikling · verktøy

Gratis HTML-skjemabygger

Skriv ett felt per linje som etikett | type | obligatorisk eller valgfritt, og bygg deretter HTML-koden.

Kjøres i nettleseren. Ingen opplasting.

Generate front-end HTML only. This does not host a form or collect responses.

Enter 1–60 valid field lines using the shown format.

Om verktøyet

Gratis HTML-skjemabygger sem complicação.

Dette lager bare grensesnittoppmerking. Det drifter ikke skjemaet, samler ikke inn svar, validerer ikke et eksternt endepunkt og sender ikke inn brukerdata. Konfigurer og test håndtering på serveren før skjemaet brukes i produksjon.

Veiledning

Slik bruker du Gratis HTML-skjemabygger

HTML Form Builder turns a short list of fields into plain, labelled HTML form code that you can copy or download. You write one field per line, press a button, and see a preview and the markup. It only makes front-end code. It does not host the form, store replies, send email or check anything on a server.

Slik gjør du

  1. In the big box, write one field per line in this shape: label | type | required or optional. The type can be text, email, number, date or textarea. If you leave out the last two parts, the field is optional text.
  2. Change the Submit button label if you want another word on the button. Press Build form HTML. The preview appears and the code shows in the output box.
  3. Press Copy HTML to put the code on your clipboard, or Download HTML to save a small page called usefulverse-form.html. Both buttons rebuild the form first.
  4. Paste the code into your own page, then add an action address and server-side handling yourself. The code only says method post and has no address to send to.

Eksempler

The default three fields

Du skriver inn
Linjer
Name | text | required Email | email | required Message | textarea | optional
Knapp
Send
Du får
HTML
<form method="post"> <div> <label for="name">Name</label> <input id="name" name="name" type="text" required> </div> <div> <label for="email">Email</label> <input id="email" name="email" type="email" required> </div> <div> <label for="message">Message</label> <textarea id="message" name="message"></textarea> </div> <button type="submit">Submit</button> </form>

Each line becomes a div with a label tied to its control by matching for and id values. The id and name come from the label in lower case. Only the two lines marked required get the required attribute.

Kjørt med verktøyets egen kode.

Repeated labels and special characters

Du skriver inn
Linjer
Age | number | required Birth date | date Age | text | optional Café & Co | text
Knapp
Send
Du får
ID-er
age, birth-date, age-2, cafe-co
Etikett for siste felt
Café &amp; Co
Knapp
Send

A line with only a label becomes an optional text field, or keeps the type you give it. A second Age gets the id age-2 so that ids stay unique. Accents are removed from ids and an ampersand in the visible label is escaped.

Kjørt med verktøyets egen kode.

An unsupported type

Du skriver inn
Linjer
Phone | tel | required
Du får
Status
Enter 1–60 valid field lines using the shown format.
HTML-utdata
empty

Only text, email, number, date and textarea are accepted, and the requirement word must be required or optional. A line that breaks these rules clears the output and the preview.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Make a quick contact or sign-up form to paste into a static page.
  • Draft the markup for a prototype before you style it with your own CSS.
  • Show a beginner how a label, an id and a control fit together.
  • Start a form for a classroom or tutorial and then extend it by hand.

Begrensninger

  • Only five field types exist: text, email, number, date and textarea. There are no selects, checkboxes, radio buttons, file uploads or groups.
  • You can enter 1 to 60 fields, up to 12,000 characters in total, and each label can be up to 100 characters. The button label can be up to 100 characters.
  • The form has no action address, no spam protection and no validation messages beyond the browser's own. Add your own server-side handling and testing.
  • The preview controls are switched off, and submitting the preview does nothing.
  • Labels in scripts without Latin letters get ids such as field-1, because ids are built from plain Latin letters and digits.

Tips

  • Use clear, short labels. They become both what the visitor reads and the base for the id and name values.
  • Add autocomplete, patterns or length limits by hand after you paste the code, since the tool does not write them.
  • Test the finished form with a keyboard and a screen reader or at least with the Tab key, to confirm every label reads out with its control.

Kilder

Vanlige spørsmål

Sobre Gratis HTML-skjemabygger.

Does this tool collect or send form replies?

No. It only writes markup. There is no server behind it, and nothing you type is sent anywhere by the tool. To receive replies you need your own address that accepts the post, and you must build and test that part yourself.

What does the line format mean?

Each line holds up to three parts split by a vertical bar: the visible label, the field type and the word required or optional. The type defaults to text and the requirement to optional when you leave them out. A fourth part makes the line invalid.

Which field types can I use?

Text, email, number, date and textarea. Anything else, such as tel, password or checkbox, is rejected. If you need those types, take the generated code and edit it by hand, using the MDN input page as a guide.

How are the id and name values chosen?

They come from the label: accents are removed, letters are lower-cased and any run of other characters becomes a hyphen. A repeated name gets -2, -3 and so on. If nothing usable is left, the tool uses field-1, field-2 and so on.

Is the generated form accessible?

Each control has a visible label linked with for and id, which is a basic need for accessibility. That is only a start. You still have to check contrast, error messages, focus order and the wording of your labels in your own page.

Why does the form say method post with no action?

The tool has no knowledge of your server. A form without an action sends its data to the page's own address, which usually does nothing on a static page. Add the right action address and handler before you use it.

What does Download HTML give me?

A small file named usefulverse-form.html. It starts with a doctype, a UTF-8 charset line and the title Form, followed by your form code. It is meant for a quick test, not as a finished page.

Hvordan bruker du HTML-skjemabygger?

Skriv ett felt per linje som etikett | type | obligatorisk eller valgfritt, og bygg deretter HTML-koden.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.