학습한 내용
<head>
<meta charset = "utf-8">
<meta name="description" content="Web Tutorial">
<meta name="keyword" content="html, css, tutorial, web">
<meta name="author" content="Youngseo Ryu">
<title>HTML, CSS Tutorial</title>
<link rel="shortcut icon" type="image/icon" sizes="32x32" href="favicon.ico">
</head>
<body>
<a href="https://www.naver.com/" target="_blank">네이버</a>
<img src="apple.png" alt="사과 그림" width="300px" height="">
<img src="https://png.pngtree.com/png-clipart/20201221/ourmid/pngtree-fresh-red-apple-png-image_2598109.jpg" alt="사과 이미지">
<h1>Title</h1>
<h2>Title</h2>
<h3>Title</h3>
<h4>Title</h4>
<h5>Title</h5>
<h6>Title</h6>
<h1>
<a href="https://www.naver.com/">
<img src = "https://png.pngtree.com/png-clipart/20201221/ourmid/pngtree-fresh-red-apple-png-image_2598109.jpg" alt="애플">
</a>
</h1>
<h3>Service</h3>
<h4>Service 부제</h4>
<h5>Commerce</h5>
<h5>Design</h5>
<h5>Security</h5>
<h3>Portfolio</h3>
<p>Nice to meet you</p>
<p>
<span>동해물</span>과 백두산이 마르고 닳도록
</p>
<p>
<mark>사과</mark>는 사과 나무에서 나는 열매이다.
</p>
<ol>
<li>메뉴1</li>
<li>메뉴2</li>
<li>메뉴3</li>
</ol>
<ul>
<li>메뉴1</li>
<li>메뉴2</li>
<li>메뉴3</li>
</ul>
<ul>
<li><a href="#">영화</a></li>
<li><a href="#">부동산</a></li>
<li><a href="#">음악</a></li>
</ul>
<button type="button">닫기</button>
<button type="submit">확인</button>
<video src="sample.mp4" controls autoplay muted loop width = 400px>
</video>
<iframe width="560" height="315"
src="https://www.youtube.com/embed/N0VD9RFcoSQ"
title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<audio src="sample_audio.mp3" controls muted loop></audio
</body>
<!-- --> : 주석 처리, 주석 안에는 주석을 넣을 수 없음<h1></h1> : 가장 중요한 정보를 사용할 때 사용하는 태그, 내부에 <a><img></a> 삽입하는 것이 일반적<form method="post">
<label for="name">이름</label>
<input type="text" placeholder = "이름을 입력하세요." id="name" required
minlength="2" maxlength="8">
<label for="mail">이메일</label>
<input type="email" placeholder = "이메일을 입력하세요." id="mail" required>
<label for="pw">비밀번호</label>
<input type="password" placeholder = "최소 10글자 최대 15글자" id="pw" required minlength="10" maxlength="15">
<label for="num">숫자</label>
<input type="number" placeholder = "숫자만 입력" id="num" min="10" max="40" step="5">
<label for="upload">파일 업로드</label>
<input type="file" id="upload" accept="image/png, image/jpg">
<button type="submit">제출</button>
</form>
<label for="n1">한국</label>
<input type="checkbox" id="n1" name="country" value="한국">
<label for="n2">일본</label>
<input type="checkbox" id="n2" name="country" value="일본">
<label for="n3">중국</label>
<input type="checkbox" id="n3" name="country" value="중국">
<label for="n1">한국</label>
<input type="radio" id="n1" name="country" value="한국" checked>
<label for="n2">일본</label>
<input type="radio" id="n2" name="country" value="일본">
<label for="n3">중국</label>
<input type="radio" id="n3" name="country" value="중국">
<label for="content">문의내용</label>
<textarea id="content" cols="40" rows="8"></textarea>
<select name="job">
<option selected disabled>직업을 선택해 주세요.</option>
<option value="학생">학생</option>
<option value="회사원">회사원</option>
<option value="기타">기타</option>
</select>
<table>
<caption>상품정보</caption>
<thead>
<tr>
<th>상품</th>
<th>색상</th>
<th>가격</th>
</tr>
</thead>
<tbody>
<tr>
<td>맥북 프로 16인치</td>
<td>그레이</td>
<td>3,000원</td>
</tr>
<tr>
<td rowspan="2">아이패드 프로 12인치</td>
<td>레드</td>
<td>1,000원</td>
</tr>
<tr>
<!--<td>아이패드 프로 12인치</td>-->
<td>블루</td>
<td>1,000원</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">총 가격</td>
<td >5,000원</td>
</tr>
</tfoot>
</table>
<header>
<h1>
<a href="#">
<img>
</a>
</h1>
<nav>
<ul>
<li><a href="#">메뉴1</a></li>
<li><a href="#">메뉴2</a></li>
<li><a href="#">메뉴3</a></li>
</ul>
</nav>
</header>
<main role="main">
<section>
<h2>Service</h2>
</section>
<section>
<h2>Portfolio</h2>
</section>
<article>
<h2>Article title</h2>
<p>Nice to meet you. Nice to meet you.Nice to meet you. Nice to meet you. Nice to meet you. Nice to meet you. Nice to meet you. </p>
</article>
</main>
<aside></aside>
<footer></footer>
<div></div>
<form></form>
익스플로어에서 지원하지 않기 때문에 role="main" 입력
section과 article은 헤드라인(h, 타이틀 정보)이 필요하다
article : 신문의 본문 정보를 담아내는 구역
p 안에 내용(문단 형식) 입력
aside : 본문과 관계성이 떨어지는 내용
footer : 가장 최하단에 있는 내용
div : 임의의 작은 구역들, header/main/footer 제외 -> 가장 많이 사용하는 태그
form : label,input으로 받은 정보를 담는 것
header, nav, main, section, aritle, aside, footer : html5에서 새롭게 나온 문법 -> 크로스브로우징에 적용
학습한 내용 중 어려웠던 점 또는 해결못한 것들
table 태그 부분에서 내부의 태그들이 여러개로 늘어나서 수업을 듣는 도중에 계속 헷갈리는 부분이 많았다. 그리고 html 작성시에 자리 맞춤하는 부분에서 어려움을 겪었다.
해결방법 작성
위에 작성한 것처럼 경로를 내가 정리하여 타이핑 하였고 Sublime에서 직접 코드를 보는 것보다 더 머리에 잘 들어오는 느낌이였다. 앞으로 복잡한 코드를 배울 때에 이 방법을 적용하고자 한다. html 작성 시 자리 맞춤은 앞으로 더 연습을 많이 해서 익숙해지는 방법밖에 없을 듯 하다.
학습 소감
그동안 접해봤던 C언어와 파이썬과는 정말 다르다고 느꼈다. 오히려 나에게는 더 흥미로웠고 앞으로 더 열의를 가지고 공부하고 싶다는 생각이 들었다. 웹 개발 자체는 오늘이 처음이라 아직은 잘 모르겠지만 하루동안 많은 걸 배운 것 같다.