An HTML form with initial (default) values:
![]()
The value attribute is supported in all major browsers.
The value attribute specifies the value of an <input> element.
The value attribute is used differently for different input types:
Note: The value attribute is required with <input type="checkbox"> and <input type="radio">.
Note: The value attribute cannot be used with <input type="file">.
| Value | Description |
|---|---|
| text | Specifies the value of the <input> element |
HTML <input> tag
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|