HTML 30 다양한 <input> 태그

프론트엔드/HTML|2021. 4. 3. 10:40

그 외 속성 값으로 email, URL, search 도 있습니다.


Document










<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form>
        <input type="color"><br>
        <input type="datetime-local"><br>
        <input type="month"><br>
        <input type="number"><br>
        <input type="range"><br>
        <input type="time"><br>
        <input type="week"><br>
        <input type="email"><br>
        <input type="URL"><br>
        <input type="search"><br>
    </form>
</body>
</html>


Document

텍스트 공간 입력 양식

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h2>텍스트 공간 입력 양식</h2>
  <form>
    <textarea rows="5"cols="50">텍스트를작성하는공간입니다.</textarea>
    <p></p>
    <input type="submit"value="전송">
    <input type="reset"value="다시작성">
  </form>
</body>
</html>

 

댓글()
구독