diff --git a/common/scaffolding/forms.html b/common/scaffolding/forms.html index 0e6b9f7b0..ae8afab6b 100644 --- a/common/scaffolding/forms.html +++ b/common/scaffolding/forms.html @@ -17,15 +17,15 @@
form
element<form></form>
+<form></form>
label
element<form>
- <label>This is a label</label>
-</form>
+<form>
+ <label>This is a label</label>
+</form>
input
element<form>
- <label>Label: <input></label>
-</form>
+ <form>
+ <label>Label: <input></label>
+</form>
<form>
- <label for="input">Label: </label><input id="input">
-</form>
+ <form>
+ <label for="input">Label: </label><input id="input">
+</form>
type=hidden
)<form>
- <input type="hidden">
-</form>
+<form>
+ <input type="hidden">
+</form>
type=text
) state<form>
- <label>Label: <input type="text"></label>
-</form>
+ <form>
+ <label>Label: <input type="text"></label>
+</form>
<form>
- <label for="input-text">Label: </label><input id="input-text" type="text">
-</form>
+ <form>
+ <label for="input-text">Label: </label><input id="input-text" type="text">
+</form>
inputmode=text
)<form>
- <label>Label: <input type="text" inputmode="text"></label>
-</form>
+<form>
+ <label>Label: <input type="text" inputmode="text"></label>
+</form>
inputmode=none
)<form>
- <label>Label: <input type="text" inputmode="none"></label>
-</form>
+<form>
+ <label>Label: <input type="text" inputmode="none"></label>
+</form>
type=search
)<form>
- <label>Label: <input type="search"></label>
-</form>
+ <form>
+ <label>Label: <input type="search"></label>
+</form>
<form>
- <label for="input-search">Label: </label><input id="input-search" type="search">
-</form>
+ <form>
+ <label for="input-search">Label: </label><input id="input-search" type="search">
+</form>
inputmode=search
)<form>
- <label>Label: <input type="search" inputmode="search"></label>
-</form>
+<form>
+ <label>Label: <input type="search" inputmode="search"></label>
+</form>
type=tel
)<form>
- <label>Label: <input type="tel"></label>
-</form>
+ <form>
+ <label>Label: <input type="tel"></label>
+</form>
<form>
- <label for="input-tel">Label: </label><input id="input-tel" type="tel">
-</form>
+ <form>
+ <label for="input-tel">Label: </label><input id="input-tel" type="tel">
+</form>
inputmode=tel
)<form>
- <label>Label: <input type="tel" inputmode="tel"></label>
-</form>
+<form>
+ <label>Label: <input type="tel" inputmode="tel"></label>
+</form>
type=url
)<form>
- <label>Label: <input type="url"></label>
-</form>
+ <form>
+ <label>Label: <input type="url"></label>
+</form>
<form>
- <label for="input-url">Label: </label><input id="input-url" type="url">
-</form>
+ <form>
+ <label for="input-url">Label: </label><input id="input-url" type="url">
+</form>
inputmode=url
)<form>
- <label>Label: <input type="url" inputmode="url"></label>
-</form>
+<form>
+ <label>Label: <input type="url" inputmode="url"></label>
+</form>
type=email
)<form>
- <label>Label: <input type="email"></label>
-</form>
+ <form>
+ <label>Label: <input type="email"></label>
+</form>
<form>
- <label for="input-email">Label: </label><input id="input-email" type="email">
-</form>
+ <form>
+ <label for="input-email">Label: </label><input id="input-email" type="email">
+</form>
inputmode=email
)<form>
- <label>Label: <input type="email" inputmode="email"></label>
-</form>
+<form>
+ <label>Label: <input type="email" inputmode="email"></label>
+</form>
type=password
)<form>
- <label>Label: <input type="password"></label>
-</form>
+ <form>
+ <label>Label: <input type="password"></label>
+</form>
<form>
- <label for="input-password">Label: </label><input id="input-password" type="password">
-</form>
+ <form>
+ <label for="input-password">Label: </label><input id="input-password" type="password">
+</form>
<form>
- <label>Label: <input type="date"></label>
-</form>
+ <form>
+ <label>Label: <input type="date"></label>
+</form>
<form>
- <label for="input-date">Label: </label><input id="input-date" type="date">
-</form>
+ <form>
+ <label for="input-date">Label: </label><input id="input-date" type="date">
+</form>
<form>
- <label>Label: <input type="month"></label>
-</form>
+ <form><label>Label: <input type="month"></label>
+</form>
<form>
- <label for="input-month">Label: </label><input id="input-month" type="month">
-</form>
+ <form><label for="input-month">Label: </label><input id="input-month" type="month">
+</form>
<form>
- <label>Label: <input type="week"></label>
-</form>
+ <form>
+ <label>Label: <input type="week"></label>
+</form>
<form>
- <label for="input-week">Label: </label><input id="input-week" type="week">
-</form>
+ <form><label for="input-week">Label: </label><input id="input-week" type="week">
+</form>
<form>
- <label>Label: <input type="time"></label>
-</form>
+ <form>
+ <label>Label: <input type="time"></label>
+</form>
<form>
- <label for="input-time">Label: </label><input id="input-time" type="time">
-</form>
+
+ <form>
+ <label for="input-time">Label: </label><input id="input-time" type="time">
+</form>
+
<form>
- <label>Label: <input type="datetime-local"></label>
-</form>
+ <form>
+ <label>Label: <input type="datetime-local"></label>
+</form>
+
<form>
- <label for="input-datetime-local">Label: </label><input id="input-datetime-local" type="datetime-local">
-</form>
+ <form>
+ <label for="input-datetime-local">Label: </label><input id="input-datetime-local" type="datetime-local">
+</form>
<form>
- <label>Label: <input type="number"></label>
-</form>
+ <form>
+ <label>Label: <input type="number"></label>
+</form>
<form>
- <label for="input-number">Label: </label><input id="input-number" type="number">
-</form>
+ <form>
+ <label for="input-number">Label: </label><input id="input-number" type="number">
+</form>
inputmode=numeric
)<form>
- <label>Label: <input type="number" inputmode="numeric"></label>
-</form>
+<form>
+ <label>Label: <input type="number" inputmode="numeric"></label>
+</form>
inputmode=decimal
)<form>
- <label>Label: <input type="number" inputmode="decimal"></label>
-</form>
+<form>
+ <label>Label: <input type="number" inputmode="decimal"></label>
+</form>
type=range
)<form>
- <label>Label: <input type="range"></label>
-</form>
+ <form>
+ <label>Label: <input type="range"></label>
+</form>
<form>
- <label for="input-range">Label: </label><input id="input-range" type="range">
-</form>
+ <form>
+ <label for="input-range">Label: </label><input id="input-range" type="range">
+</form>
<form>
- <label>Label: <input type="color"></label>
-</form>
+ <form>
+ <label>Label: <input type="color"></label>
+</form>
<form>
- <label for="input-color">Label: </label><input id="input-color" type="color">
-</form>
+ <form>
+ <label for="input-color">Label: </label><input id="input-color" type="color">
+</form>
<form>
- <p><label>(single) Label: <input type="checkbox"></label>
+ <form>
+ <p><label>(single) Label: <input type="checkbox"></label>
<p>
- <label>(multiple) Label 1: <input type="checkbox" name="input-checkbox-implicit"></label>
- <label>(multiple) Label 2: <input type="checkbox" name="input-checkbox-implicit"></label>
- <label>(multiple) Label 3: <input type="checkbox" name="input-checkbox-implicit"></label>
+ <label>(multiple) Label 1: <input type="checkbox" name="input-checkbox-implicit"></label>
+ <label>(multiple) Label 2: <input type="checkbox" name="input-checkbox-implicit"></label>
+ <label>(multiple) Label 3: <input type="checkbox" name="input-checkbox-implicit"></label>
<p>
- <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 1</label>
- <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 2</label>
- <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 3</label>
-</form>
+ <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 1</label>
+ <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 2</label>
+ <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 3</label>
+</form>
<form>
- <p><label for="input-checkbox">(single) Label: </label><input id="input-checkbox" type="checkbox">
+ <form>
+ <p><label for="input-checkbox">(single) Label: </label><input id="input-checkbox" type="checkbox">
<p>
- <label for="input-checkbox-a1">(multiple) Label 1: </label><input id="input-checkbox-a1" type="checkbox" name="input-checkbox-explicit">
- <label for="input-checkbox-a2">(multiple) Label 2: </label><input id="input-checkbox-a2" type="checkbox" name="input-checkbox-explicit">
- <label for="input-checkbox-a3">(multiple) Label 3: </label><input id="input-checkbox-a3" type="checkbox" name="input-checkbox-explicit">
+ <label for="input-checkbox-a1">(multiple) Label 1: </label><input id="input-checkbox-a1" type="checkbox" name="input-checkbox-explicit">
+ <label for="input-checkbox-a2">(multiple) Label 2: </label><input id="input-checkbox-a2" type="checkbox" name="input-checkbox-explicit">
+ <label for="input-checkbox-a3">(multiple) Label 3: </label><input id="input-checkbox-a3" type="checkbox" name="input-checkbox-explicit">
<p>
- <input id="input-checkbox-b1" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b1"> (multiple) Label after 1</label>
- <input id="input-checkbox-b2" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b2"> (multiple) Label after 2</label>
- <input id="input-checkbox-b3" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b3"> (multiple) Label after 3</label>
-</form>
+ <input id="input-checkbox-b1" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b1"> (multiple) Label after 1</label>
+ <input id="input-checkbox-b2" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b2"> (multiple) Label after 2</label>
+ <input id="input-checkbox-b3" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b3"> (multiple) Label after 3</label>
+</form>
<form>
- <label>(single) Label: <input type="radio"></label>
- <p>
- <label>(multiple) Label 1: <input type="radio" name="input-radio-implicit"></label>
- <label>(multiple) Label 2: <input type="radio" name="input-radio-implicit"></label>
- <label>(multiple) Label 3: <input type="radio" name="input-radio-implicit"></label>
- <p>
- <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 1</label>
- <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 2</label>
- <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 3</label>
-</form>
+ <form>
+ <label>(single) Label: <input type="radio"></label>
+ <p>
+ <label>(multiple) Label 1: <input type="radio" name="input-radio-implicit"></label>
+ <label>(multiple) Label 2: <input type="radio" name="input-radio-implicit"></label>
+ <label>(multiple) Label 3: <input type="radio" name="input-radio-implicit"></label>
+ <p>
+ <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 1</label>
+ <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 2</label>
+ <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 3</label>
+</form>
<form>
- <label for="input-radio">(single) Label: </label><input id="input-radio" type="radio">
+ <form>
+ <label for="input-radio">(single) Label: </label><input id="input-radio" type="radio">
<p>
- <label for="input-radio-a1">(multiple) Label 1: </label><input id="input-radio-a1" type="radio" name="input-radio-explicit">
- <label for="input-radio-a2">(multiple) Label 2: </label><input id="input-radio-a2" type="radio" name="input-radio-explicit">
- <label for="input-radio-a3">(multiple) Label 3: </label><input id="input-radio-a3" type="radio" name="input-radio-explicit">
- <p>
- <input id="input-radio-b1" type="radio" name="input-radio-explicit"><label for="input-radio-b1"> (multiple) Label after 1</label>
- <input id="input-radio-b2" type="radio" name="input-radio-explicit"><label for="input-radio-b2"> (multiple) Label after 2</label>
- <input id="input-radio-b3" type="radio" name="input-radio-explicit"><label for="input-radio-b3"> (multiple) Label after 3</label>
-</form>
+ <label for="input-radio-a1">(multiple) Label 1: </label><input id="input-radio-a1" type="radio" name="input-radio-explicit">
+ <label for="input-radio-a2">(multiple) Label 2: </label><input id="input-radio-a2" type="radio" name="input-radio-explicit">
+ <label for="input-radio-a3">(multiple) Label 3: </label><input id="input-radio-a3" type="radio" name="input-radio-explicit">
+ <p>
+ <input id="input-radio-b1" type="radio" name="input-radio-explicit"><label for="input-radio-b1"> (multiple) Label after 1</label>
+ <input id="input-radio-b2" type="radio" name="input-radio-explicit"><label for="input-radio-b2"> (multiple) Label after 2</label>
+ <input id="input-radio-b3" type="radio" name="input-radio-explicit"><label for="input-radio-b3"> (multiple) Label after 3</label>
+</form>
<form>
- <label>Label: <input type="file"></label>
-</form>
+ <form>
+ <label>Label: <input type="file"></label>
+</form>
<form>
- <label for="input-file">Label: </label><input id="input-file" type="file">
-</form>
+ <form>
+ <label for="input-file">Label: </label><input id="input-file" type="file">
+</form>
type=submit
)<form>
- <input type="submit">
-</form>
-<form>
- <input type="submit" value="Submit">
-</form>
+<form>
+ <input type="submit">
+</form>
+<form>
+ <input type="submit" value="Submit">
+</form>
type=image
)Note: It will submit the coordinate of the mouse click on the image. @@ -570,17 +570,17 @@
<form>
- <label>Label: <input type="image" src="img/input-image-sample.jpg" alt="Implicit image input type example"></label>
-</form>
+<form>
+ <label>Label: <input type="image" src="img/input-image-sample.jpg" alt="Implicit image input type example"></label>
+</form>
<form>
- <label for="input-image">Label: </label><input id="input-image" type="image" src="img/input-image-sample.jpg" alt="Explicit image input type example">
-</form>
+<form>
+ <label for="input-image">Label: </label><input id="input-image" type="image" src="img/input-image-sample.jpg" alt="Explicit image input type example">
+</form>
type=reset
)type=reset
)<form>s
- <label>Label: <input type="text" value="This is a value"></label>
+<form>s
+ <label>Label: <input type="text" value="This is a value"></label>
<input type="reset">
-</form>
-<form>
- <label>Label: <input type="text" value="This is a value"></label>
- <input type="reset" value="Reset">
-</form>
+</form>
+<form>
+ <label>Label: <input type="text" value="This is a value"></label>
+ <input type="reset" value="Reset">
+</form>
type=button
)<form>
- <input type="button" value="Button">
-</form>
+<form>
+ <input type="button" value="Button">
+</form>
value
attribute<form>
- <label>Label: <input type="text" value="This is a value"></label>
-</form>
+<form>
+ <label>Label: <input type="text" value="This is a value"></label>
+</form>
readonly
attribute<form>
- <label>Label: <input readonly value="this is a value"></label>
-</form>
+<form>
+ <label>Label: <input readonly value="this is a value"></label>
+</form>
disabled
attribute<form>
- <label>Label: <input disabled value="this is a value"></label>
-</form>
+<form>
+ <label>Label: <input disabled value="this is a value"></label>
+</form>
placeholder
attribute<form>
- <p><label>Description: <input type="text" name="desc" placeholder="My Email Account"></label></p>
-</form>
+<form>
+ <p><label>Description: <input type="text" name="desc" placeholder="My Email Account"></label></p>
+</form>
required
attribute<form>
- <label>Label: <input required></label>
- <input type="submit">
-</form>
+<form>
+ <label>Label: <input required></label>
+ <input type="submit">
+</form>
multiple
attribute<form>
- <label>To: <input type=email multiple name=to></label>
-</form>
-<form>
- <label>Attachments: <input type=file multiple name=att></label>
-</form>
+<form>
+ <label>To: <input type=email multiple name=to></label>
+</form>
+<form>
+ <label>Attachments: <input type=file multiple name=att></label>
+</form>
pattern
attribute<form>
- <label> Part number:
+<form>
+ <label> Part number:
<input pattern="[0-9][A-Z]{3}" name="part"
- title="A part number is a digit followed by three uppercase letters."/>
-</label>
-<input type="submit">
-</form>
+ title="A part number is a digit followed by three uppercase letters."/>
+</label>
+<input type="submit">
+</form>
maxlength
and minlength
attributes<form>
- <p><label>What are you doing? <input name=status maxlength=25></label>
- <p><label>Username: <input name=u required></label>
- <p><label>Password: <input name=p required minlength=12></label>
-</form>
+<form>
+ <p><label>What are you doing? <input name=status maxlength=25></label>
+ <p><label>Username: <input name=u required></label>
+ <p><label>Password: <input name=p required minlength=12></label>
+</form>
size
attribute<form>
- <label>Size <input size=50></label>
-</form>
+<form>
+ <label>Size <input size=50></label>
+</form>
min
and max
attributes<form>
- <label>Quantity <input name=quantity required="" type="number" min="1" max="10" value="1"></label>
-</form>
+<form>
+ <label>Quantity <input name=quantity required="" type="number" min="1" max="10" value="1"></label>
+</form>
step
attribute<form>
- <label>Sleep start <input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></label>
-</form>
-<form>
- <label>Opacity (256 steps) <input name=opacity type=range min=0 max=1 step=0.00392156863></label>
-</form>
-<form>
- <label>Favority time (any steps) <input name=favtime type=time step=any></label>
-</form>
+<form>
+ <label>Sleep start <input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></label>
+</form>
+<form>
+ <label>Opacity (256 steps) <input name=opacity type=range min=0 max=1 step=0.00392156863></label>
+</form>
+<form>
+ <label>Favority time (any steps) <input name=favtime type=time step=any></label>
+</form>
list
attributelist
attribute<form>
- <label>Function types <input type="text" list="function-types"></label>
- <datalist id="function-types">
- <option value="function">function</option>
- <option value="async function">async function</option>
- <option value="function*">generator function</option>
- <option value="=>">arrow function</option>
- <option value="async =>">async arrow function</option>
- <option value="async function*">async generator function</option>
- </datalist>
-</form>
+<form>
+ <label>Function types <input type="text" list="function-types"></label>
+ <datalist id="function-types">
+ <option value="function">function</option>
+ <option value="async function">async function</option>
+ <option value="function*">generator function</option>
+ <option value="=>">arrow function</option>
+ <option value="async =>">async arrow function</option>
+ <option value="async function*">async generator function</option>
+ </datalist>
+</form>
button
elementbutton
element<form>
- <button>Default</button>
-</form>
-<form>
- <button type="submit">Submit</button>
-</form>
-<form>
- <button type="reset">Reset</button>
-</form>
-<form>
- <button type="button">Button</button>
-</form>
-<button type="button">Button in no form</button>
+<form>
+ <button>Default</button>
+</form>
+<form>
+ <button type="submit">Submit</button>
+</form>
+<form>
+ <button type="reset">Reset</button>
+</form>
+<form>
+ <button type="button">Button</button>
+</form>
+<button type="button">Button in no form</button>
select
element<form>
-<p>
- <label for="unittype">Select unit type:</label>
- <select id="unittype" name="unittype">
- <option value="1"> Miner </option>
- <option value="2"> Puffer </option>
- <option value="3" selected> Snipey </option>
- <option value="4"> Max </option>
- <option value="5"> Firebot </option>
- </select>
-</p>
-</form>
+<form>
+<p>
+ <label for="unittype">Select unit type:</label>
+ <select id="unittype" name="unittype">
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3" selected> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+ </select>
+</p>
+</form>
<form>
-<p>
- <label>Select unit type:
- <select name="unittype">
- <option value="1"> Miner </option>
- <option value="2"> Puffer </option>
- <option value="3" selected> Snipey </option>
- <option value="4"> Max </option>
- <option value="5"> Firebot </option>
- </select>
- </label>
-</p>
-</form>
+<form>
+<p>
+ <label>Select unit type:
+ <select name="unittype">
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3" selected> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+ </select>
+ </label>
+</p>
+</form>
<form>
-<p>
- <label for="unittypeplaceholder">Select unit type:</label>
- <select id="unittypeplaceholder" name="unittypeplaceholder" required>
- <option value=""> Select unit type </option>
- <option value="1"> Miner </option>
- <option value="2"> Puffer </option>
- <option value="3"> Snipey </option>
- <option value="4"> Max </option>
- <option value="5"> Firebot </option>
-</select>
-</p>
-</form>
+<form>
+<p>
+ <label for="unittypeplaceholder">Select unit type:</label>
+ <select id="unittypeplaceholder" name="unittypeplaceholder" required>
+ <option value=""> Select unit type </option>
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3"> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+</select>
+</p>
+</form>
<form>
-<p>
- <label for="allowedunits">Select unit types to enable on this map:</label>
- <select id="allowedunits" name="allowedunits" multiple>
- <option value="1" selected> Miner </option>
- <option value="2" selected> Puffer </option>
- <option value="3" selected> Snipey </option>
- <option value="4" selected> Max </option>
- <option value="5" selected> Firebot </option>
- </select>
-</p>
-</form>
+<form>
+<p>
+ <label for="allowedunits">Select unit types to enable on this map:</label>
+ <select id="allowedunits" name="allowedunits" multiple>
+ <option value="1" selected> Miner </option>
+ <option value="2" selected> Puffer </option>
+ <option value="3" selected> Snipey </option>
+ <option value="4" selected> Max </option>
+ <option value="5" selected> Firebot </option>
+ </select>
+</p>
+</form>
optgroup
)optgroup
)<form>
- <p><label>Course:
- <select name="c">
- <optgroup label="8.01 Physics I: Classical Mechanics">
- <option value="8.01.1">Lecture 01: Powers of Ten
- <option value="8.01.2">Lecture 02: 1D Kinematics
- <option value="8.01.3">Lecture 03: Vectors
- <optgroup label="8.02 Electricity and Magnetism">
- <option value="8.02.1">Lecture 01: What holds our world together?
- <option value="8.02.2">Lecture 02: Electric Field
- <option value="8.02.3">Lecture 03: Electric Flux
- <optgroup label="8.03 Physics III: Vibrations and Waves">
- <option value="8.03.1">Lecture 01: Periodic Phenomenon
- <option value="8.03.2">Lecture 02: Beats
- <option value="8.03.3">Lecture 03: Forced Oscillations with Damping
- </select>
- </label>
-</form>
+<form>
+ <p><label>Course:
+ <select name="c">
+ <optgroup label="8.01 Physics I: Classical Mechanics">
+ <option value="8.01.1">Lecture 01: Powers of Ten
+ <option value="8.01.2">Lecture 02: 1D Kinematics
+ <option value="8.01.3">Lecture 03: Vectors
+ <optgroup label="8.02 Electricity and Magnetism">
+ <option value="8.02.1">Lecture 01: What holds our world together?
+ <option value="8.02.2">Lecture 02: Electric Field
+ <option value="8.02.3">Lecture 03: Electric Flux
+ <optgroup label="8.03 Physics III: Vibrations and Waves">
+ <option value="8.03.1">Lecture 01: Periodic Phenomenon
+ <option value="8.03.2">Lecture 02: Beats
+ <option value="8.03.3">Lecture 03: Forced Oscillations with Damping
+ </select>
+ </label>
+</form>
datalist
elementdatalist
element<form>
-<label>
+<form>
+<label>
Animal:
- <input name=animal list=animals>
- <datalist id=animals>
- <option value="Cat">
- <option value="Dog">
- </datalist>
-</label>
-</form>
+ <input name=animal list=animals>
+ <datalist id=animals>
+ <option value="Cat">
+ <option value="Dog">
+ </datalist>
+</label>
+</form>
textarea
element<form>
-<label>Textarea: <textarea>Dear Madam Speaker,
+<form>
+<label>Textarea: <textarea>Dear Madam Speaker,
Regarding your letter dated ...
@@ -984,9 +984,9 @@ textarea
element
Yours Sincerely,
-...</textarea>
-</label>
-</form>
+...</textarea>
+</label>
+</form>
<form>
-<label>Textarea: <textarea placeholder="Dear Francine,
+<form>
+<label>Textarea: <textarea placeholder="Dear Francine,
They closed the parks this week, so we won't be able to
meet your there. Should we just have dinner?
Love,
-Daddy"></textarea>
-</label>
-</form>
+Daddy"></textarea>
+</label>
+</form>
output
element<form>
-<output id="resultEmpty"></output>
-</form>
+<form>
+<output id="resultEmpty"></output>
+</form>
<form>
+<form>
<output id="resultNonEmpty">With a non empty result</output>
-</form>
+</form>
progress
element<p><label>Progress: <progress id=p max=100 value="30"><span>30</span>%</progress></label></p>
+<p><label>Progress: <progress id=p max=100 value="30"><span>30</span>%</progress></label></p>
<p><label>Loading: <progress></progress></label></p>
+<p><label>Loading: <progress></progress></label></p>
meter
elementmeter
element
-
<p><label>Measure 10%: <meter value="10" max="100">10 percent</meter></label>
-<p><label>Measure 60%: <meter value="60" max="100">60 percent</meter></label>
-<p><label>Low: <meter value="30" max="100" low="40" high="80">30 percent</meter></label>
-<p><label>Normal: <meter value="50" max="100" low="40" high="80">50 percent</meter></label>
-<p><label>High: <meter value="90" max="100" low="40" high="80">90 percent</meter></label>
-<p><label>Optimum value (39) is higher: <meter value="30" max="100" optimum="39">30 percent</meter></label>
-<p><label>Optimum value (39) is lower: <meter value="69" max="100" optimum="39">69 percent</meter></label>
-<p><label>Optimum value (39) is on it: <meter value="39" max="100" optimum="39">39 percent</meter></label>
-<p><label>Optimum value (default) is on it: <meter value="50" max="100">50 percent</meter></label>
-<p><label>Optimum region low: <meter value="20" max="100" low="40" high="80" optimum="30">20 percent</meter></label>
-<p><label>Optimum region normal: <meter value="50" max="100" low="40" high="80" optimum="51">50 percent</meter></label>
-<p><label>Optimum region high: <meter value="95" max="100" low="40" high="80" optimum="90">95 percent</meter></label>
+<p><label>Measure 10%: <meter value="10" max="100">10 percent</meter></label>
+<p><label>Measure 60%: <meter value="60" max="100">60 percent</meter></label>
+<p><label>Low: <meter value="30" max="100" low="40" high="80">30 percent</meter></label>
+<p><label>Normal: <meter value="50" max="100" low="40" high="80">50 percent</meter></label>
+<p><label>High: <meter value="90" max="100" low="40" high="80">90 percent</meter></label>
+<p><label>Optimum value (39) is higher: <meter value="30" max="100" optimum="39">30 percent</meter></label>
+<p><label>Optimum value (39) is lower: <meter value="69" max="100" optimum="39">69 percent</meter></label>
+<p><label>Optimum value (39) is on it: <meter value="39" max="100" optimum="39">39 percent</meter></label>
+<p><label>Optimum value (default) is on it: <meter value="50" max="100">50 percent</meter></label>
+<p><label>Optimum region low: <meter value="20" max="100" low="40" high="80" optimum="30">20 percent</meter></label>
+<p><label>Optimum region normal: <meter value="50" max="100" low="40" high="80" optimum="51">50 percent</meter></label>
+<p><label>Optimum region high: <meter value="95" max="100" low="40" high="80" optimum="90">95 percent</meter></label>
fieldset
and legend
elementfieldset
and legend
element<form>
-<fieldset>
- <legend>Display</legend>
- <p><label><input type=radio name=c value=0 checked> Black on White</label>
- <p><label><input type=radio name=c value=1> White on Black</label>
- <p><label><input type=checkbox name=g> Use grayscale</label>
- <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
- <datalist id=contrast>
- <option label=Normal value=0>
- <option label=Middle value=50>
- <option label="Middle high" value="78">
- <option label=Maximum value=100>
- </datalist>
-</fieldset>
-</form>
+<form>
+<fieldset>
+ <legend>Display</legend>
+ <p><label><input type=radio name=c value=0 checked> Black on White</label>
+ <p><label><input type=radio name=c value=1> White on Black</label>
+ <p><label><input type=checkbox name=g> Use grayscale</label>
+ <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
+ <datalist id=contrast>
+ <option label=Normal value=0>
+ <option label=Middle value=50>
+ <option label="Middle high" value="78">
+ <option label=Maximum value=100>
+ </datalist>
+</fieldset>
+</form>
<form>
-<fieldset name="clubfields" disabled>
- <legend> <label>
- <input type=checkbox name=club onchange="form.clubfields.disabled = !checked">
+<form>
+<fieldset name="clubfields" disabled>
+ <legend> <label>
+ <input type=checkbox name=club onchange="form.clubfields.disabled = !checked">
Use Club Card
- </label> </legend>
- <p><label>Name on card: <input name=clubname required></label></p>
- <p><label>Card number: <input name=clubnum required pattern="[-0-9]+"></label></p>
- <p><label>Expiry date: <input name=clubexp type=month></label></p>
-</fieldset>
-</form>
+ </label> </legend>
+ <p><label>Name on card: <input name=clubname required></label></p>
+ <p><label>Card number: <input name=clubnum required pattern="[-0-9]+"></label></p>
+ <p><label>Expiry date: <input name=clubexp type=month></label></p>
+</fieldset>
+</form>
<form>
-<fieldset>
- <legend> <h4>
+<form>
+<fieldset>
+ <legend> <h4>
How can we best reach you?
- </h4> </legend>
- <p> <label>
- <input type=radio checked name=contact_pref>
+ </h4> </legend>
+ <p> <label>
+ <input type=radio checked name=contact_pref>
Phone
- </label> </p>
- <p> <label>
- <input type=radio name=contact_pref>
+ </label> </p>
+ <p> <label>
+ <input type=radio name=contact_pref>
Text
- </label> </p>
- <p> <label>
- <input type=radio name=contact_pref>
+ </label> </p>
+ <p> <label>
+ <input type=radio name=contact_pref>
Email
- </label> </p>
-</fieldset>
-</form>
+ </label> </p>
+</fieldset>
+</form>
diff --git a/common/scaffolding/formulaires.html b/common/scaffolding/formulaires.html
index 9c9b251e2..cebe1b5be 100644
--- a/common/scaffolding/formulaires.html
+++ b/common/scaffolding/formulaires.html
@@ -20,15 +20,15 @@
form
element<form></form>
+<form></form>
label
element<form>
- <label>This is a label</label>
-</form>
+<form>
+ <label>This is a label</label>
+</form>
input
element<form>
- <label>Label: <input></label>
-</form>
+ <form>
+ <label>Label: <input></label>
+</form>
<form>
- <label for="input">Label: </label><input id="input">
-</form>
+ <form>
+ <label for="input">Label: </label><input id="input">
+</form>
type=hidden
)<form>
- <input type="hidden">
-</form>
+<form>
+ <input type="hidden">
+</form>
type=text
) state<form>
- <label>Label: <input type="text"></label>
-</form>
+ <form>
+ <label>Label: <input type="text"></label>
+</form>
<form>
- <label for="input-text">Label: </label><input id="input-text" type="text">
-</form>
+ <form>
+ <label for="input-text">Label: </label><input id="input-text" type="text">
+</form>
inputmode=text
)<form>
- <label>Label: <input type="text" inputmode="text"></label>
-</form>
+<form>
+ <label>Label: <input type="text" inputmode="text"></label>
+</form>
inputmode=none
)<form>
- <label>Label: <input type="text" inputmode="none"></label>
-</form>
+<form>
+ <label>Label: <input type="text" inputmode="none"></label>
+</form>
type=search
)<form>
- <label>Label: <input type="search"></label>
-</form>
+ <form>
+ <label>Label: <input type="search"></label>
+</form>
<form>
- <label for="input-search">Label: </label><input id="input-search" type="search">
-</form>
+ <form>
+ <label for="input-search">Label: </label><input id="input-search" type="search">
+</form>
inputmode=search
)<form>
- <label>Label: <input type="search" inputmode="search"></label>
-</form>
+<form>
+ <label>Label: <input type="search" inputmode="search"></label>
+</form>
type=tel
)<form>
- <label>Label: <input type="tel"></label>
-</form>
+ <form>
+ <label>Label: <input type="tel"></label>
+</form>
<form>
- <label for="input-tel">Label: </label><input id="input-tel" type="tel">
-</form>
+ <form>
+ <label for="input-tel">Label: </label><input id="input-tel" type="tel">
+</form>
inputmode=tel
)<form>
- <label>Label: <input type="tel" inputmode="tel"></label>
-</form>
+<form>
+ <label>Label: <input type="tel" inputmode="tel"></label>
+</form>
type=url
)<form>
- <label>Label: <input type="url"></label>
-</form>
+ <form>
+ <label>Label: <input type="url"></label>
+</form>
<form>
- <label for="input-url">Label: </label><input id="input-url" type="url">
-</form>
+ <form>
+ <label for="input-url">Label: </label><input id="input-url" type="url">
+</form>
inputmode=url
)<form>
- <label>Label: <input type="url" inputmode="url"></label>
-</form>
+<form>
+ <label>Label: <input type="url" inputmode="url"></label>
+</form>
type=email
)<form>
- <label>Label: <input type="email"></label>
-</form>
+ <form>
+ <label>Label: <input type="email"></label>
+</form>
<form>
- <label for="input-email">Label: </label><input id="input-email" type="email">
-</form>
+ <form>
+ <label for="input-email">Label: </label><input id="input-email" type="email">
+</form>
inputmode=email
)<form>
- <label>Label: <input type="email" inputmode="email"></label>
-</form>
+<form>
+ <label>Label: <input type="email" inputmode="email"></label>
+</form>
type=password
)<form>
- <label>Label: <input type="password"></label>
-</form>
+ <form>
+ <label>Label: <input type="password"></label>
+</form>
<form>
- <label for="input-password">Label: </label><input id="input-password" type="password">
-</form>
+ <form>
+ <label for="input-password">Label: </label><input id="input-password" type="password">
+</form>
<form>
- <label>Label: <input type="date"></label>
-</form>
+ <form>
+ <label>Label: <input type="date"></label>
+</form>
<form>
- <label for="input-date">Label: </label><input id="input-date" type="date">
-</form>
+ <form>
+ <label for="input-date">Label: </label><input id="input-date" type="date">
+</form>
<form>
- <label>Label: <input type="month"></label>
-</form>
+ <form><label>Label: <input type="month"></label>
+</form>
<form>
- <label for="input-month">Label: </label><input id="input-month" type="month">
-</form>
+ <form><label for="input-month">Label: </label><input id="input-month" type="month">
+</form>
<form>
- <label>Label: <input type="week"></label>
-</form>
+ <form>
+ <label>Label: <input type="week"></label>
+</form>
<form>
- <label for="input-week">Label: </label><input id="input-week" type="week">
-</form>
+ <form><label for="input-week">Label: </label><input id="input-week" type="week">
+</form>
<form>
- <label>Label: <input type="time"></label>
-</form>
+ <form>
+ <label>Label: <input type="time"></label>
+</form>
<form>
- <label for="input-time">Label: </label><input id="input-time" type="time">
-</form>
+
+ <form>
+ <label for="input-time">Label: </label><input id="input-time" type="time">
+</form>
+
<form>
- <label>Label: <input type="datetime-local"></label>
-</form>
+
+ <form>
+ <label>Label: <input type="datetime-local"></label>
+</form>
+
<form>
- <label for="input-datetime-local">Label: </label><input id="input-datetime-local" type="datetime-local">
-</form>
+ <form>
+ <label for="input-datetime-local">Label: </label><input id="input-datetime-local" type="datetime-local">
+</form>
<form>
- <label>Label: <input type="number"></label>
-</form>
+ <form>
+ <label>Label: <input type="number"></label>
+</form>
<form>
- <label for="input-number">Label: </label><input id="input-number" type="number">
-</form>
+ <form>
+ <label for="input-number">Label: </label><input id="input-number" type="number">
+</form>
inputmode=numeric
)<form>
- <label>Label: <input type="number" inputmode="numeric"></label>
-</form>
+<form>
+ <label>Label: <input type="number" inputmode="numeric"></label>
+</form>
inputmode=decimal
)<form>
- <label>Label: <input type="number" inputmode="decimal"></label>
-</form>
+<form>
+ <label>Label: <input type="number" inputmode="decimal"></label>
+</form>
type=range
)<form>
- <label>Label: <input type="range"></label>
-</form>
+ <form>
+ <label>Label: <input type="range"></label>
+</form>
<form>
- <label for="input-range">Label: </label><input id="input-range" type="range">
-</form>
+ <form>
+ <label for="input-range">Label: </label><input id="input-range" type="range">
+</form>
<form>
- <label>Label: <input type="color"></label>
-</form>
+ <form>
+ <label>Label: <input type="color"></label>
+</form>
<form>
- <label for="input-color">Label: </label><input id="input-color" type="color">
-</form>
+ <form>
+ <label for="input-color">Label: </label><input id="input-color" type="color">
+</form>
<form>
- <p><label>(single) Label: <input type="checkbox"></label>
+ <form>
+ <p><label>(single) Label: <input type="checkbox"></label>
<p>
- <label>(multiple) Label 1: <input type="checkbox" name="input-checkbox-implicit"></label>
- <label>(multiple) Label 2: <input type="checkbox" name="input-checkbox-implicit"></label>
- <label>(multiple) Label 3: <input type="checkbox" name="input-checkbox-implicit"></label>
+ <label>(multiple) Label 1: <input type="checkbox" name="input-checkbox-implicit"></label>
+ <label>(multiple) Label 2: <input type="checkbox" name="input-checkbox-implicit"></label>
+ <label>(multiple) Label 3: <input type="checkbox" name="input-checkbox-implicit"></label>
<p>
- <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 1</label>
- <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 2</label>
- <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 3</label>
-</form>
+ <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 1</label>
+ <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 2</label>
+ <label><input type="checkbox" name="input-checkbox-implicit"> (multiple) Label after 3</label>
+</form>
<form>
- <p><label for="input-checkbox">(single) Label: </label><input id="input-checkbox" type="checkbox">
+ <form>
+ <p><label for="input-checkbox">(single) Label: </label><input id="input-checkbox" type="checkbox">
<p>
- <label for="input-checkbox-a1">(multiple) Label 1: </label><input id="input-checkbox-a1" type="checkbox" name="input-checkbox-explicit">
- <label for="input-checkbox-a2">(multiple) Label 2: </label><input id="input-checkbox-a2" type="checkbox" name="input-checkbox-explicit">
- <label for="input-checkbox-a3">(multiple) Label 3: </label><input id="input-checkbox-a3" type="checkbox" name="input-checkbox-explicit">
+ <label for="input-checkbox-a1">(multiple) Label 1: </label><input id="input-checkbox-a1" type="checkbox" name="input-checkbox-explicit">
+ <label for="input-checkbox-a2">(multiple) Label 2: </label><input id="input-checkbox-a2" type="checkbox" name="input-checkbox-explicit">
+ <label for="input-checkbox-a3">(multiple) Label 3: </label><input id="input-checkbox-a3" type="checkbox" name="input-checkbox-explicit">
<p>
- <input id="input-checkbox-b1" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b1"> (multiple) Label after 1</label>
- <input id="input-checkbox-b2" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b2"> (multiple) Label after 2</label>
- <input id="input-checkbox-b3" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b3"> (multiple) Label after 3</label>
-</form>
+ <input id="input-checkbox-b1" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b1"> (multiple) Label after 1</label>
+ <input id="input-checkbox-b2" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b2"> (multiple) Label after 2</label>
+ <input id="input-checkbox-b3" type="checkbox" name="input-checkbox-explicit"><label for="input-checkbox-b3"> (multiple) Label after 3</label>
+</form>
<form>
- <label>(single) Label: <input type="radio"></label>
- <p>
- <label>(multiple) Label 1: <input type="radio" name="input-radio-implicit"></label>
- <label>(multiple) Label 2: <input type="radio" name="input-radio-implicit"></label>
- <label>(multiple) Label 3: <input type="radio" name="input-radio-implicit"></label>
- <p>
- <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 1</label>
- <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 2</label>
- <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 3</label>
-</form>
+ <form>
+ <label>(single) Label: <input type="radio"></label>
+ <p>
+ <label>(multiple) Label 1: <input type="radio" name="input-radio-implicit"></label>
+ <label>(multiple) Label 2: <input type="radio" name="input-radio-implicit"></label>
+ <label>(multiple) Label 3: <input type="radio" name="input-radio-implicit"></label>
+ <p>
+ <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 1</label>
+ <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 2</label>
+ <label><input type="radio" name="input-radio-implicit"> (multiple) Label after 3</label>
+</form>
<form>
- <label for="input-radio">(single) Label: </label><input id="input-radio" type="radio">
+ <form>
+ <label for="input-radio">(single) Label: </label><input id="input-radio" type="radio">
<p>
- <label for="input-radio-a1">(multiple) Label 1: </label><input id="input-radio-a1" type="radio" name="input-radio-explicit">
- <label for="input-radio-a2">(multiple) Label 2: </label><input id="input-radio-a2" type="radio" name="input-radio-explicit">
- <label for="input-radio-a3">(multiple) Label 3: </label><input id="input-radio-a3" type="radio" name="input-radio-explicit">
- <p>
- <input id="input-radio-b1" type="radio" name="input-radio-explicit"><label for="input-radio-b1"> (multiple) Label after 1</label>
- <input id="input-radio-b2" type="radio" name="input-radio-explicit"><label for="input-radio-b2"> (multiple) Label after 2</label>
- <input id="input-radio-b3" type="radio" name="input-radio-explicit"><label for="input-radio-b3"> (multiple) Label after 3</label>
-</form>
+ <label for="input-radio-a1">(multiple) Label 1: </label><input id="input-radio-a1" type="radio" name="input-radio-explicit">
+ <label for="input-radio-a2">(multiple) Label 2: </label><input id="input-radio-a2" type="radio" name="input-radio-explicit">
+ <label for="input-radio-a3">(multiple) Label 3: </label><input id="input-radio-a3" type="radio" name="input-radio-explicit">
+ <p>
+ <input id="input-radio-b1" type="radio" name="input-radio-explicit"><label for="input-radio-b1"> (multiple) Label after 1</label>
+ <input id="input-radio-b2" type="radio" name="input-radio-explicit"><label for="input-radio-b2"> (multiple) Label after 2</label>
+ <input id="input-radio-b3" type="radio" name="input-radio-explicit"><label for="input-radio-b3"> (multiple) Label after 3</label>
+</form>
<form>
- <label>Label: <input type="file"></label>
-</form>
+ <form>
+ <label>Label: <input type="file"></label>
+</form>
<form>
- <label for="input-file">Label: </label><input id="input-file" type="file">
-</form>
+ <form>
+ <label for="input-file">Label: </label><input id="input-file" type="file">
+</form>
type=submit
)<form>
- <input type="submit">
-</form>
-<form>
- <input type="submit" value="Submit">
-</form>
+<form>
+ <input type="submit">
+</form>
+<form>
+ <input type="submit" value="Submit">
+</form>
type=image
)Note: It will submit the coordinate of the mouse click on the image. @@ -573,17 +574,17 @@
<form>
- <label>Label: <input type="image" src="img/input-image-sample.jpg" alt="Implicit image input type example"></label>
-</form>
+<form>
+ <label>Label: <input type="image" src="img/input-image-sample.jpg" alt="Implicit image input type example"></label>
+</form>
<form>
- <label for="input-image">Label: </label><input id="input-image" type="image" src="img/input-image-sample.jpg" alt="Explicit image input type example">
-</form>
+<form>
+ <label for="input-image">Label: </label><input id="input-image" type="image" src="img/input-image-sample.jpg" alt="Explicit image input type example">
+</form>
type=reset
)type=reset
)<form>s
- <label>Label: <input type="text" value="This is a value"></label>
+<form>s
+ <label>Label: <input type="text" value="This is a value"></label>
<input type="reset">
-</form>
-<form>
- <label>Label: <input type="text" value="This is a value"></label>
- <input type="reset" value="Reset">
-</form>
+</form>
+<form>
+ <label>Label: <input type="text" value="This is a value"></label>
+ <input type="reset" value="Reset">
+</form>
type=button
)<form>
- <input type="button" value="Button">
-</form>
+<form>
+ <input type="button" value="Button">
+</form>
value
attribute<form>
- <label>Label: <input type="text" value="This is a value"></label>
-</form>
+<form>
+ <label>Label: <input type="text" value="This is a value"></label>
+</form>
readonly
attribute<form>
- <label>Label: <input readonly value="this is a value"></label>
-</form>
+<form>
+ <label>Label: <input readonly value="this is a value"></label>
+</form>
disabled
attribute<form>
- <label>Label: <input disabled value="this is a value"></label>
-</form>
+<form>
+ <label>Label: <input disabled value="this is a value"></label>
+</form>
placeholder
attribute<form>
- <p><label>Description: <input type="text" name="desc" placeholder="My Email Account"></label></p>
-</form>
+<form>
+ <p><label>Description: <input type="text" name="desc" placeholder="My Email Account"></label></p>
+</form>
required
attribute<form>
- <label>Label: <input required></label>
- <input type="submit">
-</form>
+<form>
+ <label>Label: <input required></label>
+ <input type="submit">
+</form>
multiple
attribute<form>
- <label>To: <input type=email multiple name=to></label>
-</form>
-<form>
- <label>Attachments: <input type=file multiple name=att></label>
-</form>
+<form>
+ <label>To: <input type=email multiple name=to></label>
+</form>
+<form>
+ <label>Attachments: <input type=file multiple name=att></label>
+</form>
pattern
attribute<form>
- <label> Part number:
+<form>
+ <label> Part number:
<input pattern="[0-9][A-Z]{3}" name="part"
- title="A part number is a digit followed by three uppercase letters."/>
-</label>
-<input type="submit">
-</form>
+ title="A part number is a digit followed by three uppercase letters."/>
+</label>
+<input type="submit">
+</form>
maxlength
and minlength
attributes<form>
- <p><label>What are you doing? <input name=status maxlength=25></label>
- <p><label>Username: <input name=u required></label>
- <p><label>Password: <input name=p required minlength=12></label>
-</form>
+<form>
+ <p><label>What are you doing? <input name=status maxlength=25></label>
+ <p><label>Username: <input name=u required></label>
+ <p><label>Password: <input name=p required minlength=12></label>
+</form>
size
attribute<form>
- <label>Size <input size=50></label>
-</form>
+<form>
+ <label>Size <input size=50></label>
+</form>
min
and max
attributes<form>
- <label>Quantity <input name=quantity required="" type="number" min="1" max="10" value="1"></label>
-</form>
+<form>
+ <label>Quantity <input name=quantity required="" type="number" min="1" max="10" value="1"></label>
+</form>
step
attribute<form>
- <label>Sleep start <input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></label>
-</form>
-<form>
- <label>Opacity (256 steps) <input name=opacity type=range min=0 max=1 step=0.00392156863></label>
-</form>
-<form>
- <label>Favority time (any steps) <input name=favtime type=time step=any></label>
-</form>
+<form>
+ <label>Sleep start <input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></label>
+</form>
+<form>
+ <label>Opacity (256 steps) <input name=opacity type=range min=0 max=1 step=0.00392156863></label>
+</form>
+<form>
+ <label>Favority time (any steps) <input name=favtime type=time step=any></label>
+</form>
list
attributelist
attribute<form>
- <label>Function types <input type="text" list="function-types"></label>
- <datalist id="function-types">
- <option value="function">function</option>
- <option value="async function">async function</option>
- <option value="function*">generator function</option>
- <option value="=>">arrow function</option>
- <option value="async =>">async arrow function</option>
- <option value="async function*">async generator function</option>
- </datalist>
-</form>
+<form>
+ <label>Function types <input type="text" list="function-types"></label>
+ <datalist id="function-types">
+ <option value="function">function</option>
+ <option value="async function">async function</option>
+ <option value="function*">generator function</option>
+ <option value="=>">arrow function</option>
+ <option value="async =>">async arrow function</option>
+ <option value="async function*">async generator function</option>
+ </datalist>
+</form>
button
elementbutton
element<form>
- <button>Default</button>
-</form>
-<form>
- <button type="submit">Submit</button>
-</form>
-<form>
- <button type="reset">Reset</button>
-</form>
-<form>
- <button type="button">Button</button>
-</form>
-<button type="button">Button in no form</button>
+<form>
+ <button>Default</button>
+</form>
+<form>
+ <button type="submit">Submit</button>
+</form>
+<form>
+ <button type="reset">Reset</button>
+</form>
+<form>
+ <button type="button">Button</button>
+</form>
+<button type="button">Button in no form</button>
select
element<form>
-<p>
- <label for="unittype">Select unit type:</label>
- <select id="unittype" name="unittype">
- <option value="1"> Miner </option>
- <option value="2"> Puffer </option>
- <option value="3" selected> Snipey </option>
- <option value="4"> Max </option>
- <option value="5"> Firebot </option>
- </select>
-</p>
-</form>
+<form>
+<p>
+ <label for="unittype">Select unit type:</label>
+ <select id="unittype" name="unittype">
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3" selected> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+ </select>
+</p>
+</form>
<form>
-<p>
- <label>Select unit type:
- <select name="unittype">
- <option value="1"> Miner </option>
- <option value="2"> Puffer </option>
- <option value="3" selected> Snipey </option>
- <option value="4"> Max </option>
- <option value="5"> Firebot </option>
- </select>
- </label>
-</p>
-</form>
+<form>
+<p>
+ <label>Select unit type:
+ <select name="unittype">
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3" selected> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+ </select>
+ </label>
+</p>
+</form>
<form>
-<p>
- <label for="unittypeplaceholder">Select unit type:</label>
- <select id="unittypeplaceholder" name="unittypeplaceholder" required>
- <option value=""> Select unit type </option>
- <option value="1"> Miner </option>
- <option value="2"> Puffer </option>
- <option value="3"> Snipey </option>
- <option value="4"> Max </option>
- <option value="5"> Firebot </option>
-</select>
-</p>
-</form>
+<form>
+<p>
+ <label for="unittypeplaceholder">Select unit type:</label>
+ <select id="unittypeplaceholder" name="unittypeplaceholder" required>
+ <option value=""> Select unit type </option>
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3"> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+</select>
+</p>
+</form>
<form>
-<p>
- <label for="allowedunits">Select unit types to enable on this map:</label>
- <select id="allowedunits" name="allowedunits" multiple>
- <option value="1" selected> Miner </option>
- <option value="2" selected> Puffer </option>
- <option value="3" selected> Snipey </option>
- <option value="4" selected> Max </option>
- <option value="5" selected> Firebot </option>
- </select>
-</p>
-</form>
+<form>
+<p>
+ <label for="allowedunits">Select unit types to enable on this map:</label>
+ <select id="allowedunits" name="allowedunits" multiple>
+ <option value="1" selected> Miner </option>
+ <option value="2" selected> Puffer </option>
+ <option value="3" selected> Snipey </option>
+ <option value="4" selected> Max </option>
+ <option value="5" selected> Firebot </option>
+ </select>
+</p>
+</form>
optgroup
)optgroup
)<form>
- <p><label>Course:
- <select name="c">
- <optgroup label="8.01 Physics I: Classical Mechanics">
- <option value="8.01.1">Lecture 01: Powers of Ten
- <option value="8.01.2">Lecture 02: 1D Kinematics
- <option value="8.01.3">Lecture 03: Vectors
- <optgroup label="8.02 Electricity and Magnetism">
- <option value="8.02.1">Lecture 01: What holds our world together?
- <option value="8.02.2">Lecture 02: Electric Field
- <option value="8.02.3">Lecture 03: Electric Flux
- <optgroup label="8.03 Physics III: Vibrations and Waves">
- <option value="8.03.1">Lecture 01: Periodic Phenomenon
- <option value="8.03.2">Lecture 02: Beats
- <option value="8.03.3">Lecture 03: Forced Oscillations with Damping
- </select>
- </label>
-</form>
+<form>
+ <p><label>Course:
+ <select name="c">
+ <optgroup label="8.01 Physics I: Classical Mechanics">
+ <option value="8.01.1">Lecture 01: Powers of Ten
+ <option value="8.01.2">Lecture 02: 1D Kinematics
+ <option value="8.01.3">Lecture 03: Vectors
+ <optgroup label="8.02 Electricity and Magnetism">
+ <option value="8.02.1">Lecture 01: What holds our world together?
+ <option value="8.02.2">Lecture 02: Electric Field
+ <option value="8.02.3">Lecture 03: Electric Flux
+ <optgroup label="8.03 Physics III: Vibrations and Waves">
+ <option value="8.03.1">Lecture 01: Periodic Phenomenon
+ <option value="8.03.2">Lecture 02: Beats
+ <option value="8.03.3">Lecture 03: Forced Oscillations with Damping
+ </select>
+ </label>
+</form>
datalist
elementdatalist
element<form>
-<label>
+<form>
+<label>
Animal:
- <input name=animal list=animals>
- <datalist id=animals>
- <option value="Cat">
- <option value="Dog">
- </datalist>
-</label>
-</form>
+ <input name=animal list=animals>
+ <datalist id=animals>
+ <option value="Cat">
+ <option value="Dog">
+ </datalist>
+</label>
+</form>
textarea
element<form>
-<label>Textarea: <textarea>Dear Madam Speaker,
+<form>
+<label>Textarea: <textarea>Dear Madam Speaker,
Regarding your letter dated ...
@@ -987,9 +988,9 @@ textarea
element
Yours Sincerely,
-...</textarea>
-</label>
-</form>
+...</textarea>
+</label>
+</form>
<form>
-<label>Textarea: <textarea placeholder="Dear Francine,
+<form>
+<label>Textarea: <textarea placeholder="Dear Francine,
They closed the parks this week, so we won't be able to
meet your there. Should we just have dinner?
Love,
-Daddy"></textarea>
-</label>
-</form>
+Daddy"></textarea>
+</label>
+</form>
output
element<form>
-<output id="resultEmpty"></output>
-</form>
+<form>
+<output id="resultEmpty"></output>
+</form>
<form>
+<form>
<output id="resultNonEmpty">With a non empty result</output>
-</form>
+</form>
progress
element<p><label>Progress: <progress id=p max=100 value="30"><span>30</span>%</progress></label></p>
+<p><label>Progress: <progress id=p max=100 value="30"><span>30</span>%</progress></label></p>
<p><label>Loading: <progress></progress></label></p>
+<p><label>Loading: <progress></progress></label></p>
meter
elementmeter
element
-
<p><label>Measure 10%: <meter value="10" max="100">10 percent</meter></label>
-<p><label>Measure 60%: <meter value="60" max="100">60 percent</meter></label>
-<p><label>Low: <meter value="30" max="100" low="40" high="80">30 percent</meter></label>
-<p><label>Normal: <meter value="50" max="100" low="40" high="80">50 percent</meter></label>
-<p><label>High: <meter value="90" max="100" low="40" high="80">90 percent</meter></label>
-<p><label>Optimum value (39) is higher: <meter value="30" max="100" optimum="39">30 percent</meter></label>
-<p><label>Optimum value (39) is lower: <meter value="69" max="100" optimum="39">69 percent</meter></label>
-<p><label>Optimum value (39) is on it: <meter value="39" max="100" optimum="39">39 percent</meter></label>
-<p><label>Optimum value (default) is on it: <meter value="50" max="100">50 percent</meter></label>
-<p><label>Optimum region low: <meter value="20" max="100" low="40" high="80" optimum="30">20 percent</meter></label>
-<p><label>Optimum region normal: <meter value="50" max="100" low="40" high="80" optimum="51">50 percent</meter></label>
-<p><label>Optimum region high: <meter value="95" max="100" low="40" high="80" optimum="90">95 percent</meter></label>
+<p><label>Measure 10%: <meter value="10" max="100">10 percent</meter></label>
+<p><label>Measure 60%: <meter value="60" max="100">60 percent</meter></label>
+<p><label>Low: <meter value="30" max="100" low="40" high="80">30 percent</meter></label>
+<p><label>Normal: <meter value="50" max="100" low="40" high="80">50 percent</meter></label>
+<p><label>High: <meter value="90" max="100" low="40" high="80">90 percent</meter></label>
+<p><label>Optimum value (39) is higher: <meter value="30" max="100" optimum="39">30 percent</meter></label>
+<p><label>Optimum value (39) is lower: <meter value="69" max="100" optimum="39">69 percent</meter></label>
+<p><label>Optimum value (39) is on it: <meter value="39" max="100" optimum="39">39 percent</meter></label>
+<p><label>Optimum value (default) is on it: <meter value="50" max="100">50 percent</meter></label>
+<p><label>Optimum region low: <meter value="20" max="100" low="40" high="80" optimum="30">20 percent</meter></label>
+<p><label>Optimum region normal: <meter value="50" max="100" low="40" high="80" optimum="51">50 percent</meter></label>
+<p><label>Optimum region high: <meter value="95" max="100" low="40" high="80" optimum="90">95 percent</meter></label>
fieldset
and legend
elementfieldset
and legend
element<form>
-<fieldset>
- <legend>Display</legend>
- <p><label><input type=radio name=c value=0 checked> Black on White</label>
- <p><label><input type=radio name=c value=1> White on Black</label>
- <p><label><input type=checkbox name=g> Use grayscale</label>
- <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
- <datalist id=contrast>
- <option label=Normal value=0>
- <option label=Middle value=50>
- <option label="Middle high" value="78">
- <option label=Maximum value=100>
- </datalist>
-</fieldset>
-</form>
+<form>
+<fieldset>
+ <legend>Display</legend>
+ <p><label><input type=radio name=c value=0 checked> Black on White</label>
+ <p><label><input type=radio name=c value=1> White on Black</label>
+ <p><label><input type=checkbox name=g> Use grayscale</label>
+ <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
+ <datalist id=contrast>
+ <option label=Normal value=0>
+ <option label=Middle value=50>
+ <option label="Middle high" value="78">
+ <option label=Maximum value=100>
+ </datalist>
+</fieldset>
+</form>
<form>
-<fieldset name="clubfields" disabled>
- <legend> <label>
- <input type=checkbox name=club onchange="form.clubfields.disabled = !checked">
+<form>
+<fieldset name="clubfields" disabled>
+ <legend> <label>
+ <input type=checkbox name=club onchange="form.clubfields.disabled = !checked">
Use Club Card
- </label> </legend>
- <p><label>Name on card: <input name=clubname required></label></p>
- <p><label>Card number: <input name=clubnum required pattern="[-0-9]+"></label></p>
- <p><label>Expiry date: <input name=clubexp type=month></label></p>
-</fieldset>
-</form>
+ </label> </legend>
+ <p><label>Name on card: <input name=clubname required></label></p>
+ <p><label>Card number: <input name=clubnum required pattern="[-0-9]+"></label></p>
+ <p><label>Expiry date: <input name=clubexp type=month></label></p>
+</fieldset>
+</form>
<form>
-<fieldset>
- <legend> <h4>
+<form>
+<fieldset>
+ <legend> <h4>
How can we best reach you?
- </h4> </legend>
- <p> <label>
- <input type=radio checked name=contact_pref>
+ </h4> </legend>
+ <p> <label>
+ <input type=radio checked name=contact_pref>
Phone
- </label> </p>
- <p> <label>
- <input type=radio name=contact_pref>
+ </label> </p>
+ <p> <label>
+ <input type=radio name=contact_pref>
Text
- </label> </p>
- <p> <label>
- <input type=radio name=contact_pref>
+ </label> </p>
+ <p> <label>
+ <input type=radio name=contact_pref>
Email
- </label> </p>
-</fieldset>
-</form>
+ </label> </p>
+</fieldset>
+</form>
diff --git a/common/utilities/helpers/forms.html b/common/utilities/helpers/forms.html
new file mode 100644
index 000000000..5c540d4a6
--- /dev/null
+++ b/common/utilities/helpers/forms.html
@@ -0,0 +1,329 @@
+---
+{
+ "title": "Forms - Utilities/Helpers",
+ "language": "en",
+ "altLangPage": "formulaires.html",
+ "breadcrumbs": [
+ { "title": "GCWeb home", "link": "https://wet-boew.github.io/GCWeb/index-en.html" }
+ ],
+ "dateModified": "2023-08-20"
+}
+---
+
+
+The purpose of this page is to test all native forms related elements, if they are aligned with our design and are compliant to our accessibility guideline when used as is without any special customization. The following include all form elements in the HTML5 specification and a few examples was inspired by the WHATWG section 4.10 as February 2023. This page may not contain all the possible forms element combination.
+form
element<form></form>
+
+Textual form controls—like <input>
s, <select>
s, and <textarea>
s—are styled with the .form-control
class. Included are styles for general appearance, focus state, sizing, and more.
Be sure to explore our custom forms to further style <select>
s.
<form>
+ <div class="form-group">
+ <label for="exampleFormControlInput1">Email address</label>
+ <input type="email" class="form-control" id="exampleFormControlInput1" placeholder="name@example.com" />
+ </div>
+ <div class="form-group">
+ <label for="exampleFormControlSelect1">Example select</label>
+ <select class="form-control" id="exampleFormControlSelect1">
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ </div>
+ <div class="form-group">
+ <label for="exampleFormControlSelect2">Example multiple select</label>
+ <select multiple="" class="form-control" id="exampleFormControlSelect2">
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ </div>
+ <div class="form-group">
+ <label for="exampleFormControlTextarea1">Example textarea</label>
+ <textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
+ </div>
+</form>
For file inputs, swap the .form-control
for .form-control-file
.
<form>
+ <div class="form-group">
+ <label for="exampleFormControlFile1">Example file input</label>
+ <input type="file" class="form-control-file" id="exampleFormControlFile1" />
+ </div>
+</form>
Set heights using classes like .form-control-lg
and .form-control-sm
.
<input class="form-control form-control-lg" type="text" placeholder=".form-control-lg" />
+<input class="form-control" type="text" placeholder="Default input" />
+<input class="form-control form-control-sm" type="text" placeholder=".form-control-sm" />
<select class="form-control form-control-lg">
+ <option>Large select</option>
+</select>
+<select class="form-control">
+ <option>Default select</option>
+</select>
+<select class="form-control form-control-sm">
+ <option>Small select</option>
+</select>
Add the readonly
boolean attribute on an input to prevent modification of the input’s value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.
<input class="form-control" type="text" placeholder="Readonly input here…" readonly>
If you want to have <input readonly>
elements in your form styled as plain text, use the .form-control-plaintext
class to remove the default form field styling and preserve the correct margin and padding.
<form>
+ <div class="form-group">
+ <label for="staticEmail" class="col-sm-2 col-form-label">Email</label>
+ <div class="col-sm-10">
+ <input type="text" readonly="" class="form-control-plaintext" id="staticEmail" value="email@example.com" />
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="inputPassword" class="col-sm-2 col-form-label">Password</label>
+ <div class="col-sm-10">
+ <input type="password" class="form-control" id="inputPassword" placeholder="Password" />
+ </div>
+ </div>
+</form>
<form class="form-inline">
+ <div class="form-group">
+ <label for="staticEmail2" class="sr-only">Email</label>
+ <input type="text" readonly="" class="form-control-plaintext" id="staticEmail2" value="email@example.com" />
+ </div>
+ <div class="form-group">
+ <label for="inputPassword2" class="sr-only">Password</label>
+ <input type="password" class="form-control" id="inputPassword2" placeholder="Password" />
+ </div>
+ <button type="submit" class="btn btn-primary mb-2">Confirm identity</button>
+</form>
+
By default, any number of checkboxes and radios that are immediate sibling will be vertically stacked
+<div class="checkbox">
+ <input type="checkbox" value="" id="defaultCheck1" />
+ <label class="form-check-label" for="defaultCheck1">
+ Default checkbox
+ </label>
+</div>
+<div class="checkbox">
+ <input type="checkbox" value="" id="defaultCheck2" disabled="" />
+ <label for="defaultCheck2">
+ Disabled checkbox
+ </label>
+</div>
+
<div class="radio">
+ <input type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked="" />
+ <label for="exampleRadios1">
+ Default radio
+ </label>
+</div>
+<div class="radio">
+ <input type="radio" name="exampleRadios" id="exampleRadios2" value="option2" />
+ <label for="exampleRadios2">
+ Second default radio
+ </label>
+</div>
+<div class=" radio disabled">
+ <input type="radio" name="exampleRadios" id="exampleRadios3" value="option3" disabled="" />
+ <label for="exampleRadios3">
+ Disabled radio
+ </label>
+</div>
+
Group checkboxes or radios on the same horizontal row by adding .checkbox-inline or radio-inline
+
+
+<div class="checkbox-inline">
+ <input type="checkbox" id="inlineCheckbox1" value="option1" />
+ <label for="inlineCheckbox1">1</label>
+</div>
+<div class="checkbox-inline">
+ <input type="checkbox" id="inlineCheckbox2" value="option2" />
+ <label for="inlineCheckbox2">2</label>
+</div>
+<div class="checkbox-inline">
+ <input type="checkbox" id="inlineCheckbox3" value="option3" disabled="" />
+ <label for="inlineCheckbox3">3 (disabled)</label>
+</div>
+
<div class="radio-inline">
+ <input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1" />
+ <label for="inlineRadio1">1</label>
+</div>
+<div class="radio-inline">
+ <input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2" />
+ <label for="inlineRadio2">2</label>
+</div>
+<div class="radio-inline">
+ <input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3" disabled="" />
+ <label for="inlineRadio3">>3 (disabled)</label>
+</div>
Cette page nécessite une traduction.
+ +The purpose of this page is to test all native forms related elements, if they are aligned with our design and are compliant to our accessibility guideline when used as is without any special customization. The following include all form elements in the HTML5 specification and a few examples was inspired by the WHATWG section 4.10 as February 2023. This page may not contain all the possible forms element combination.
+form
element<form></form>
+
+Textual form controls—like <input>
s, <select>
s, and <textarea>
s—are styled with the .form-control
class. Included are styles for general appearance, focus state, sizing, and more.
Be sure to explore our custom forms to further style <select>
s.
<form>
+ <div class="form-group">
+ <label for="exampleFormControlInput1">Email address</label>
+ <input type="email" class="form-control" id="exampleFormControlInput1" placeholder="name@example.com" />
+ </div>
+ <div class="form-group">
+ <label for="exampleFormControlSelect1">Example select</label>
+ <select class="form-control" id="exampleFormControlSelect1">
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ </div>
+ <div class="form-group">
+ <label for="exampleFormControlSelect2">Example multiple select</label>
+ <select multiple="" class="form-control" id="exampleFormControlSelect2">
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ </div>
+ <div class="form-group">
+ <label for="exampleFormControlTextarea1">Example textarea</label>
+ <textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
+ </div>
+</form>
For file inputs, swap the .form-control
for .form-control-file
.
<form>
+ <div class="form-group">
+ <label for="exampleFormControlFile1">Example file input</label>
+ <input type="file" class="form-control-file" id="exampleFormControlFile1" />
+ </div>
+</form>
Set heights using classes like .form-control-lg
and .form-control-sm
.
<input class="form-control form-control-lg" type="text" placeholder=".form-control-lg" />
+<input class="form-control" type="text" placeholder="Default input" />
+<input class="form-control form-control-sm" type="text" placeholder=".form-control-sm" />
<select class="form-control form-control-lg">
+ <option>Large select</option>
+</select>
+<select class="form-control">
+ <option>Default select</option>
+</select>
+<select class="form-control form-control-sm">
+ <option>Small select</option>
+</select>
Add the readonly
boolean attribute on an input to prevent modification of the input’s value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.
<input class="form-control" type="text" placeholder="Readonly input here…" readonly>
If you want to have <input readonly>
elements in your form styled as plain text, use the .form-control-plaintext
class to remove the default form field styling and preserve the correct margin and padding.
<form>
+ <div class="form-group">
+ <label for="staticEmail" class="col-sm-2 col-form-label">Email</label>
+ <div class="col-sm-10">
+ <input type="text" readonly="" class="form-control-plaintext" id="staticEmail" value="email@example.com" />
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="inputPassword" class="col-sm-2 col-form-label">Password</label>
+ <div class="col-sm-10">
+ <input type="password" class="form-control" id="inputPassword" placeholder="Password" />
+ </div>
+ </div>
+</form>
<form class="form-inline">
+ <div class="form-group">
+ <label for="staticEmail2" class="sr-only">Email</label>
+ <input type="text" readonly="" class="form-control-plaintext" id="staticEmail2" value="email@example.com" />
+ </div>
+ <div class="form-group">
+ <label for="inputPassword2" class="sr-only">Password</label>
+ <input type="password" class="form-control" id="inputPassword2" placeholder="Password" />
+ </div>
+ <button type="submit" class="btn btn-primary mb-2">Confirm identity</button>
+</form>
+
By default, any number of checkboxes and radios that are immediate sibling will be vertically stacked
+<div class="checkbox">
+ <input type="checkbox" value="" id="defaultCheck1" />
+ <label class="form-check-label" for="defaultCheck1">
+ Default checkbox
+ </label>
+</div>
+<div class="checkbox">
+ <input type="checkbox" value="" id="defaultCheck2" disabled="" />
+ <label for="defaultCheck2">
+ Disabled checkbox
+ </label>
+</div>
+
<div class="radio">
+ <input type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked="" />
+ <label for="exampleRadios1">
+ Default radio
+ </label>
+</div>
+<div class="radio">
+ <input type="radio" name="exampleRadios" id="exampleRadios2" value="option2" />
+ <label for="exampleRadios2">
+ Second default radio
+ </label>
+</div>
+<div class=" radio disabled">
+ <input type="radio" name="exampleRadios" id="exampleRadios3" value="option3" disabled="" />
+ <label for="exampleRadios3">
+ Disabled radio
+ </label>
+</div>
+
Group checkboxes or radios on the same horizontal row by adding .checkbox-inline or radio-inline
+
+
+<div class="checkbox-inline">
+ <input type="checkbox" id="inlineCheckbox1" value="option1" />
+ <label for="inlineCheckbox1">1</label>
+</div>
+<div class="checkbox-inline">
+ <input type="checkbox" id="inlineCheckbox2" value="option2" />
+ <label for="inlineCheckbox2">2</label>
+</div>
+<div class="checkbox-inline">
+ <input type="checkbox" id="inlineCheckbox3" value="option3" disabled="" />
+ <label for="inlineCheckbox3">3 (disabled)</label>
+</div>
+
<div class="radio-inline">
+ <input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1" />
+ <label for="inlineRadio1">1</label>
+</div>
+<div class="radio-inline">
+ <input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2" />
+ <label for="inlineRadio2">2</label>
+</div>
+<div class="radio-inline">
+ <input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3" disabled="" />
+ <label for="inlineRadio3">>3 (disabled)</label>
+</div>