form 태그
타입 설명 예시
enctype = "multipart/form-data"

파일을 form을 이용하여 다른 sss 파일을 multipart로 보낼 때 사용

 

method 어떤 get 또는 post 형태로 보낼 때 사용  
select select 박스를 사용할 때 사용 <SELECT NAME=sltSample SIZE=1>
        <OPTION VALUE=1>1번 보기입니다.</OPTION>
        <OPTION VALUE=2>2번 보기입니다.</OPTION>
        <OPTION VALUE=3>3번 보기입니다.</OPTION>
        <OPTION VALUE=4 SELECTED>4번 보기입니다.</OPTION>
    </SELECT>
option select 박스에서 option을 사용할 때 사용
<div align="center"></div> html로 해당 부분만 center로 정렬하길 원할 때

<div align="center>

<section>

내용

</section>

</div>

onclick form의 button으로 script를 사용하고자 할 때(동적 사용)

<input type="button" onclick="func()" value="목록">

onsubmit form의 submit으로 script를 사용하고자 할 때

<form onsubmit="func()" action="nextpage.jsp">

 

+ Recent posts