Home >Web Front-end >HTML Tutorial >List various input value options in HTML5

List various input value options in HTML5

WBOY
WBOYforward
2023-09-18 09:09:081469browse

List various input value options in HTML5

HTML's tag specifies a set of options for the element. You can try running the following code to list options for input values ​​in HTML5:

Example

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Datalist Tag</title>
   </head>
   <body>
      <input list = "tutorials" />

      <datalist id = "tutorials">
         <option value = "Java">
         <option value = "ASP">
         <option value = "PHP">
         <option value = "Ruby">
         <option value = "jQuery">
      </datalist>

      <p>Try to add any of the tutorial name mentioned above.</p>
   </body>
</html>

The above is the detailed content of List various input value options in HTML5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete