HTML and CSS Lessson 12

Create the Form page

Lesson 11

Notes:

HTML Notes:

<form> tag:

  • The <form> tag is used to create an HTML form for user input.

<fieldset> tag:

  • The <fieldset> tag is used to group related elements in a form.
  • Its draws a box around the related elements.

<legend> tag:

  • The <legend> tag defines a caption for the <fieldset> element.

<input> tag:

  • The <input> specifies an input field where the user can enter data.
  • Its can vary in many ways, depending on the type attribute.

<label> tag:

  • The <label> tag defines a label for an <input> element.
  • When you use it alone (without input), it will be a normal inline text.

<select> tag:

  • The <select> element is used to create a drop-down list.

<optgroup> tag:

  • The <optgroup> is used to group related options in a drop-down list.

<option> tag:

  • The <option> tag defines an option in a select list.

<output> tag:

  • The <output> tag represents the result of a calculation.

<textarea> tag:

  • The <textarea> tag defines a multi-line text input control.

<button> tag:

  • The <button> tag defines a clickable button.