<html lang="ko">
</html>
<head>
<title>제목</title>
<meta charset="UTF-8">
</head>
<body>
</body>
<h1>h1 태그에 작성된 내용</h1>
<h2>h2 태그에 작성된 내용</h2>
<h3>h3 태그에 작성된 내용</h3>
<h4>h4 태그에 작성된 내용</h4>
<h5>h5 태그에 작성된 내용</h5>
<h6>h6 태그에 작성된 내용</h6>
<hr>
<br>
<p>내용</p>
<pre>내용</pre>
<b>b 태그</b>
<i>i 태그</i>
<strong>strong 태그</strong>
<em>em 태그</em>
<mark>mark 태그</mark>
<u>u 태그</u>
<s>s 태그</s>
<del>del 태그</del>
<small>small 태그</small>
<sup>내용</sup>
<sub>내용</sub>
<abbr title="설명">내용</abbr>
<ul>
<li>김밥</li>
<li>서브웨이</li>
<li>라면</li>
<li>햄버거</li>
</ul>
ul*2>li*3{$번 항목}
<ol type="1" start="3" reversed>
<li>샐러드</li>
<li>김밥</li>
<li>삼겹살</li>
<li>돼지갈비</li>
<li>우육면</li>
</ol>
<dl>
<dt>제목1</dt>
<dd>내용1-1</dd>
<dd>내용1-2</dd>
<dt>제목2</dt>
<dd>내용2</dd>
</dl>
<table>
<thead>
<caption>개인정보</caption>
<tr>
<th>이름</th>
<th>나이</th>
<th>주소</th>
</tr>
</thead>
<tbody>
<tr>
<td>홍길동</td>
<td>20</td>
<td>서울시 금천구</td>
</tr>
<tr>
<td>김개똥</td>
<td>25</td>
<td>서울시 강남구</td>
</tr>
<tr>
<td>김영희</td>
<td>23</td>
<td>경기도 파주시</td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="2">총 인원</th>
<th>3명</th>
</tr>
</tfoot>
</table>
<img src="C:\workspace\04_WebFront\images\cats\cat1.jpg" alt="cat1.jpg 이미지">
<img src="..\images\dogs\dog1.jpg" alt="dog1.jpg 이미지">
<img src="https://img.freepik.com/premium-photo/killer-whale-in-the-water-with-mountains-in-the-background_996379-1149.jpg" alt="">
<img src="../images/cats/cat1.jpg" width="300px" height="200">
<img src="..\images\dogs\dog1.jpg" width="15%" height="240px">
<iframe src="05_표 연습문제.html" width = "400px" height =400px; frameborder="0"></iframe>
<iframe width="540" height="270" src="https://www.youtube.com/embed/Km71Rr9K-Bw" title="NewJeans (뉴진스) 'Ditto' Performance Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen=""></iframe>
<li><a href="01_글자관련태그.html">글자 관련 태그</a></li>
<h1>
<a href="https://www.naver.com" target="_blank">
네이버
</a>
</h1>
<a href="https://www.kh-academy.co.kr" target="_blank">
<img width="200px" height="140px" src="https://www.kh-academy.co.kr/resources/images/main/logo.svg" alt="KH 정보교육원 로고">
</a>
<ul id="list">
<li><a href="#flower1">꽃 1</a></li>
<li><a href="#flower2">꽃 2</a></li>
<li><a href="#flower3">꽃 3</a></li>
</ul>
<h3 id="flower1">꽃 1</h3>
<img src="../images/flowers/flower1.jpg"> <br>
<a href="#list">목록으로 이동</a>
<h3 id="flower2">꽃 2</h3>
<img src="../images/flowers/flower2.jpg"> <br>
<a href="#list">목록으로 이동</a>
<h3 id="flower3">꽃 3</h3>
<img src="../images/flowers/flower3.jpg"> <br>
<a href="#list">목록으로 이동</a>
<input type="text" size="15" maxlength="10" placeholder="값 적어요" value="기본값">
비밀번호 : <input type="password" id="pw">
<input type="url" id="inputUrl" value="https://github.com/" size="50">
<form action="">
이메일 : <input type="email">
<button type="submit">제출</button>
</form>
<input type="tel" size="8" maxlength="11" placeholder="-없이">
<input type="search">
<input id="number" type="number" min="0" max="100" step="5" value="50">
<input id="range" type="range" min="0" max="100" step="5" value="50">
<label for="aTeam">A팀</label> <input type="radio" name="team" id="aTeam"> <br>
<label for="bTeam">B팀</label> <input type="radio" name="team" id="bTeam"> <br>
<label for="cTeam">C팀</label> <input type="radio" name="team" id="cTeam"> <br>
<label for="baseball">야구</label> <input type="checkbox" name="hobby" id="baseball"> <br>
<label for="soccer">축구</label> <input type="checkbox" name="hobby" id="soccer"> <br>
<label for="basketball">농구</label> <input type="checkbox" name="hobby" id="basketball"> <br>
<button type="reset">reset</button>
<input type="hidden" id="hd" value="여기 값 있다?!">
div와 같은 영역(block 형식) + 내부에 작성된 input 태그의 값을 서버로 전달하는 역할
속성
- action : 내부에 작성된 값을 전달할 서버 또는 페이지 주소를 작성
- method(방식) : 서버로 데이터 전달하는 방식을 지정하는 속성
- name : form태그의 이름을 지정하여 각각의 form태그 구분(JS사용)
- target : action에 지정된 주소를 새탭/현재탭 중 어디서 열지 지정
예시 1
아이디, 비밀번호 입력 후 로그인(제출) 클릭 시 action에 작성된 주소 result.html로 입력된 값을 전달(제출)
<form action="result.html">
아이디 입력 : <input type="text" name="inputId"> <br>
비밀번호 입력 : <input type="password" name="inputPw"> <br>
<button type="submit">로그인(제출)</button> <br>
</form>
<form action="result.html" method="get">
이름 : <input type="text" name="inputName"> <br>
나이 : <input type="number" name="inputAge"> <br>
<button type="submit">제출하기</button>
</form>
<form action="result.html" target="_blank">
팀 선택 <br>
<label for="aTeam">A팀</label> <input type="radio" name="team" id="aTeam" value="A팀"> <br>
<label for="bTeam">B팀</label> <input type="radio" name="team" id="bTeam" value="B팀"> <br>
<label for="cTeam">C팀</label> <input type="radio" name="team" id="cTeam" value="C팀"> <br>
<hr>
취미 선택 <br>
<label for="baseball">야구</label> <input type="checkbox" name="hobby" id="baseball" value="야구"> <br>
<label for="soccer">축구</label> <input type="checkbox" name="hobby" id="soccer" value="축구"> <br>
<label for="basketball">농구</label> <input type="checkbox" name="hobby" id="basketball" value="농구"> <br>
<button type="submit">제출하기</button>
</form>
<form action="result.html" method="get" target="_blank">
<fieldset>
<legend>로그인</legend>
아이디 : <input type="text" name="inputId"> <br>
비밀번호 : <input type="password" name="inputPw"> <br>
</fieldset>
<fieldset>
<legend>개인정보</legend>
이름 : <input type="text" name="inputName"> <br>
나이 : <input type="number" name="inputAge"> <br>
</fieldset>
<button type="submit">제출하기</button>
</form>
<form action="result.html">
<textarea name="inputId" rows="5" cols="60"
placeholder="아무거나 작성 해봐요" style="resize:none">태그 사이에 기본 값 작성
pre태그 처럼 모양 그대로를 인식</textarea>
<button>제출</button>
</form>
<form action="result.html">
<select name="inputId">
<option>선택1</option>
<option selected>선택2</option>
<option value="3333">선택3</option>
</select>
</form>