📃 1) 퀴즈
결과 화면 :

코딩 :
- html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/05_exam_display.css">
</head>
<body>
<h3>이미지 갤러리</h3>
<ul>
<li><img src="./img/cat.jpg" alt="고양이"></li>
<li><img src="./img/bee.jpg" alt="벌"></li>
<li><img src="./img/rabit.jpg" alt="토끼"></li>
</ul>
</body>
</html>
- css
ul {
background-color: #f5f7e4;
border: 1px solid #cccccc;
border-radius: 10px;
width: 640px;
padding: 30px;
}
li {
list-style-type: none;
margin-left: 20px;
display: inline-block;
}
📃 2) 퀴즈
결과 화면 :

코딩 :
- html
<!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>
<link rel="stylesheet" href="./css/06_exam_menu.css">
</head>
<body>
<h3>1. 세로 메뉴</h3>
<ul id='v_menu'>
<li>CEO 인사말</li>
<li>조직도</li>
<li>전화번호 안내</li>
<li>찾아오시는 길</li>
</ul>
<h3>2. 가로 메뉴</h3>
<ul id='h_menu'>
<li class='menus'>회사소개</li>
<li>|</li>
<li class='menus'>제품안내</li>
<li>|</li>
<li class='menus'>고객센터</li>
<li>|</li>
<li class='menus'>매장안내</li>
</ul>
</body>
</html>
- css
li {
list-style-type: none;
}
#v_menu {
width: 150px;
}
#v_menu li {
padding: 5px;
border-bottom: 1px dotted black;
}
#h_menu li {
display: inline-block;
}
.menus {
color: green;
margin-left: 20px;
margin-right: 20px;
}
📃 3) 퀴즈
결과 화면 :

코딩 :
- html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/08_exam_float.css">
</head>
<body>
<div id="image">
<img src="./img/foxtail.jpg" alt="강아지풀">
</div>
<div id="desc">
<h3>강아지풀</h3>
<p>길가나 들에서 자라는 풀로써 꽃은 9월에 피고
녹색 또는 자주색입니다.
</p>
</div>
<ul id="menu">
<li>강이지풀</li>
<li>패랭이풀</li>
<li>할미꽃</li>
<li>코스모스</li>
</ul>
</body>
</html>
- css
* {
padding: 0;
margin: 0;
}
li {
list-style-type: none;
}
#image {
border: 1px solid red;
float: left;
}
#desc {
width: 300px;
margin-left: 30px;
border: 1px solid red;
float: left;
}
#menu {
border: 1px solid red;
float: right;
}
📃 4) 퀴즈
결과 화면 :

코딩 :
- html
<!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>
<link rel="stylesheet" href="./css/09_exam_float2.css">
</head>
<body>
<div id="logo">
<img src="./img/logo2.png" />
</div>
<ul id="menu">
<li class="item">수목원소개</li>
<li>|</li>
<li class="item">방문안내</li>
<li>|</li>
<li class="item">고객센터</li>
<li>|</li>
<li class="item">공지사항</li>
</ul>
<div id="main_image">
<img src="./img/main.jpg" />
</div>
</body>
</html>
- css
li {
list-style-type: none;
}
#logo {
float: left;
}
#menu {
float: right;
font-size: 14px;
margin-top: 20px;
}
#menu li {
display: inline-block;
}
#main_image {
clear: both;
padding-top: 20px;
}
📃 5) 퀴즈
결과 화면 :

