Skip to content

Instantly share code, notes, and snippets.

@kiyeon
Last active February 20, 2017 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiyeon/e02f502fb116e7a5327d6a74274d76b4 to your computer and use it in GitHub Desktop.
Save kiyeon/e02f502fb116e7a5327d6a74274d76b4 to your computer and use it in GitHub Desktop.
HTML5 Template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="some.css" rel="stylesheet">
<script src="some.js"></script>
</head>
<body>
</body>
</html>
@kiyeon
Copy link
Author

kiyeon commented Feb 20, 2017

코드스타일

  • 모두 소문자를 사용
  • 문자열은 'double quotation marks'
  • 들여쓰기 4 spaces
  • 각 라인은 80~120 컬럼, 각줄끝은 공백없이 Trim
  • 유닉스 개행문자(LF, LineFeed, \n) 사용
  • 인코딩 : BOM(Byte Order Mark)이 없는 UTF-8 문자셋

HTML5 Boilerplate에서 다양한 템플릿을 참조할 수 있다.

@kiyeon
Copy link
Author

kiyeon commented Feb 20, 2017

lang 속성은 기본 언어를 지정한다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment