'Front-End/HTML/CSS'에 해당되는 글 2건

Front-End/HTML/CSS

HTML 5 시맨틱 레이아웃

<!DOCTYPE HTML>

<head>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

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

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

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

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

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

</head>

<body>

  <div class="wrap">  <!-- 현재 페이지 전체 레이아웃 -->

    <header class=""> <!-- 페이지의 주요 영역, 주로 아티클 헤더, 어사이드헤더에 사용 -->

      <nav class="">  <!-- 헤더 및 푸터 일부는 또는 이와 상관없이 포함될 수 있음 -->

      </nav>

    </header>

    <section class="">  <!-- 페이지의 주요 영역, 주로 아티클을 포함한 영역을 정의 -->

      <article class="">  <!-- 개별 브로그 엔트리나 블로그 엔트를 추상화 한것 -->

        <header class=""> <!-- 작은 헤더(부제목) -->

        </header>

        <figure class=""> <!-- 페이지에 임베드한 이미지, 오디오, 동영상을 포함 -->

        </figure>

        <footer class=""></footer> <!-- 작은 본문 하위 -->

      </article>

      <dialog class=""></dialog>  <!-- 대화를 나타내는 <dl> 엘리먼트를 대체 -->

    </section>

    <aside class=""> <!-- 관련링크, 2차적인 페이지 이동, 광고 같은 페이지의 보조 콘텐츠에 사용 -->

    </aside>

    <footer class=""> <!-- 헤더와 비슷하지만 다른 엘리먼트의 바닥에 놓을 수 있음 -->

    </footer>

  </div>

</body>

</html>


<!--

<article>

<aside>

<details>

<figcaption>

<figure>

<footer>

<header>

<main>

<mark>

<nav>

<section>

<summary>

<time>

-->


출처 : http://www.w3im.com/ko/html/html5_semantic_elements.html

<article>기사를 정의
<aside>페이지 내용을 제외하고 내용을 정의
<details>사용자가 보거나 숨길 수있는 추가 정보를 정의합니다
<figcaption>A에 대한 자막을 정의 <figure> 요소
<figure>등 그림, 도표, 사진, 코드 목록, 같은 자체에 포함 된 내용을 지정합니다
<footer>문서 또는 섹션 바닥 글을 정의
<header>문서 또는 섹션 헤더를 지정합니다
<main>문서의 주요 내용을 지정
<mark>표시 / 강조 표시된 텍스트를 정의합니다
<nav>탐색 링크를 정의
<section>문서에 섹션을 정의합니다
<summary>A에 대한 눈에 띄는 제목을 정의 <details> 요소
<time>날짜 / 시간을 정의


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

HTML5 기본 템플릿  (0) 2017.07.28
,
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
,
  [ 1 ]  

최근 댓글

최근 트랙백

알림

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

태그

카운터

Today :
Yesterday :
Total :