728x90
반응형
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <title>날짜입력</title>
</head>
<body>
    <form action="">
        <h1>날짜 지정하기</h1>
        <input type="date">
        <input type="month">
        <input type="week">

        <!-- hr  : 셀프테그로, 문단을 나눠주는 줄을 생성한다. -->
        <hr>

        <h1>시간 지정하기</h1>
        <input type="time">
        <!-- 연월일 시분초 -->
        <!-- 현재 있는 지역을 기준으로 하는 지역시 -->
        <input type="datetime-local"> 

        <h1>범위 지정하기</h1>
        <input type="date" min="2021-09-14" max="2023-09-14">
        <input type="month">
        <input type="week">


    </form>
</body>
</html>
728x90
반응형

'코딩일지 > WEB' 카테고리의 다른 글

폰트연습  (1) 2022.12.25
form활용하기  (0) 2022.12.25
HTML간단한 입력칸  (0) 2022.12.25
함수(let)  (2) 2022.12.25
조건문  (0) 2022.12.25

+ Recent posts

">