List various input value options in HTML5

WBOY
Release: 2023-09-18 09:09:08
forward
1448 people have browsed it

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>
Copy after login

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!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!