HTML: Beginners Guide to HTML to Master Your Web Designing by Steven Josh

HTML: Beginners Guide to HTML to Master Your Web Designing by Steven Josh

Author:Steven, Josh [Steven, Josh]
Language: eng
Format: epub
Published: 2019-12-18T16:00:00+00:00


Submit input

Attributes of the text input are the type, value, name, size, and maxlength.

Form <select> Element

It is used when multiple options are available, and the user has to select only one of them.

Example for <select> element is:

<! DOCTYPE html>

<html>

<head>

<title> Form select element </ title>

<body>

<h4> Select your favorite fruit from the list. </ h4>

<form action = “/mainpahe.php” method = “POST” >

<select name = “fruits” >

<option value = “apple” > Apple </ option>

<option value = “mango” > Mango </ option>

<option value = “grape” > Grape </ option>

<option value = “peach” > Peach </ option>

<option value = “banana” > Banana </ option>

<option value = “orange” > Orange </ option>

<br>

<input type = “submit” >

</ form>

</ body>

</ html>

Output:

Select your favorite fruit from the list.

Here the Drop-down list will appear.

Submit input



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.