코딩 :
- html
<!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>
<link rel="stylesheet" href="./css/11_exam_form_register.css">
</head>
<body>
<div id="container">
<h1>회원 가입(#container:margin 0 auto)</h1>
<form action="#" id="register">
<ul id="user-info">
<li>
<label for="user-id" class="field">아이디</label>
<input
type="text"
id="user-id"
class="input-box"
placeholder="영문과 숫자로 입력"
required
/>
</li>
<li>
<label for="user-pw1" class="field">비밀번호</label>
<input
type="password"
id="user-pw1"
class="input-box"
placeholder="8자리 이상 비밀번호 적기"
minlength="8"
required
/>
</li>
<li>
<label for="user-pw2" class="field">비밀번호 확인</label>
<input
type="password"
id="user-pw2"
class="input-box"
placeholder="8자리 이상 비밀번호 적기"
minlength="8"
required
/>
</li>
<li>
<label for="user-id" class="field">이메일</label>
<input type="email" id="user-id" class="input-box" required />
</li>
<li>
<label for="phone" class="field">전화번호</label>
<input type="number" id="phone" class="input-box" required />
</li>
</ul>
<ul id="buttons">
<li>
<button type="submit" class="btn btnBlack">
가입하기
</button>
</li>
<li>
<button type="reset" class="btn btnGray">
취소
</button>
</li>
</ul>
</form>
</div>
</body>
</html>
- css
#container {
width: 600px;
margin: 0 auto;
}
ul {
list-style-type: none;
}
.field {
width: 60px;
margin-right: 15px;
display: inline-block;
font-size: 0.9em;
font-weight: bold;
text-align: right;
}
.input-box {
display: inline-block;
width: 350px;
height: 35px;
padding: 5px;
margin: 10px 0;
}
#buttons > li {
display: inline-block;
}
button {
width: 250px;
height: 50px;
border: 1px solid white;
font-size: 0.9em;
margin-right: 10px;
}
📃 6) 퀴즈
결과 화면 :

코딩 :
- html
<!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>
<link rel="stylesheet" href="./css/18_exam_menu.css">
</head>
<body>
<div id="head">
<div id="logo">
<img src="./img/logo.png" alt="회사로고">
</div>
<div id="top">
로그인 | 회원가입 | 공지사항
</div>
</div>
<ul id="menu">
<li class="item">HTML</li>
<li>|</li>
<li class="item">CSS</li>
<li>|</li>
<li class="item">Javascript</li>
<li>|</li>
<li class="item">Python</li>
<li>|</li>
<li class="item">PHP</li>
<li>|</li>
<li class="item">Java</li>
</ul>
</body>
</html>
- css
* {
padding: 0;
margin: 0;
}
li {
list-style-type: none;
}
#logo {
float: left;
border: 1px solid red;
margin-top: 20px;
margin-bottom: 10px;
margin-left: 20px;
}
#top {
float: right;
border: 1px solid red;
margin-top: 30px;
margin-right: 20px;
}
#menu {
clear: both;
background-color: #443e58;
color: white;
text-align: center;
font-size: 20px;
height: 40px;
padding-top: 15px;
}
#menu li {
display: inline-block;
}
.item {
margin-right: 30px;
margin-left: 30px;
}
📃 7) 퀴즈
결과 화면 :

코딩 :
- html
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>상품 소개 페이지</title>
<link rel="stylesheet" href="./css/23_exam_poster.css">
</head>
<body>
<div id="container">
<video src="medias/salad.mp4" width="700" autoplay muted loop></video>
<hr>
<h2>상품 구성</h2>
<table>
<caption>선물용과 가정용 상품 구성</caption>
<colgroup>
<col style="background-color:#eee;">
<col>
<col span="2" style="width:150px">
</colgroup>
<thead>
<tr>
<th>용도</th>
<th>중량</th>
<th>갯수</t>
<th>가격</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">선물용</td>
<td>3kg</td>
<td>11~16과</td>
<td>35,000원</td>
</tr>
<tr>
<td>5kg</td>
<td>18~26과</td>
<td>52,000원</td>
</tr>
<tr>
<td rowspan="2">가정용</td>
<td>3kg</td>
<td>11~16과</td>
<td>30,000원</td>
</tr>
<tr>
<td>5kg</td>
<td>18~26과</td>
<td>47,000원</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
- css
#container {
margin: 0 auto;
width: 800px;
}
table, th, td {
border: 1px solid #222;
border-collapse: collapse;
}
th, td {
padding: 10px;
}