HTML — HTML Forms
Forms allow users to input data. Use the <form>
tag with elements like <input>
, <textarea>
, <label>
, and <button>
to build a form.
<form>
<label for=\"name\">Name:</label>
<input type=\"text\" id=\"name\" name=\"name\" />
<br />
<label for=\"message\">Message:</label>
<textarea id=\"message\" name=\"message\"></textarea>
<br />
<button type=\"submit\">Submit</button>
</form>