<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
<h1>안녕하세요</h1>
<h2>안녕하세요</h2>
<h3>안녕하세요</h3>
<h4>안녕하세요</h4>
<h5>안녕하세요</h5>
<h6>안녕하세요</h6>
1)
- 브라우저는 공백을 한개만 인식(공백을 여러개 넣고 싶을 때 사용)
2) <
- 작다(less than) : <
3) >
- 크다(greater than) : >
4) &
- ampersand : &
<pre>
오늘은
<u>월요일</u>
비가 온다!
<b><i>졸려</i></b>
</pre>
<xmp>
오늘은
<u>월요일</u>
비가 온다!
<b><i>졸려</i></b>
</xmp>
다른 페이지로 이동
현재 페이지내에서 특정 영역으로 이동
mail to 기능
속성 : target="_self | _blank | _top | _parent | 창이름"
target속성은 이동할 페이지가 열릴 창을 뜻함
<a href="http://www.naver.com" target="self">네이버</a><p>
<a href="http://www.daum.net" target="blank">다음</a><p>
<a href="http://www.google.com" target="top">구글</a><p>
- bmp, jpg, gif, png
- 경로설정
: ../ - 상위폴더
: ./ - 현재폴더 기준
: / - 최상위 root
<tr> - 행
<td> - 셀
<th> - 셀 : bold, 가운데정렬 기본
colspan, rowspan은 td 또는 th에 사용
1. 열병합 : colspan="개수"
2. 행병합 : rowspan="개수"
cellspacing : 셀과 셀사이 공백 X
get - 입력된 값들을 url주소에 보여지면서 전송되는 형태
구조 : http://domain:port/파일이름?name=value&name=value&...
보안상 주로 Select전용
ex) 게시판 글번호, 페이지번호
post- 전송되는 정보들이 request의 body영역에 숨겨져서 전송된다.
url주소에 노출이 안된다!!!
주로 update, delete, insert일때 많이 사용한다.
name="" 또는 id="" - 주로 JavaScript 또는 jQuery에서 form을 접근할 때 필요
name
: submit할때 값을 전송하기 때문에 필수 속성
radio
: 반드시 그룹이 되어야 할 영역의 name을 동일하게 해줘야 단일 선택이 가능하다.
<input type="radio" name="gender" value="man" checked="checked">남자
<input type="radio" name="gender" value="woman">여자
<input type="checkbox" name="hobby" value="등산">등산
<input type="checkbox" name="hobby" value="수영" checked="checked">수영
<input type="checkbox" name="hobby" value="낚시">낚시
<input type="checkbox" name="hobby" value="골프" checked="checked">골프
<input type="checkbox" name="hobby" value="탁구">탁구
<input type="hidden" name="addr" value="seoul">
<input type="hidden" name="message" value="하잉">
<input type="hidden" name="pageNum" value="3">
<input type="submit" value="전송" name="sub">
<input type="reset" value = "취소">
<input type="button" value="클릭">
<input type="file" name="file">
<button type="button">눌러봐1</button>
<button type="reset">눌러봐2</button>
<button type="submit">눌러봐3</button>
<input type="date" name="birth" min="2022-03-01" max="2022-04-06"><p>
<input type="number" name ="age" placeholder="숫자만입력"><p>
<input type="color" name="bgColor"><p>
<input type="email" name="email" required="required"><p> <!-- 유효성체크를 해줌 -->
<input type="range" name="test"><p>
<input type="text" name="jumin" required="required" placeholder="주민번호입력"><p>
<ul type="circle">
<li>과일
<ol>
<li>딸기</li>
<li>복숭아</li>
<li>사과</li>
<li>포도</li>
</ol>
</li>
<li>야채</li>
<li>고기</li>
</ul>
<ol>
<li>과일
<ol>
<li>딸기</li>
<li>복숭아</li>
<li>사과</li>
<li>포도</li>
</ol>
</li>
<li>야채</li>
<li>고기</li>
</ol>
<table>
<tr>
<td rowspan="3" width="150">
<a href="http://www.naver.com" target="a">naver</a>
</td>
</tr>
<tr>
<td>
<iframe src="http://www.daum.net" name="a" frameborder="0" width="100%"></iframe>
</td>
</tr>
</table>