본문 바로가기
Coding/HTML & CSS

[HTML & CSS] 검색, 입력창에 값 넣기(datalist)

by 포스트it 2021. 1. 13.
728x90
반응형

- code -

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>datalist</title>
</head>
<body>

<p>선택해주세요:</p>
    <input list="lenguages">
    <datalist id="lenguages">
      <option value="Html">
      <option value="Css">
      <option value="Python">
      <option value="Java">
      <option value="Go">
</datalist>
</body>
</html>

결과물

 

선택해주세요:


 

728x90
반응형

댓글