<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chickens </title>
</head>
<body>
<h1>Chickens</h1>
<p><The <b>chicken</b> (Gallus domesticus) is a domesticated junglefowl species,
with attributes of wild species such as the grey and the Ceylon junglefowl[1]
that are originally from Southeastern Asia. Rooster or cock is a term for an adult male bird,
and a younger male may be called a cockerel. A male that has been castrated is a capon.
An adult female bird is called a hen and a sexually immature female is called a pullet.</p>
<p>Originally raised for cockfighting or for special ceremonies,
chickens were not kept for food until the Hellenistic period
(4th–2nd centuries BC).[2][3] Humans now keep chickens primarily
as a source of food (consuming both their meat and eggs) and as pets.</p>
<h2>Terminology</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
</p>
<h2>General biology and habitat</h2>
<h3>Behavior</h3>
<h4>Social Behavior</h4>
<h4>Broodiness</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga. </p>
<h2>Breeds of Chickens</h2>
</body>
</html>
<ul>
<li>Bantom
<ul>
<li>Silkie</li>
<li>Polish</li>
</ul>
</li>
<li>Standard
<ul>
<li>Easter Egger</li>
<li>Rhode Island Red</li>
</ul>
</li>
</ul>
img attribute : src
width와같은 속성은 css 통해서 해결.
닫기태그 없음. just img
해당 사진이 다른 폴더안에 있을경우 ' 폴더명/ ' 앞에 붙여주기.
즉, 하나의 덩어리처럼 여러가지 요소들을 그룹화해 일괄적으로 적용하고싶은 스타일을 한번에 적용시키는 것이다.
2-1) hr
<h1>Chickens</h1>
<hr>
2-2) br
<p>
To see a World in a Grain of Sand <br>
And a Heaven in a Wild Flower <br>
Hold Infinity in the palm of your hand <br>
And Eternity in an hour <br>
A Robin Red breast in a Cage <br>
</p>
2-3) sup (윗첨자) - exponent 표시할때 유용
Ceylon junglefowl <sup>[1]</sup>
H<sub>2</sub>O
<p>1/<sub>2</sub> + 1/<sub>2</sub> = 1</p>
2-4) sub - 화학기호 표시할때 유용
H<sub>2</sub>O
<p><sup>1</sup>/<sub>2</sub> +<sup>1</sup>/<sub>2</sub> = 1</p>
1) '<' 표시
<h1> 1 < 6 </h1> (x)
<h1> 1 < 6 </h1> (o)
2) '>' 표시
<h1> 6 > 5 </h1> (x)
<h1> 6 > </h1> (o)
3) '&' 표시
<h1> one & two & three </h1> (x)
<h1> one & two & three </h1> (o)
4) 'snowman' 표시
<h1> Chickens ☃ </h1>
5) ' registerd trademark ' 표시
<h1> Chickens <sup>®</sup>
1) main
2) nav
3) section
<section>
<h2>Terminology</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Dignissimos consequuntur officia quod, dolorum molestias similique in modi voluptatum optio beatae numquam enim at pariatur. Ab aliquam et placeat saepe fuga.
</section>
4) article
represents a self-contained composition in a document page.
독립적으로 나뉠 수 있거나 다시사용할 수 있을 때 사용.
5) asdie
6) header, footer (형식 동일)
<footer>
<p>This is my Webpage.
<ul>
<li><a href="asd">Content</a> </li>
<li><a href="asd">Help Me</a></li>
</ul>
</p>
</footer>
7) time
<p><time datetime="2000-07-07">My birthday is July 7</time></p>
8) figure
9) abbr
10) data
1) TD : Table Data cell or Table Data (데이터를 포함하는 표 안에 있는 단일 셀).
2) TR: Table row: 표안에 있는 셀들이 모인 행.
3) Th : 표의 헤더.
<table>
<tr> -> 표 헤더 설정법.
<th>Animal</th>
<th>Average mass [kg (lb)]</th>
<th>Maximum mass [kg (lb)]</th>
<th>Flighted</th>
</tr>
<tr>
<td>Ostrich</td>
<td>104(230)</td>
<td>156.8(200)</td>
<td>No</td>
</tr>
<tr>
<td>Somali Ostrich</td>
<td>104(230)</td>
<td></td>
<td>No</td>
</tr>
<tr>
<td>Wild Turkey</td>
<td>13.5(200)</td>
<td>39(96)</td>
<td>Yes</td>
</tr>
</table>
<thead>
<tr>
<th>Animal</th>
<th>Average mass [kg (lb)]</th>
<th>Maximum mass [kg (lb)]</th>
<th>Flighted</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ostrich</td>
<td>104(230)</td>
<td>156.8(200)</td>
<td>No</td>
</tr>
<tr>
<td>Somali Ostrich</td>
<td>104(230)</td>
<td></td>
<td>No</td>
</tr>
<tr>
<td>Wild Turkey</td>
<td>13.5(200)</td>
<td>39(96)</td>
<td>Yes</td>
</tr>
</tbody>
</table>
<h2>V2</h2>
<table>
<thead>
<tr>
<th rowspan="2">Animal</th>
<th colspan="2">Average Mass</th>
<th rowspan="2">Flighted</th>
</tr>
<tr>
<th>KG</th>
<th>LB</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ostrich</td>
<td>104</td>
<td>230</td>
<td>No</td>
</tr>
<tr>
<td>Somali Ostrich</td>
<td>104</td>
<td>110</td>
<td>No</td>
</tr>
<tr>
<td>Wild Turkey</td>
<td>13.5</td>
<td>200</td>
<td>Yes</td>
</tr>
</tbody>
</table>
<h1>Forms Demo</h1>
<form action="type">
<input type="text" placeholder="username" >
<input type="password" placeholder="password">
<input type="color" >
<input type="month" >
<input type="number" placeholder="Enter a number">
<input type="time" >
</form>
<form action="type">
<p>
<label for="username">Enter a username:</label>
<input id="username" type="text" placeholder="username" />
</p>
<p>
<label for="password">Enter a password:</label>
<input id="password" type="password" placeholder="password" />
</p>
<p>
<label for="color">Choose your Color</label>
<input id="color" type="color" />
</p>
<p>
<label for="number">Enter your Number</label>
<input id="number" type="number" placeholder="Enter a number" />
</p>
<input type="time" />
</form>
<p>
<label for="username">Enter a username:</label>
<input id="username" type="text" placeholder="username" name="username"/>
<button>Submit</button>
</p>
username 에 value 입력해서 제출시
ex) google.com/serarch/?name=jincheol 과 같이 주소창에 뜨게됨.
여기서 serach 부분은 form의 action 속성이 뭐냐에 따라서 달라짐.
name이 위 코드에서 name = "" 으로 지정해준것.
jinchoel 은 사용자가 입력한 value.
<form action="https://wwww.reddit.com/search">
<input tpye="text" name="q" />
<button>Search Reddit</button>
</form>
<form action="https://www.google.com/search">
<input tpye="text" name="q" />
<button>Search Google</button>
</form>
<form action="https://www.youtube.com/results">
<input tpye="text" name="search_query" />
<button>Search Youtube</button>
</form>
1) 체크박스
<form action="/birds">
<input id="agree" name="agree_tos" type="checkbox" />
<label for="agree">I agree to everything</label>
</form>
2) 라디오버튼
<form>
<p>
<label for="xs">XS</label>
<input type="radio" name="size" id="xs" value="xs" />
<label for="m">M</label>
<input type="radio" name="size" id="m" value="m"/>
<label for="lg">LG</label>
<input type="radio" name="size" id="lg" value="lg"/>
</p>
<button>Submit</button>
</form>
3) 선택창
<p>
<label for="meal">Please Select an Entree</label>
<select name="meal" id="meal">
<option value="">--Please Choose an option--</option>
<option value="fish">Fish</option>
<option value="veg">vegeterian</option>
<option value="steak">steak</option>
<option value="No food">No food</option>
</select>
</p>
1) 범위
<p>
<label for="range">Choose your range</label>
<input type="range" id="range" min="1" max="10" name="range" />
</p>
2) 텍스트영역
<p>
<label for="request">Any Special request? </label>
<br />
<textarea
id="request"
name="request"
rows="5"
cols="20"
placeholder="Type Something here..."
></textarea>
</p>
1)
<h2>Validations Demo</h2>
<form action="/dummy">
<label for="username">Enter your name</label>
<input type="text" id="username" name="username" />
<p>
<label for="password">Enter your password</label>
<input
type="password"
id="password"
name="password"
minlength="3"
maxlength="7"
required
/>
<button>Submit</button>
</p>
2) 패턴검사
<form>
<label for="url">URL</label>
<input type="url" id="url" required />
<button>Submit</button>
</form>
마라톤 선수 등록양식 만들기
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>Race Registration!</h1>
<form action="/dummy">
<div>
<label for="first">Frist Name</label>
<input type="text" id="first" name="firstname" required />
<label for="last">Last Name</label>
<input type="password" id="password" name="lastname" required />
</div>
<p>Select a Race:</p>
<div>
<input type="radio" name="race" vaule="funrun" id="funrun" />
<label for="funrun">Fun Run 5k</label>
</div>
<div>
<input type="radio" name="race" value="half" id="half" />
<label for="half">Half Marathon</label>
</div>
<div>
<input type="radio" name="race" value="full" id="full" />
<label for="full">Full Marathon</label>
</div>
<div>
<label for="email">Email</label>
<input type="email" id="email" required />
<label for="password">Password</label>
<input type="password" id="password" required />
</div>
<div>
<label for="division">Select Age Group</label>
<select name="division" id="divison">
<option value="kids">under18</option>
<option value="ya">18-30</option>
<option value="adults">31-50</option>
<option value="seniors">50+</option>
</select>
</div>
<button>Register!</button>
</form>
</body>
</html>