최소한의 요구
- index.html 페이지 생성
- 페이지는 header, main, footer elements 를 활용해야 한다.
이러한 elements는 비어있어선 안된다. - 페이지가 유효한 것을 확실히 해야함
모든 웹페이지는 3가지 주요 부분을 가진다.
- Doctype
- 브라우저야 난 HTML5 사용해
- Meta-Data
- 사용하는 language type
- title
- Display가능한 content
실습
1. 먼저 doctype 적는다.
<!DOCTYPE html>
...
</html>
2. 그다음 Meta-Data, 간단한 head로 충분함
<head>
<meta charset="UTF-8">
<title> first page </title>
</head>
<body>
<main>
<p> main code </p>
</main>
<footer>
<p> footer </p>
</footer>
</body>
3. 파일 저장 – index.html 은 내 사이트의 메인 페이지
4. 유효성 확인 – http://validator.w3.org/

공부 위치 – https://www.coursera.org/learn/html/lecture/6YX4i/02-04-template-page
Leave A Comment