HTML Concepts for beginners
This project is maintained by pushdev-code

<form> element formally defines a form and attributes that determine the form’s behavior.<button>, <input type="submit">, or <input type="image"> element. <form action="">
<!--form content-->
</form>
Some tips:
<label> element is the formal way to define a label for an HTML form widget.<label for="name">
Name: <input type="text" id="name" name="user_name">
<abbr title="required" aria-label="required">*</abbr>
</label>
<input> tag types.required attribute in the <input> tag.
<input> tag to the <label> tag.
<label for="name">
Name: <input type="text" id="name" name="user_name">
</label>
<fieldset> element is a convenient way to create groups of widgets that share the same purpose (styling and semantic).<fieldset> by including a <legend> element.<fieldset>
<legend>Choose your city:</legend>
<select id="city">
<option value="Tunja">Tunja</option>
<option value="Bogota">Bogota</option>
<option value="Cali">Cali</option>
<option value="Bucaramanga">Bucaramanga</option>
<option value="Medellin">Medellin</option>
<option value="Pasto">Pasto</option>
</select>
</fieldset>
<fieldset>
<legend>Choose your bootcamp:</legend>
<input id="basic" type="radio" name="bootcamp" value="basic">
<label for="basic">Basic web development</label>
<input id="advanced" type="radio" name="bootcamp" value="advanced">
<label for="advanced">Advanced web development</label>
</fieldset>
There are two different types of client-side validation that you’ll encounter on the web:
<form>
<label for="number">How old are you?</label>
<input type="number" id="number" name="amount" value="1" min="1" max="100">
<label for="t2">What's your favorite sport<abbr title="This field is mandatory" aria-label="required">*</abbr></label>
<input type="text" id="t2" name="sport" list="l2" required pattern="[Ss]occer|[Bb]asketball|[Hh]ockey|[Tt]ennis|[Vv]olleyball">
<datalist id="l1">
<option>Soccer</option>
<option>Basketball</option>
<option>Hockey</option>
<option>Tennis</option>
<option>Volleyball</option>
</datalist>
<p>
<label for="t3">Leave your personal description</label>
<textarea id="t3" name="msg" maxlength="100" rows="5"></textarea>
</p>
</form>
Other validations:
Let’s see the difference: Form validation
<button> element also accepts a type attribute — this accepts one of three values: submit, reset, or button. <button type="submit">Validate the payment</button>
<button type="reset">Reset</button>

submit button. Semantics usually become important, so it’s a good idea to make a habit of specifying the type.<form>
<button>I will submit the form when clicked!</button>
</form>
//vs
<form>
<button type='button'>I won't!</button>
</form>
4-forms-validations folder create a file named form.html.