Front-End/HTML/CSS

HTML5 기본 템플릿

깡돌 2017. 7. 28. 16:57

HTML5 기본 템플릿


폴더 경로에 따른 css / js 경로 지정




<!DOCTYPE HTML>

<head>

<title></title>


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> // 인코딩 만국어-8

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">// 반응형

<link href="../css/common.css" rel="stylesheet" type="text/css" media="all"/>

<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<script type="text/javascript" src="../js/action.js"></script>


<script type="text/javascript">


</script>


</head>

<body>


</body>

</html>



CSS 기본 템플릿


순서

1. charset

2. import

3. reset

4. common

5. layout

6. custom: 레이아웃 > 보더/배경 > 폰트 > 기타


CSS 전체 초기화


본인이 쓰면서 커스터 마이징 하면됨

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}