Disabled Attribute Example – HTML Syntax – Disabled HTML Example
Disabled Attribute Example – HTML Syntax – Disabled HTML Example
Purpose: – Illustrates the HTML syntax for the disabled attribute.
You can download an excellent free html editor at nvu. This HTML editor will allow you to easily experiment with these examples. You can view an 8-minute video tutorial that I did at NVU HTML Editor
Function: disabled=”true” or disabled=”false” Specifies whether an element is enabled or disabled.
< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Disabled Attribute Example</title> </head> <body> <form> <input value="Enabled Button" type="button"/><input disabled="true" value="Disabled Button" type="button"/> </form> </body> </html> |
