![]() |
Definition and Usage
For
For
For
For
For Applies to
The
Browser Support
The
|
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The button value attribute</h1>
<form action="/action_page.php" method="get">
Choose your favorite subject:
<button name="subject" type="submit" value="fav_HTML">HTML</button>
<button name="subject" type="submit" value="fav_CSS">CSS</button>
</form>
</body>
</html>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The input value attribute</h1>
<form action="/action_page.php"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname" value="John"><br><br> <label for="lname">Last name:</label> <input type="text" id="lname" name="lname" value="Doe"><br><br> <input type="submit" value="Submit">
</form>
</body>
</html>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The input value attribute</h1>
<form action="/action_page.php"> <label for="fname">First name:</label> <input type="text" id="fname" name="fname" value="John"><br><br> <label for="lname">Last name:</label> <input type="text" id="lname" name="lname" value="Doe"><br><br> <input type="submit" value="Submit">
</form>
</body>
</html>
Example:
HTML
<ol> <li value="100">Coffee</li> <li>Tea</li> <li>Milk</li> <li>Water</li> <li>Juice</li> <li>Beer</li>
</ol>
Example:
HTML
<meter min="0" low="40" high="90" max="100" value="95"></meter>
Example:
HTML
<form action="/action_page.php"> <select name="cars"> <option value="volvo">Volvo XC90</option> <option value="saab">Saab 95</option> <option value="mercedes">Mercedes SLK</option> <option value="audi">Audi TT</option> </select> <input type="submit" value="Submit">
</form>
Example:
HTML
<progress value="22" max="100"></progress>
Example:
HTML
<object data="horse.wav"> <param name="autoplay" value="true">
</object>
html value attribute |
Type
: |
Develop |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Attribute |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference