Note: If you don't know what a tag is and/or how you must use it we recommend you to read our HTML tags and attributes tutorial that you can find in our HTML tutorials section.
Table of contents
| Code | View |
|---|---|
|
<form action="example.php"> <div> <input name="firstbutton" type="button" value="This is not disabled" /><br /><br /> <input name="secondbutton" type="button" value="This is disabled" disabled="disabled" /><br /><br /> <input name="secondtext" type="text" value="This is not disabled" /><br /><br /> <input name="firsttext" type="text" value="This is disabled" disabled="disabled" /> </div> </form> |
Common example.
| Code | View |
|---|---|
|
<form action="example.php"> <div> <select> <optgroup label="Server-side languages"> <option>PHP</option> <option>ASP</option> </optgroup> <optgroup label="Client-side languages"> <option>JavaScript</option> <option>VBScript</option> </optgroup> </select> </div> </form> |