๋ชฉ์ฐจ
1. 2023.11.28(ํ)
F_WebApp01
ใด C:\WebStudy\WebApp01\WebContent

์น์ปจํ
ํธ๋ผ๋ ๊ณต๊ฐ์์ web-inf๋ ํด๋ผ์ด์ธํธ๋ ์ ๊ทผํ ์ ์๊ฒ ์ด๋ฃจ์ด์ ธ ์๋ค.
๋์ค์ ๊ทธ๊ฒ์ ์ด์ฉํด์ ๋ญ๊ฐ๋ฅผ ํ ๊ฒ.
์ด ๊ณต๊ฐ์ ์๋ฒ์ชฝ์์๋ ์ ๊ทผ์ด ๊ฐ๋ฅํ์ง๋ง ํด๋ผ์ด์ธํธ๋ ์ ๊ทผ์ด ๋ถ๊ฐํจ.
์๋ฐ์์ private์ ์ ์ฌ
--> ๋ฌธ์๋ฅผ web-inf์ ๋ง๋ค๋ฉด ํ์ด์ง์์ 404์๋ฌ๊ฐ ๋์จ๋ค.
ใด 400๋ฒ๋๋ ํด๋ผ์ด์ธํธ ์๋ฌ 500๋ฒ๋ ๋ ์๋ฒ์ชฝ ์๋ฌ
ใดใดTest004.html_๋ฐ์ดํฐ ์ ๋ ฅ ๊ด๋ จ ํ๊ทธ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test004.html</title>
</head>
<body>
<div>
<h1>๋ฐ์ดํฐ ์
๋ ฅ ๊ด๋ จ ํ๊ทธ</h1>
<hr>
</div>
<div>
<!-- ์
๋ ฅํ ๋ด์ฉ์ด ํผํ๊ทธ์ ๋ค์ด์ผ ์์ด์ผ ๋์ค์ ์์ฑ์ผ๋ก ์ด๋ค
check -->
<form>
์ด๋ฆ <input type = "text"><br>
<!-- ํ์
์ ๋ฌด์์ผ๋ก ์ง์ ํ๋์ ๋ฐ๋ผ์ ๋ฌ๋ผ์ง ์ง๊ธ์ text๋ฅผ ๋ฃ์ด์ ํ
์คํธ๋ฐ์ค๊ฐ ๋์ด -->
๊ตญ์ด <input type = "text"><br>
์์ด <input type = "text"><br>
์ํ <input type = "text"><br>
<br>
<input type = "button" value = "๊ฒฐ๊ณผ">
<input type = "reset" value = "์ทจ์">
<!-- ํ์
์ ํ
์คํธ๊ฐ ์๋ ๋ฒํผ์ผ๋ก ๋๋ฌ์ ๋ฒํผ์ด ๋์จ๋ค. ๋ฆฌ์
์ ๋ณ๋๋ก ์คํฌ๋ฆฝํธ ์ฒ๋ฆฌ๋ฅผ ํ์ง ์๋๋ผ๋
์ทจ์ ๋ฒํผ์ ๋๋ฅด๋ฉด form์์ ์๋ ๋ด์ฉ์ ์ง์ธ ์ ์๋ค. ์ฒ์ ์์ฒญ๋ฐ์ ์ํ๋ก ๋๋๋ฆฌ๋ ๊ธฐ๋ฅ -->
<br>
์ด์ <input type = "text"> ํ๊ท <input type = "text"><br>
</form>
</div>
</body>
</html>
ใดใดTest005.html_๋ฐ์ดํฐ ์ ๋ ฅ ๊ด๋ จ ํ๊ทธ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test005.html</title>
<style type="text/css">
/* ์คํ์ผ์ด๋ผ๋ ํ๊ทธ๋ฅผ ์ง์ ์ฐ๊ฒ๋๋ฉด ๊ทธ ์ฌ์ด์ ๊ณต๊ฐ์ css์ ์์ญ */
*
{
font-size : 20pt;
font-weight : bold;
font-family : ๋ง์ ๊ณ ๋;
color : #334433;
}
</style>
</head>
<body>
<div>
<h1>๋ฐ์ดํฐ ์
๋ ฅ ๊ด๋ จ ํ๊ทธ</h1>
<hr>
</div>
<div>
<form>
์ด๋ฆ <input type="text"><br>
๊ตญ์ด <input type="text"><br>
์์ด <input type="text"><br>
์ํ <input type="text"><br>
<br>
<input type="button" value="๊ฒฐ๊ณผ">
<input type="reset" value="์ทจ์">
<br>
์ด์ <input type="text"> ํ๊ท <input type="text"><br>
</form>
</div>
</body>
</html>
ใดใดTest006.html_๋ฐ์ดํฐ ์ ๋ ฅ ๊ด๋ จ ํ๊ทธ(์๋ฐ์คํฌ๋ฆฝํธํฌํจ)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test005.html</title>
<style type="text/css">
*
{
font-size : 20pt;
font-weight : bold;
font-family : ๋ง์ ๊ณ ๋;
color : #334433;
}
</style>
<!-- ์๋ฐ์คํฌ๋ฆฝํธ์ ๊ณต๊ฐ -->
<script type = "text/javascript">
function actionPerformed()
{
//alert("ํจ์ ํธ์ถ ํ์ธ~!!!");
/* ๊ฒฝ๊ณ ์ฐฝ ํตํด ํจ์ํธ์ถํ์ธ์ด๋ผ๊ณ ๋จ๊ฒ ํ๊ฒ ๋ค.
์๋ฐ์คํฌ๋ฆฝํธ์์์ ์ฃผ์์ ์๋ฐ์ ๊ฐ๋ค๊ณ ์๊ฐํด๋ ๋จ.*/
// ์ฃผ์
var vKor = document.getElementById("kor").value;
/* id๊ฐ kor์ธ ์๋ฆฌ๋จผํธ๋ฅผ ๋ถ์ก์์จ๋ค. html์์ ์ด๋ค๊ณ ํด์ ์คํฌ๋ฆฝํธ์์ ๋ณผ ์ ์๋๊ฒ์ด ์๋.
์ด๊ณณ์ ์คํฌ๋ฆฝํธ์ ๊ณต๊ฐ. ์ฌ๊ธฐ์๋ html์์ ์ด ๊ฒ์ ํ๋ํ๋ ๊ฐ์ ธ์์ผํจ
document ๋ ๋ฌธ์๊ฐ์ฒด
์ฆ ๋ฌธ์๊ฐ์ฒด์์ ์์์ ๋ค์ด์๋ ๊ฐ์ id๋ก ๊ฐ์ ธ์จ๋ค = getElementById*/
var vEng = document.getElementById("eng").value;
var vMat = document.getElementById("mat").value;
// ๋ณ์ ๊ฐ์ ธ์ค๊ธฐ(๊ธฐ๋ณธ์ ์ผ๋ก ๋ฌธ์ํ)
var vTot = 0;
var vAvg = 0;
// ๋ณ์ ์ ์ธ
vTot = parseInt(vKor) + parseInt(vEng) + parseInt(vMat);
// ์ ์ํํ๋ก ๋ณํ ํ ํฉ ๊ตฌํ๊ธฐ
vAvg = Math.round(vTot/3);
document.getElementById("tot").value = vTot;
document.getElementById("avg").value = vAvg;
// ๊ฒฐ๊ณผ๊ฐ์ tot์ด๋ผ๋ id๋ฅผ ์ฐ๋ ์ปจํธ๋กค์ ๋ฒจ๋ฅ๊ฐ์ผ๋ก ๋ฃ์ด์ค
}
</script>
</head>
<body>
<div>
<h1>๋ฐ์ดํฐ ์
๋ ฅ ๊ด๋ จ ํ๊ทธ</h1>
<hr>
</div>
<div>
<form>
์ด๋ฆ <input type="text" id="name"><br>
<!-- ํ์
์ ๋ฌด์์ผ๋ก ์ง์ ํ๋์ ๋ฐ๋ผ์ ๋ฌ๋ผ์ง ์ง๊ธ์ text๋ฅผ ๋ฃ์ด์ ํ
์คํธ๋ฐ์ค๊ฐ ๋์ด -->
๊ตญ์ด <input type="text" id="kor"><br>
์์ด <input type="text" id="eng"><br>
์ํ <input type="text" id="mat"><br>
<br>
<!-- ๊ฒฐ๊ณผ ๋ฒํผ์ ํด๋ฆญ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์ ๋ actionPerformed() ์๋ฐ์คํฌ๋ฆฝํธ ํจ์ ํธ์ถ
== ํด๋ฆญ์ด๋ฒคํธ๊ฐ on ๋์์ ๋. ๋ณดํต ์ด๋ฒคํธ ํธ๋ค๋ฌ๋ผ๊ณ ๋ถ๋ฅธ๋ค. onclick ์์ฒด๋ ์ด๋ฒคํธ๊ฐ ์๋๊ณ click์ด๋
์ด๋ฒคํธ ์์ on์ด ๋ถ์ ๊ฒ-->
<input type="button" value="๊ฒฐ๊ณผ" onclick="actionPerformed()">
<input type="reset" value="์ทจ์">
<br>
์ด์ <input type="text" id="tot"> ํ๊ท <input type="text" id="avg"><br>
</form>
<!-- ์๋ฐ์ฒ๋ผ ์ปดํ์ผ๋๊ณ ์คํ๋๋ ํํ๊ฐ ์๋๋ผ ์ค๊ฐ์ ๋์ด์ฐ๊ธฐ ์์ ๋ ๊ฒ์ด ์ข๋ค
๋ฆฌ์์ค ๊ด๋ฆฌ ์ฐจ์-->
</div>
</body>
</html>
ใดใดTest007.html_์ํ์ ๋ฃ๊ธฐ / ๊ณต๋ฐฑ ๋ฃ๊ธฐ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test007.html</title>
</head>
<body>
<div>
<h1>์ํ์ ๋ฃ๊ธฐ / ๊ณต๋ฐฑ ๋ฃ๊ธฐ</h1>
<hr>
</div>
<div>
์ํ์ ์ ์ฌ์ฉํด๋ณด์
<hr size="20" color="red">
<br><br>
<!-- css๊ฐ ์๋ ๋ฐฉ์์ผ๋ก ๊พธ๋ฏธ๋ ๊ฒ์ ๋ฐ๋์งํ์ง ์๋ค.
size๋ ์ํ์ ์ ๋๊ป๋ฅผ ์๋ฏธํจ -->
์์์ ์ด ์๋ ์ํ์
<hr size="2" noshade="noshade">
<br><br>
์ํ์ ์ ์ํ ๊ธธ์ด ์ค์
<hr size="5" width="400">
<hr size="5" width="200">
<br><br>
์ํ์ ์ ์ ๋ ฌ
<hr size="5" width="50%" align="left">
<hr size="7" width="50%" align="right">
<hr size="9" width="50%" align="center">
<hr size="9" width="50%">
<!-- width ๊ฐ์ %๋ก ์ง์ ํ๋ฉด ๋ธ๋ผ์ฐ์ ์ ๊ธธ์ด์ ๋ฐ๋ผ์ ๋ฌ๋ผ์ง
align์ง์ ์ํ๋ฉด ๋ํดํธ๊ฐ์ center -->
</div>
<div>
๊ณต๋ฐฑ ๋ฐ์<br>
๊ณต๋ฐฑ ๊ณต๋ฐฑ<br>
<!-- ์ด ์ฌ์ด ๊ณต๋ฐฑ์ ์๋ฏธ ์์ -->
๊ณต๋ฐฑ ๊ณต๋ฐฑ<br>
<!-- ์ด๊ฒ ๊ณต๋ฐฑ ํ๋์ด๋ฉฐ ์ฌ๋ฌ๊ฐ๋ฅผ ๋ง๋ค๊ณ ์ถ์ผ๋ฉด ์ฌ๋ฌ๊ฐ๋ฅผ ์ด์ด์ผ ํจ -->
</div>
<!-- ์ฐ์ง๋ง๊ฒ check-->
<div>
<font size="1">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="2">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="3">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="4">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="5">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="6">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="7">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="8">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="9">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="10">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<!-- ๊ธ๊ผด, ํฌ๊ธฐ ์ง์ ํ๋ ์๋ฆฌ๋จผํธ
size๋ 1๋ถํฐ 7๊น์ง์ด๋ฉฐ 8์ด๋ค๊ณ ์๋ฌ๋ ๋์ง ์์ง๋ง ๋ ์ปค์ง์ง ์๋๋ค.-->
<font size="4" color="green">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="4" color="#00ff00">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
<font size="4" color="red" face="๊ถ์์ฒด">F๊ฐ์์ฅ ์๊ตฌ๋ค ํ์ดํ
</font><br>
</div>
</body>
</html>
ใดใดTest008.html_๊ธฐํ ๊ธ๊ผด ๊พธ๋ฏธ๊ธฐ ํ๊ทธ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test008.html</title>
</head>
<body>
<div>
<h1>๊ธฐํ ๊ธ๊ผด ๊พธ๋ฏธ๊ธฐ ํ๊ทธ</h1>
<hr>
</div>
<!-- ์ฐ์ง๋ง์๋ผ -->
<div>
๊ธฐ๋ณธ ํ
์คํธ<br><br>
<b>๊ธ์๋ฅผ ๊ตต๊ฒ(์งํ๊ฒ) ์ค์ ํ๊ธฐ</b><br><br>
<i>์ดํ
๋ฆญ์ฒด(๊ธฐ์ธ์ฌ)๋ก ์ค์ ํ๊ธฐ</i><br><br>
<u>๋ฐ์ค ๊ธ๊ธฐ</u><br><br>
<tt>ํ์ดํ์ฒด๋ก ์ค์ ํ๊ธฐ</tt><br><br>
<small>ํ์ฌ ๊ธ์ ํฌ๊ธฐ๋ณด๋ค ํ ๋จ๊ณ ์ค์ด๊ธฐ</small><br><br>
<big>ํ์ฌ ๊ธ์ ํฌ๊ธฐ๋ณด๋ค ํ ๋จ๊ณ ํค์ฐ๊ธฐ</big><br><br>
<strong>๊ธ์ ๊ฐ์กฐํ๊ธฐ</strong><br><br>
<s>์ทจ์์ ๋ฃ๊ธฐ</s><br><br>
<em>๊ฐ์กฐํ๊ธฐ, ๊ธ์ ๋น์ค๋ฌํ ์ถ๋ ฅ</em><br><br>
์๋ ์ฒจ์ ํ
์คํธํ๊ธฐ<sub>์๋์ฒจ์</sub><br><br>
์ ์ฒจ์ ํ
์คํธํ๊ธฐ<sup>์์ฒจ์</sup><br><br>
</div>
</body>
</html>
ใดใดTest009.html_pre ํ๊ทธ / xmp ํ๊ทธ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test009.html</title>
</head>
<body>
<div>
<h1>pre ํ๊ทธ / xmp ํ๊ทธ</h1>
<hr>
</div>
๋ ๋ณด๊ธฐ๊ฐ ์ญ๊ฒจ์ ๊ฐ์ค ๋์๋
๋ง ์์ด ๊ณ ์ด ๋ณด๋ด๋๋ฆฌ์ค๋ค.
<br><br>
<pre>
<font color="blue">๋ ๋ณด๊ธฐ๊ฐ ์ญ๊ฒจ์ ๊ฐ์ค ๋์๋</font>
๋ง ์์ด ๊ณ ์ด ๋ณด๋ด๋๋ฆฌ์ค๋ค.
</pre>
<!-- pre์์ ๋ค์ด์๋ ๋ด์ฉ์ ๋์ด์ฐ๊ธฐ ๊ฐํ ๋ค ์ ์ฉ๋จ -->
<xmp>
<font color="blue">๋ ๋ณด๊ธฐ๊ฐ ์ญ๊ฒจ์ ๊ฐ์ค ๋์๋</font>
๋ง ์์ด ๊ณ ์ด ๋ณด๋ด๋๋ฆฌ์ค๋ค.
</xmp>
<!-- xmp ํ๊ทธ๋ ๋ฌธ์์ ๋์ด์ฐ๊ธฐ, ๊ฐํ์ ๋ํด์ ํ๊ทธ ์์ฒด๋ ๋ค ๋ณด์ฌ์ค -->
<br><br>
</body>
</html>
ใดใดTest010.html_์ด๋ฏธ์ง ๋ค๋ฃจ๊ธฐ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test010.html</title>
</head>
<body>
<div>
<h1>์ด๋ฏธ์ง ๋ค๋ฃจ๊ธฐ</h1>
<hr>
</div>
<div>
<h2>์ด๋ฏธ์ง ํฌ๊ธฐ ๋ฐ ์ ๋ ฌ์ ํ์ธํด ๋ณด๋๋ก ํ์</h2>
<img src="images/img_02.gif">
<img src="images/img_02.gif" width="100">
<img src="images/img_02.gif" height="50">
<!-- ๋์ด๋ ๋์ด์์ฑ๋ง ์ง์ ํ๋๋ฐ ์ข
ํก๋น๊ฐ ๊นจ์ง์ง ์๋ ์ํ์์ ํฌ๊ธฐ๊ฐ ๋ณ๊ฒฝ๋จ -->
<br>
<img src="images/img_02.gif" width="200" height="100">
<!-- ๋น์จ๊นจ์ง๋ชจ์ต -->
<br><br>
<img alt="" src="images/img_02.gif" width="100" border="10"
vspace="200" hspace="100" align="top">์ ์๋ ์ ๋ ฌ ์ค์ต
<!-- border๋ ์ก์ ๊ฐ์ ๊ฒ ๋ง๋ค์ด์ค vspace๊ฐ ์ํ ๊ณต๋ฐฑ hspace๊ฐ ์ข์ฐ ๊ณต๋ฐฑ align์ ์ด๋๋ถํฐ ์ ๋ ฌํ ๊ฑด์ง-->
</div>
</body>
</html>
ใดใดTest011.html_ํ์ดํผ๋งํฌ ์ค์ต
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<div>
<h1>ํ์ดํผ๋งํฌ ์ค์ต</h1>
<hr>
</div>
<!-- ์ ๋๊ฒฝ๋ก์ ์๋๊ฒฝ๋ก์ ๊ฐ๋
๋ฃจํธ๋ถํฐ ์์ํ๋ ๊ฒฝ๋ก๊ฐ ์ ๋๊ฒฝ๋ก(ํ๋๋์คํฌ๋ถํฐ)
์๋๊ฒฝ๋ก๋ ๋ด๊ฐ ํ์ฌ ์๋ ์์น์ ๋ฐ๋ผ ๋ค๋ฅธ ๊ฒ -->
<div>
<a href="http://localhost:3306/WebApp01/Test011_1.html">์ ๋๊ฒฝ๋ก ์ง์ ๋ฐฉ์</a>
<!-- <a href="http://www.text.com/Test011_1.html">์น ์์ ์ฃผ์ ์ง์ ๋ฐฉ์</a>
<a href="http://www.text.com">์น ์์ ์ฃผ์ ์ง์ ๋ฐฉ์</a>
์ฐ๋ฆฌ๋ ๋ฑ๋กํ์ง ์์์ผ๋ฏ๋ก ๋งจ ์์ฒ๋ผ ํด์ผ ํจ-->
<br><br>
<a href="./Test011_1.html">์๋๊ฒฝ๋ก ์ง์ ๋ฐฉ์1</a>
<!-- ํ์ฌ์์น ๊ธฐ์ค์ผ๋ก ๊ฒฝ๋ก ์ง์ -->
<br><br>
<a href="Test011_1.html">์๋๊ฒฝ๋ก ์ง์ ๋ฐฉ์2</a>
<!-- ์ด๋ ๊ฒ๋ ๊ฐ๋ฅ -->
<br><br>
<!-- check -->
<!-- C:\WebStudy\WebApp01\WebContent\Test011_1.html
๊ฐ์ง ๊ฒฝ๋ก
C:\WebStudy\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\WebApp01\Test011_1.html
์ด๊ฒ์ด ์ง์ง ๊ฒฝ๋ก๋ผ๊ณ ์๊ฐํ๋ฉด ๋๋ค.-->
<a id="top">์ฑ
๊ฐํผ ์์น</a>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<!-- ๊ฐํ์ ๋ง์ด ํด์ ๊ฑฐ๋ฆฌ๋ฅผ ๋ง๋ค์ -->
<a href="#top">์ฑ
๊ฐํผ ์์น๋ก ์ด๋ํ๊ธฐ</a>
</div>
</body>
</html>
ใดใดTest011_1.html_ํ์ดํผ๋งํฌ ์ค์ต
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test011_1.html</title>
</head>
<body>
<div>
<h1>ํ์ดํผ๋งํฌ ์ด๋ ์ค์ต</h1>
<hr>
</div>
<div>
<h2>๋งํฌ ์ด๋ ํ์ด์ง~!!!</h2>
</div>
</body>
</html>
ใดใดTest012.html_ํ ์ด๋ธ(ํ) ๋ง๋ค๊ธฐ - ํ ์ด๋ธ์ ์์ฑ ์ ์ฉํ๊ธฐ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test012.html</title>
</head>
<body>
<div>
<h1>ํ
์ด๋ธ(ํ) ๋ง๋ค๊ธฐ - ํ
์ด๋ธ์ ์์ฑ ์ ์ฉํ๊ธฐ</h1>
<h2>ํ
์ด๋ธ์ ์์ฑ ์ ์ฉํ๊ธฐ</h2>
<hr>
</div>
<div>
<!-- CSS๋ฅผ ํตํด ๊ด๋ฆฌํด์ผ ํ ์์ฑ๋ค -->
<table border="10" background="images/img_03.jpg" cellpadding="20" cellspacing="30">
<tr>
<th>ํ์</th>
<th>์ค์</th>
</tr>
<tr>
<td>๊น์น์ฐ๊ฒ</td>
<td>์ง์ฅ๋ฉด</td>
</tr>
<tr>
<td>๋์ฅ์ฐ๊ฒ</td>
<td>์งฌ๋ฝ</td>
</tr>
<tr>
<td>์๋๋ถ์ฐ๊ฒ</td>
<td>์ฌ์ฒํ์์ก</td>
</tr>
</table>
</div>
<!-- ํ
์ด๋ธ ํ๊ทธ๋ฅผ ๋ง๋ค๋ฉด ์์ฃผ ์์ ๋น ๋ค๋ชจ๊ฐ ์๋ ๊ฒ๊ณผ ๋๊ฐ๊ณ
border๋ ํ
์ด๋ธ ํ
๋๋ฆฌ์ ๊ตต๊ธฐ๋ฅผ ๋งํจ border๋ฅผ ์ค์ ํ์ง ์์ผ๋ฉด ๋ค๋ชจ๊ฐ ๋ง๋ค์ด์ง์ง๋ง
๊ตต๊ธฐ๊ฐ ์๊ธฐ ๋๋ฌธ์ ๋ณด์ด์ง ์๋๋ค. ์ด ๋ํ ๋์ค์ CSS๋ก ์ ์ดํจ
tr์ ์ธ๋ก ๊ตฌ๋ถํ๋ ๋ฐ์ค td๋ ๊ฐ๋ก ๋ฐ์ค tr์ ์๊ฐ์ ์ผ๋ก ๋ค์ด์ค์ง ์๋๋ค.
th์์ ์๋๊ฑด ์ค์์ ๋ ฌ ๋ ์ฑ๋ก ๋์ค๊ณ ๊ธ์๋ ์กฐ๊ธ ๋ ์งํ๊ฒ ๋์จ๋ค. -->
</body>
</html>
ใดใดTest013.html_ํ ์ด๋ธ ์ด/ํ ๋ณํฉ ์ค์ต
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test013.html</title>
</head>
<body>
<div>
<h1>ํ
์ด๋ธ ์ด/ํ ๋ณํฉ ์ค์ต</h1>
<hr>
</div>
<!-- ์
๋ ฅํ๋ฉด์ ์ด๋ป๊ฒ ๋ณํํ๋์ง ํ์ธ -->
<div>
<table border = "1">
<tr>
<td colspan="2">๊ฐ๋จ๊ตฌ</td>
<td colspan="2">๋
ธ์๊ตฌ</td>
<!-- ์ปฌ๋ผ ๋๊ฐ๋ฅผ ์ฐจ์งํ๋๋ก colspanํ์ฉ -->
</tr>
<tr>
<td>์ญ์ผ๋</td>
<td>๋
ผํ๋</td>
<td>์๊ณ๋</td>
<td>์ค๊ณ๋</td>
</tr>
</table>
<br><br>
<!-- th ์
์ ํ์ฉ -->
<table border = "1">
<tr>
<th colspan="2">๊ฐ๋จ๊ตฌ</td>
<th colspan="2">๋
ธ์๊ตฌ</td>
<!-- ์ปฌ๋ผ ๋๊ฐ๋ฅผ ์ฐจ์งํ๋๋ก colspanํ์ฉ -->
</tr>
<tr>
<td>์ญ์ผ๋</td>
<td>๋
ผํ๋</td>
<td>์๊ณ๋</td>
<td>์ค๊ณ๋</td>
</tr>
</table>
<br><br>
<!-- ๊ฐ๋จ๊ตฌ์ ์ฒญ๋ด๋ ์ถ๊ฐ -->
<!-- ๋
ธ์๊ตฌ์ ํ๊ณ๋ ์ถ๊ฐ -->
<table border = "1">
<tr>
<th colspan="3">๊ฐ๋จ๊ตฌ</td>
<th colspan="3">๋
ธ์๊ตฌ</td>
<!-- ์ปฌ๋ผ ๋๊ฐ๋ฅผ ์ฐจ์งํ๋๋ก colspanํ์ฉ -->
</tr>
<tr>
<td>์ญ์ผ๋</td>
<td>๋
ผํ๋</td>
<td>์ฒญ๋ด๋</td>
<td>์๊ณ๋</td>
<td>์ค๊ณ๋</td>
<td>ํ๊ณ๋</td>
</tr>
</table>
<!-- ๋ณํฉ๊ณผ ๊ด๋ จ๋ ํ
์ผ๋จ ๋ณํฉ ์๊ฐํ์ง๋ง๊ณ ๋ค ์ฑ์๋ฃ๊ณ ์์๋ ๊ฒฐํฉ์ rowspan ์ข์ฐ๊ฒฐํฉ์ colspan ํ์ฉํด์ ์์ฑ์ํค๊ธฐ -->
<!-- ๊ฐ๋จ๊ตฌ -> ์ญ์ผ๋ ๋
ผํ๋
๋
ธ์๊ตฌ -> ์๊ณ๋ ์ค๊ณ๋ ํ๊ณ๋ ์๊ณ๋ -->
<br><br>
<table border = "1">
<tr>
<th>๊ฐ๋จ๊ตฌ</td>
<th>๊ฐ๋จ๊ตฌ</td>
<th>๋
ธ์๊ตฌ</td>
<th>๋
ธ์๊ตฌ</td>
<th>๋
ธ์๊ตฌ</td>
<th>๋
ธ์๊ตฌ</td>
</tr>
<tr>
<td>์ญ์ผ๋</td>
<td>๋
ผํ๋</td>
<td>์๊ณ๋</td>
<td>์ค๊ณ๋</td>
<td>ํ๊ณ๋</td>
<td>์๊ณ๋</td>
</tr>
</table>
<br><br>
<table border = "1">
<tr>
<th colspan="2">๊ฐ๋จ๊ตฌ</td>
<th colspan="4">๋
ธ์๊ตฌ</td>
</tr>
<tr>
<td>์ญ์ผ๋</td>
<td>๋
ผํ๋</td>
<td>์๊ณ๋</td>
<td>์ค๊ณ๋</td>
<td>ํ๊ณ๋</td>
<td>์๊ณ๋</td>
</tr>
</table>
<br><br>
<!--
๊ฐ๋จ๊ตฌ ๋
ธ์๊ตฌ
์ญ์ผ๋ ๋
ผํ๋ ์๊ณ๋ ์ค๊ณ๋ ํ๊ณ๋ ์๊ณ๋
↓
๋
ธ์๊ตฌ ์๊ณ๋
์ค๊ณ๋
๊ฐ๋จ๊ตฌ ์ญ์ผ๋
๋
ผํ๋
-->
<table border = "1">
<tr>
<th rowspan="4">๋
ธ์๊ตฌ</td>
<td>์๊ณ๋</td>
</tr>
<tr>
<td>์ค๊ณ๋</td>
</tr>
<tr>
<td>ํ๊ณ๋</td>
</tr>
<tr>
<td>์๊ณ๋</td>
</tr>
<tr>
<th rowspan="2">๊ฐ๋จ๊ตฌ</td>
<td>์ญ์ผ๋</td>
</tr>
<tr>
<td>๋
ผํ๋</td>
</tr>
</table>
<!--
๋
ธ์๊ตฌ ์๊ณ๋
์ค๊ณ๋
๊ฐ๋จ๊ตฌ ์ญ์ผ๋
๋
ผํ๋
์ฒญ๋ด๋
์ํ๊ตฌ ๋ถ๊ด๋
๋
น๋ฒ๋
์ญ์ด๋
์ ์ฌ๋
-->
<table border = "1">
<tr>
<th rowspan="2">๋
ธ์๊ตฌ</td>
<td>์๊ณ๋</td>
</tr>
<tr>
<td>์ค๊ณ๋</td>
<tr>
<th rowspan="3">๊ฐ๋จ๊ตฌ</td>
<td>์ญ์ผ๋</td>
</tr>
<tr>
<td>๋
ผํ๋</td>
</tr>
<tr>
<td>์ฒญ๋ด๋</td>
</tr>
<tr>
<th rowspan="4">์ํ๊ตฌ</td>
<td>๋ถ๊ด๋</td>
</tr>
<tr>
<td>๋
น๋ฒ๋</td>
</tr>
<tr>
<td>์ญ์ด๋</td>
</tr>
<tr>
<td>์ ์ฌ๋</td>
</tr>
</table>
</div>
</body>
</html>
ใดใดTest014.html_ํ ์ด๋ธ ์ด/ํ ๋ณํฉ ์ค์ต2
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test014.html</title>
</head>
<body>
<div>
<h1>ํ
์ด๋ธ ์
๋ณํฉ ์ค์ต2</h1>
<hr>
</div>
<div>
<table border="1" style="width:200px">
<tr>
<td rowspan="6" style="vertical-align:top">a</td>
<td colspan="2">b</td>
<td colspan="2">c</td>
</tr>
<tr>
<td rowspan="3">d</td>
<td>e</td>
<td rowspan="2">f</td>
<td>g</td>
</tr>
<tr>
<td>h</td>
<td>i</td>
<tr>
<td>j</td>
<td>k</td>
<td>l</td>
</tr>
</tr>
<td colspan="4">m</td>
</tr>
<tr>
<td colspan="2">n</td>
<td>o</td>
<td>p</td>
</tr>
</table>
</div>
</body>
</html>
ใดใดTest015.html_์์ง์ด๋ ํ๊ทธ ์ค์ต
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test015</title>
</head>
<body>
<div>
<h1>์์ง์ด๋ ํ๊ทธ ์ค์ต</h1>
<hr>
</div>
<!-- ๊ทธ๋ฅ ์๊ณ ๋ง ์์~ -->
<div>
<marquee>๊ธฐ๋ณธ์ ์ธ ๋ฐฉํฅ ์ผ์ชฝ์ผ๋ก ์ด๋</marquee>
<marquee behavior="alternate">์ข์ฐ ์๋ณต ์ด๋</marquee>
<marquee direction="right">์ค๋ฅธ์ชฝ์ผ๋ก ์ด๋</marquee>
<marquee direction="up">์์ชฝ์ผ๋ก ์ด๋</marquee>
</div>
<div>
<h2>์๋ ์กฐ์ : scrollamount</h2>
<p>**์ซ์์ ์ฐจ์ด์ ๋ฏผ๊ฐ.์ซ์๊ฐ ํด์๋ก ์๋๊ฐ ๋นจ๋ผ์ง**</p>
<marquee behavior="alternate" scrollamount="1">
<img alt="" src="images/img_04.gif">
</marquee>
<marquee behavior="alternate" scrollamount="100">
<img alt="" src="images/img_04.gif">
</marquee>
<marquee behavior="alternate" scrollamount="50" background="pink">
<img alt="" src="images/img_04.gif">
</marquee>
</div>
<div>
<h2>์๋ ์กฐ์ : scrolldelay</h2>
<p>**์ง์ฐ์ํด. ์ซ์๊ฐ ๋ฌ๋ผ์ ธ๋ ํฐ ์ฐจ์ด๊ฐ ์์**</p>
<marquee behavior="alternate" scrolldelay="1">
<img alt="" src="images/img_04.gif">
</marquee>
<marquee behavior="alternate" scrolldelay="100">
<img alt="" src="images/img_04.gif">
</marquee>
<marquee behavior="alternate" scrolldelay="50" background="pink">
<img alt="" src="images/img_04.gif">
</marquee>
</div>
<div>
<h2>์์๋๋ก ์์ง์ด๋ฉฐ ์์ผ๋ก ์ด๋</h2>
<p>**marguee ํ๊ทธ ์ค์ฒฉ ๊ฐ๋ฅ**</p>
<marquee>
<marquee direction="down" behavior="alternate" height="100">
์ฐ๋ฆฌ ๋ชจ๋ ๊ธฐ์ด๋
์๋ค~!!
</marquee>
</marquee>
</div>
</body>
</html>
ใดใดTest016.html_๋ฉํ ํ๊ทธ ์ค์ต
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test016.html</title>
<meta name="keywords" content="html,์ฐ์ต,์น">
<meta name="description" content="html ์ฐ์ต ํ์ด์ง์
๋๋ค.">
<meta name="author" content="ohsukyoung">
<meta name="generator" content="eclipse">
<!-- **ํ
์คํธ ๊ธฐ๋ฐ์ ํ๊ฒฝ์์ ์ด ๋ฌธ์๋ฅผ ๊ด๋ฆฌํ๊ธฐ ์ํด** -->
<!-- ์๋ฐDOC ์๋ฐ ๋ฌธ์ํ ์ฃผ์์ด ์กด์ฌ -->
<meta http-equiv="refresh" content="5; url=http://www.naver.com"> <!-- 5์ด ํ ํ์ด์ง ์ด๋ -->
</head>
<body>
<div>
<h1>๋ฉํ ํ๊ทธ ์ค์ต</h1>
<p>๋ฉํ ๋ฐ์ดํฐ: ๋ฐ์ดํฐ๋ฅผ ์ํ ๋ฐ์ดํฐ</p>
<hr>
</div>
ํ๋~ ๋์ธ~ ์ธ์ฃ~ ๋ค์ฃ~ ์ง !!!
</body>
</html>
ใดใดTest017.html_ํ ์ค ๋ฐ์ดํฐ ์ ๋ ฅ ์์ / ์ํธ ์ ๋ ฅ ์์
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test017.html</title>
</head>
<body>
<div>
<h1>ํ ์ค ๋ฐ์ดํฐ ์
๋ ฅ ์์ / ์ํธ ์
๋ ฅ ์์</h1>
<hr>
</div>
<div>
<form>
ํ์์์ด๋
<input type="text" name="name" size="20"
maxlength="10" placeholder="์์ด๋"><br>
<!-- **maxlength: ๊ธ์์ ์ ํ** -->
<!-- **placeholder: ์ฌ์ฉ์์๊ฒ ์
๋ ฅ์์ ์๋ ค์ฃผ๋ ํํ๋ก ๋ง์ด ์ฌ์ฉ** -->
ํจ์ค์๋
<input type="password" name="name" size="10"
maxlength="8" placehoder="ํจ์ค์๋"><br>
</form>
</div>
<!-- maxlength ํ์ฉ -->
<div>
<form>
ํด๋ํฐ ๋ฒํธ
<input type="text" name="phone1" size="5" maxlength="3"> -
<input type="text" name="phone1" size="6" maxlength="4"> -
<input type="text" name="phone1" size="6" maxlength="4">
</form>
</div>
</body>
</html>
ใดใดTest018.html_์ฌ๋ฌ ์ค ๋ฐ์ดํฐ ์ ๋ ฅ ๊ธ์์
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test018.html</title>
</head>
<body>
<div>
<h1>์ฌ๋ฌ ์ค ๋ฐ์ดํฐ ์
๋ ฅ ๊ธ์์</h1>
<hr>
</div>
<!--
๋ง์ ๋ด์ฉ์ ๊ธฐ์ฌํ ์ ์๋ ์๋ฆฌ๋จผํธ๋ก
ํ๊ทธ ์ฌ์ด์ ๊ณต๋ฐฑ ๋ฌธ์ ์ธ์
์ํฐํค ์
๋ ฅ์ ํตํ ๊ฐํ ์ฒ๋ฆฌ
-->
<div>
<form>
<textarea rows="10" cols="50">๋ง์ ๋ด์ฉ์ ๊ธฐ์ฌ</textarea>
<!-- **
textarea: pc ๋ฐ์ดํฐ ์์ญ(textareaํ๊ทธ ์ฌ์ด-์ฌ๋ ํ๊ทธ ๋ซ๋ ํ๊ทธ)์์ ๊ฐ์ ์ฒ๋ฆฌํจ(value ๊ฐ ์๋!)
ใด rows: ํ / cols: ๋๋น
โป ์ฃผ์์ฌํญ1) pc ๋ฐ์ดํฐ ์์ญ์์๋ ๋์ด์ฐ๊ธฐ ๊ณต๋ฐฑ๋ค์ด ๋ชจ๋ ์ธ์๋๊ธฐ ๋๋ฌธ์ ์กฐ์ฌํ ๊ฒ!
โป ์ฃผ์์ฌํญ2) ๊ฐํ์ br๋ก ์ฒ๋ฆฌX -> ๊ฐํ (\n) ์ฒ๋ฆฌO
** -->
<!-- **
textarea ์ฃผ์์ฌํญ1) ํ
์คํธ
-> ๋ง์ง๋ง ๊ธ์์ </textarea> ๋ถ์ฌ์ผํจ
ใด ์ด์ : ๊ณต๋ฐฑ์ธ์๋๋ฏ๋ก!
** -->
<textarea rows="10" cols="50">๋ง์ ๋ด์ฉ์ ๊ธฐ์ฌํ ์ ์๋ ์๋ฆฌ๋จผํธ
ํ๊ทธ์ ํ๊ทธ ์ฌ์ด์ ๊ณต๋ฐฑ ๋ฌธ์ ์ธ์ํ๋ค.
์ํฐํค ์
๋ ฅ์ ํตํ ๊ฐํ ์ฒ๋ฆฌ -> ์ด๋ ๊ฒ ์ฌ์ฉO</textarea>
<textarea rows="10" cols="50">๋ง์ ๋ด์ฉ์ ๊ธฐ์ฌํ ์ ์๋ ์๋ฆฌ๋จผํธ
ํ๊ทธ์ ํ๊ทธ ์ฌ์ด์ ๊ณต๋ฐฑ ๋ฌธ์ ์ธ์ํ๋ค.
์ํฐํค ์
๋ ฅ์ ํตํ ๊ฐํ ์ฒ๋ฆฌ -> ์ด๋ ๊ฒ ์ฌ์ฉX
</textarea>
<br>
<!-- **textarea ์ฃผ์์ฌํญ2) ํ
์คํธ** -->
ํ๋
๋์ธ
์
-> ํ๋(\n)๋์ธ(\n)์
์ผ๋ก ์ฒ๋ฆฌํ ๊ฒ!!
</form>
</div>
<div>
<form>
<input type="text" value="์
๋ ฅ ๋ด์ฉ ์ฒ๋ฆฌ">
<!-- **input: value์์ฑ์ ์์ฑ๊ฐ์ผ๋ก ๊ฐ์ ์ฒ๋ฆฌํจ** -->
</form>
</div>
</body>
</html>
ใดใดTest019.html_์ฌ๋ฌ ์ค ๋ฐ์ดํฐ ์ ๋ ฅ ๊ธ์์
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test019.html</title>
</head>
<body>
<div>
<h1>์ฌ๋ฌ ์ค ๋ฐ์ดํฐ ์
๋ ฅ ๊ธ์์</h1>
<hr>
</div>
<div>
<form>
<!-- **
์ฒดํฌ๋ฐ์ค
โป ์ฃผ์์ฌํญ1)
์๋์ ๋ด์ฉ์ ์์ ์ง๋ฌธ์ ๋ํด ๋ฌถ์ฌ์ ์ฒ๋ฆฌ๋์ด์ผํ๋ฏ๋ก
name์ ๊ฐ๊ฒํ์ฌ ๋ฌถ์์ฒ๋ฆฌ
โป ์ฃผ์์ฌํญ2)
์ฒดํฌ๋ฐ์ค๋ฅผ ์ ํํ์ ๋ ๊ฐ์ ๊ฐ์ ธ์ค๊ธฐ ์ํด์๋ value๋ฅผ ๋ฃ์ด์ค์ผ ํจ
โป ๋น๋ถ์ฌํญ)
ใด์น์ ํ ์ฝ๋: <label>๋ก ๋ฌถ์ด์ ํ
์คํธ ์ ํ์ ๊ฐ์ด ์ ํ๋๋ ๊ฒ
ใด๋ถ์น์ ํ ์ฝ๋: ์ฒดํฌ๋ฐ์ค๋ก๋ง ์ ํ๋๋ ๊ฒ
ใด๋ฉ๋ฆฌ ๋จ์ด์ก์ ๋ ๊ฐ์ด ์ ํ๋๊ฒ ํ๋ ์์ : ๋ฏธ์ญ๊ตญ(input์ id ์ label์ for๋ฅผ ๊ฐ์ ๊ฐ์ผ๋ก)
** -->
<p>1. ์ค๋ ์ ์ฌ์ผ๋ก ๋จน์ ๋ฉ๋ด๋?</p>
<input type="checkbox" name="foodCheck1" value="code1"> ๋ฐฅ(ํ
์คํธ๋ก ์ ํX)<br>
<label>
<input type="checkbox" name="foodCheck1" value="code1"> ๋ฐฅ(ํ
์คํธ๋ก ์ ํO)
</label><br><br>
<input type="checkbox" name="foodCheck1" value="code2" id="label2"> ๋ฏธ์ญ๊ตญ
<input type="checkbox" name="foodCheck1"> ๊น์น์ฐ๊ฐ
<input type="checkbox" name="foodCheck1"> ๋ฌ๊ฑ๋ง์ด
<br><br>
<input type="checkbox" name="foodCheck1"> ์ฅ์กฐ๋ฆผ
<input type="checkbox" name="foodCheck1"> ๊น
<input type="checkbox" name="foodCheck1"> ๊น์น
<input type="checkbox" name="foodCheck1"> ๋ฉธ์น๋ณถ์
<br><br><br>
<p>2. ์ค๋ ์ ๋
์ผ๋ก ๋จน์ ๋ฉ๋ด๋?</p>
<input type="checkbox"> ๋ฐฅ
<label for="label2">
<input type="checkbox"> ๋ฏธ์ญ๊ตญ(์ ์ฌ ๋ฏธ์ญ๊ตญ๊ณผ ์ฐ๊ฒฐ๋จ)
</label>
<input type="checkbox"> ๊น์น์ฐ๊ฐ
<input type="checkbox"> ๋ฌ๊ฑ๋ง์ด
<br><br>
<input type="checkbox"> ์ฅ์กฐ๋ฆผ
<input type="checkbox"> ๊น
<input type="checkbox"> ๊น์น
<input type="checkbox"> ๋ฉธ์น๋ณถ์
<br><br>
</form>
</div>
</body>
</html>
ใดใดTest020.html_์ฌ๋ฌ ์ค ๋ฐ์ดํฐ ์ ๋ ฅ ๊ธ์์
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test020.html</title>
</head>
<body>
<div>
<h1>์ฌ๋ฌ ์ค ๋ฐ์ดํฐ ์
๋ ฅ ๊ธ์์</h1>
<hr>
</div>
<div>
<form>
<!-- **
๋ผ๋์ค๋ฒํผ
โป ์ฃผ์์ฌํญ1) ์ฌ์ or ๋จ์ ๊ฐ ๋ง๊ณ , ์ฌ์ and ๋จ์ ๋ ์์ ์ ์์ผ๋ฏ๋ก
name์ผ๋ก ๋ฌถ์ด์ค์ผ๋ก์จ ๋์คํ๋ ์ ํ์ผ๋ก ์ฒ๋ฆฌ๋จ(ex. gender, subject)
โป ์ฃผ์์ฌํญ2) ๊ฐ์ ๋ฐ๊ธฐ ์ํด์๋ value๋ฅผ ๋ถ์ฌํด์ผํจ(ex. kor,eng,mat...)
- ํ
์คํธ ์ ํํ๊ธฐ ์ํด <label>์ for ์์ฑ๊ณผ <input>์ id๋ฅผ ๋ง์ถฐ์ค์ผํจ
- checked="checked"๋ฅผ ๋ถ์ฌํด ๊ฐ๊ธ์ ์ด ์์ฑ์ ์ ํํ๋๋ก ์ ๋ํ ์ ์์
** -->
<p>1. ๋น์ ์ ์ฑ๋ณ์?</p>
<input type="radio" name="gender" checked="checked"> ์ฌ์
<input type="radio" name="gender" id="m">
<label for="m"> ๋จ์</label>
<br><br>
<p>2. ๋น์ ์ด ์ข์ํ๋ ๊ณผ๋ชฉ์?</p>
<input type="radio" name="subject" value="kor"> ๊ตญ์ด
<input type="radio" name="subject" value="eng"> ์์ด
<input type="radio" name="subject" value="mat" checked="cheched"> ์ํ
<input type="radio" name="subject" value="soc"> ์ฌํ
<input type="radio" name="subject" value="sci"> ๊ณผํ
<br><br>
</form>
</div>
</body>
</html>
ใดใดTest021.html_์ ์ก, ์ทจ์ ๋ฒํผ ๋ง๋ค๊ธฐ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test021.html</title>
</head>
<body>
<div>
<h1>์ ์ก, ์ทจ์ ๋ฒํผ ๋ง๋ค๊ธฐ</h1>
<hr>
</div>
<div>
<!-- **์๋ฒ์ชฝ์ ๋ณด๊ธฐ ์ํด์๋ ๋ฐฑ์๋์ ๊ฐ์ด ํด์ผํจ, ํฐ ํ๋ฆ์ ์ธ์งํ๊ณ ๋์ด๊ฐ๊ธฐ** -->
<!-- form: ๋ฐ์ดํฐ ์ ์ก ๋ฐ ํ์ด์ง ์์ฒญ **'๋ฐ์ดํฐ ์ ์ก' ๋ณด๋ค 'ํ์ด์ง ์์ฒญ'์ด ๋ ์ค์ํจ** -->
<!-- ํผ์ผ๋ก ๊ตฌ์ฑํ ๋ฐ์ดํฐ์ ๋ด์ฉ์ ์ ๋ฌํ ํ
๋... ์์ฒญํ ํ์ด์ง์ ๋ง๋ ์ ์๊ฒ ํด ๋ฌ๋ผ... -->
<form action="http://localhost:3306/WebApp01/Test022.html">
<!-- **
์์ฒญ๋ฉ์๋ ์ข
๋ฅ:
ใด get ๋ฉ์๋: ex. ์ฝ์ ์ ๋ฌ/ ์ค๊ฐ ์ง๋ฐฐ์ ์กด์ฌ. ๋ด์ฉ์ด ๋ค ๋ณด์
ใด post ๋ฉ์๋: ex. ํธ์ง/ ํธ์ง๋ ํธ์ง๋ดํฌ์์ ์๊ธฐ ๋๋ฌธ์ ๋ด์ฉ ์ ๋ณด์
** -->
*์ด๋ฆ
<input type="text" name="name" size="15" maxlength="10"><br>
*์ด๋ฉ์ผ
<input type="text" name="email" size="15" maxlength="20"><br>
*ํ๊ณ ์ถ์ ๋ง
<br>
<textarea rows="10" cols="50" name="field"></textarea>
<br><br>
<input type="submit" value="์ ์กํ๊ธฐ1" name="submitBtn">
<input type="button" value="์ ์กํ๊ธฐ2">
<button type="button">์ ์กํ๊ธฐ3</button>
<button>์ ์กํ๊ธฐ4</button>
<!-- **
๋ชจ์๋ง ๋ณด์์ ๋๋ ๋ฒํผ์ด์ง๋ง, ์ด๋ป๊ฒ ๋ง๋ค์๋์ง์ ๋ฐ๋ผ ๋ค๋ฅด๊ฒ ๋์ํจ
- ์ ์กํ๊ธฐ1: <input type="submit">
- ์ ์กํ๊ธฐ2: <input type="button">
- ์ ์กํ๊ธฐ3: <button type="button"></button>
ใด ์ ์กํ๊ธฐ2-3์ ๊ธฐ๋ฅ์ ์ผ๋ก ๊ฐ์ ๋ฒํผ
ใด ์ ๋๊ฐ์ง๊ฐ ์์๊น?
ใดใด ์ ์ก2๋ ๋ค๋ฅธ ํ๊ทธ ์์ฉX
ใดใด ์ ์ก3์ ๋ค๋ฅธ ํ๊ทธ ์์ฉO
- ์ ์กํ๊ธฐ4: <button></button>
ใด type์ด ๊ธฐ์ฌ๋์ง ์์ ๋ฒํผ์ผ ์, submit๊ณผ ๊ฐ์ ๊ธฐ๋ฅ์ ํจ
** -->
<br><br>
<input type="reset" value="์ทจ์ํ๊ธฐ" name="resetBtn">
<!-- **<input type="reset">: ๋ด์ฉ์ด ๋ชจ๋ ์ญ์ ๋จ** -->
</form>
</div>
</body>
</html>
ใดใดTest022.html_Test021.html ์์ ์์ฒญํ ๋ด์ฉ ํ์ธ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test022.html</title>
</head>
<body>
<div>
<h1>Test021.html ์์ ์์ฒญํ ๋ด์ฉ ํ์ธ</h1>
<hr>
</div>
<div>
<!-- **aํ๊ทธ ๋งํฌ(ํ์ด์ง ์ด๋)์ ์์ ๋ค๋ฅธ ๊ฐ๋
!* -->
์๋
? ๋ Test022.html ์ด์ผ~<br>
๋ค๊ฐ ๋์๊ฒ ์ ์กํ <br>
์ด๋ฆ, ์ด๋ฉ์ผ, ํ๊ณ ์ถ์ ๋ง๋ฅด ๋ชจ๋ ํ์ธํ์ด~<br>
๋ด์ ๋ณด์<br>
</div>
</body>
</html>
ใดใดTest023.html_๋๋ก๋ค์ด๋ฉ๋ด(selectbox) ๋ง๋ค๊ธฐ
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test023.html</title>
</head>
<body>
<div>
<h1>๋๋ก๋ค์ด๋ฉ๋ด(selectbox) ๋ง๋ค๊ธฐ</h1>
<hr>
</div>
<div>
<form>
<!-- **
select
- ์ผ๊ตฌ ๊ฐ๊ณผ <option>์ ์ฐ๊ด์ด ์๊ธฐ ๋๋ฌธ์ value๋ก ๊ฐ์ ๊ฐ์ ธ์์ผํจ
- ์ ์ผ ๋ง์ด ์ฐ๋ ๊ฐ(์ฌ์)์ ์๋ก ๊ตฌ์ฑํ๋ฉด ๋ง์ ์๊ณ ๋ก์์ ๋ ์ ์์ง๋ง,
ํ์ฌ ์ฌ์ ์ ์ฌ์์ด ํ์ฅ๋ณด๋ค ์์์๋ ๊ฒ์ ์ํ์ง ์์ ์ ์์
์ด๋ด ๋ selected="selected"์ฌ์ฉ์ด ๊ถ์ฅ๋จ
โป ์ฃผ์์ฌํญ1) ์ต์ด์ ํ์ด ๋์ด์์๋ ์
๋ ํธ๋ฅผ ํ์ธ๋ชปํ๊ณ ๋์ด๊ฐ๋ฉด ์ต์ด์ ํ๋ ๊ฐ์ผ๋ก ๋์ด๊ฐ๋ฏ๋ก
<option>์ ์ ํ์ ์๋ดํ๋ ๋ฌธ๊ตฌ๋ก ์ ํ์ ํด์ผ ํ์ด์ง๊ฐ ๋์ด๊ฐ ์ ์๊ฒ ๊ตฌ์ฑ
** -->
<input type="text">
<!-- **select ์ฃผ์์ฌํญ1) ํ
์คํธ** -->
<p>๋น์ ์ด ๊ฐ์ฅ ์ข์ํ๋ ์ข
๋ชฉ์?</p>
<select name="selectSport">
<option>--์ ํํ์ธ์--</option>
<option value="val2">์ถ๊ตฌ</option>
<option value="val3">๋ฐฐ๊ตฌ</option>
<option value="val4">๋๊ตฌ</option>
</select>
<p>๋น์ ์ ์ง์ฑ
์?</p>
<select name="selectJikwi">
<option value="1">ํ์ฅ</option>
<option value="2">์ฌ์ฅ</option>
<option value="3">๋ถ์ฅ</option>
<option value="4">๊ณผ์ฅ</option>
<option value="5">๋๋ฆฌ</option>
<option value="6" selected="selected">์ฌ์</option>
<option value="7">์ธํด</option>
</select>
<br><br>
<button type="button">ํ์ธ</button>
<button type="reset">๋ค์์
๋ ฅ</button>
<!-- **reset ์์
๋ฐ์์ ๋ชจ๋ ์์ด์ง๋ ๊ฒ์ด ์๋๋ผ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ๋ฐ๋** -->
<p>์ข์ํ๋ ์ฐ์?(๋ค์ค ์ ํ ๊ฐ๋ฅ)</p>
<select name="trav" size="6" multiple="multiple">
<option value="val1">๋ฐฑ๋์ฐ
<option value="val2">ํ๋ผ์ฐ
<option value="val3">์ง๋ฆฌ์ฐ
<option value="val4">์ค์
์ฐ
<option value="val5">๋ถํ์ฐ
<option value="val6">์๋ฆฌ์ฐ
</select>
<!-- **
select๋ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ค์ค์ ํ์ด ๋ถ๊ฐ๋ฅํจ
ํ์ง๋ง ๊ฐ๋ฅํ๊ฒ ๋ง๋ค ์ ์์
-> <select>์ ์ฌ์ด์ฆ๋ฅผ option๊ฐฏ์๋งํผ ๋ฐ๊พธ๊ธฐ, muitiple์์ฑ ๋ถ์ฌ
ใดใด shift ์ฐ์ ์ ํ ๊ฐ๋ฅ, ctrl ๊ฐ๋ณ ์ ํ ๊ฐ๋ฅ
** -->
</form>
</div>
</body>
</html>
'๐ ๋ฐฐ์ฐ๊ณ ์ตํ๊ธฐ + > Web' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| (68)[Web]3์ผ์ฐจ: โ Javascript ๊ฐ์ ๋ฐ ๊ธฐ๋ณธ๋ฌธ๋ฒ โ / F_WebApp03>Test001~Test014 (0) | 2023.11.29 |
|---|---|
| (68)[Web]3์ผ์ฐจ: ((CSS)) F_WebApp02>Test005~020 (4) | 2023.11.29 |
| (66)[Web]2์ผ์ฐจ: CSS ๊ฐ์ / โ CSS โ / F_WebApp02>Test001~004 (0) | 2023.11.28 |
| (65)[Web]1์ผ์ฐจ: โ HTML โ / ์ดํด๋ฆฝ์ค WebStudy ํ๊ฒฝ์ ํ / Test001~003 (0) | 2023.11.28 |
| (65)[Web]1์ผ์ฐจ: ์น ๊ฐ์ (3) | 2023.11.28 |