본문 바로가기

Lecture

FORM tag

form element를 통해서 HTML과 server간의 interaction을 만든다.

 

    <form method="get" id="form" action="http://localhost:3000">
        NAME : <input type="text" name="name"> <br>
        ID : <input type="text" name="user_id"> <br>
        PASSWORD : <input type="password" name="user_pw"> <br>
        <input type="submit" value="button">
    </form>

 

action을 이용해서 localhost랑 html을 연결해준다.

 

 

input type = "submit"

>> rendered button : 생긴 내용을 적용시켜 링크이동해주는 버튼

>> form handler : form data를 submit하는 submit button

 

 

'Lecture' 카테고리의 다른 글

MariaDB Mysql table 생성  (0) 2021.04.22
MariaDB - Database 확인, 생성, 삭제  (0) 2021.04.20
query  (0) 2021.04.20
Render  (0) 2021.04.20
서버 여는 법  (0) 2021.04.20