Contents
- 1 Foundations
- 2 코드의 구조화
- 3 의미와 관련된 태그
- 4 id와 class
- 5 id naming
- 6 div
- 7 span
- 8 doctype
- 9 css style
1 Foundations #
well-structured & meaningful document
....
3 의미와 관련된 태그 #
h1, h2
ul, ol, dl : 리스트
strong, em : 강조
blockquote, cite : 따온글
abbr, acronym, code
caption, thead, tbody, tfoot
fieldset, legend, label
5 id naming #
good : error, mainNav, intro
bad : red, leftColumn, topNav
(스타일적인 의미가 포함된 id)
7 span #
div : block-level
spane : inline