Front-End/HTML/CSS

HTML5 기본 템플릿

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;
}


'Front-End > HTML/CSS' 카테고리의 다른 글

HTML 5 시맨틱 레이아웃  (0) 2017.07.29
,

최근 댓글

최근 트랙백

알림

이 블로그는 구글에서 제공한 크롬에 최적화 되어있고, 네이버에서 제공한 나눔글꼴이 적용되어 있습니다.

태그

카운터

Today :
Yesterday :
Total :