HTML的標簽指定了元素的一組選項。您可以嘗試運行以下代碼,在HTML5中列出輸入值的選項:
示例
<!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>
登錄后復制
以上就是在HTML5中列出各種輸入值選項的詳細內容,更多請關注www.92cms.cn其它相關文章!