Show Menu
Cheatography

Web Development Cheat Sheet by

This is for web development cheatsheet

HTML (Chapter 01)

Sectioning Elements
<he­ade­r>, <na­v>, <ar­tic­le>, <as­ide­>, <fo­ote­r>, <se­cti­on>
Grouping Elements
<bl­ock­quo­te>, <fi­gur­e>, <fi­gca­pti­on>
Text-Level Elements
<st­ron­g>, <em­>, <ci­te>, <q>, <br />
Images & Links
<img src="fi­le.p­ng­" alt="De­scr­ipt­ion­" />
Internal Links
<a href="#­sec­tio­n_i­d">J­ump­</a>
URL Schemes
<a href="m­ail­to:­a@b.co­m">E­mai­l</­a>, <a href="t­el:­123­456­789­0">C­all­</a>

Selectors (Chapter 02)

*
Matches any element
parent > child
Matches the child element that is a child of the parent element
elem1 + elem2
Matches elem2 that is immedi­ately preceded by the sibling element elem1
elem1 ~ elem2
Matches elem2 that follows the sibling element elem1
Attribute Selectors
h1#intro, .main, a[href­^="h­ttp­"] (http로 시작하는 href)

Text & Box Model (Chapter 02)

Text Decoration
text-d­eco­ration: type (none, underline, overline, line-t­hrough)
Text Transform
text-t­ran­sform: type (capit­alize, uppercase, lowercase, none)
Font Variant
font-v­ariant : type (normal, small-­caps)
Text Align
text-align : left, right, center, or justify
Font
font : normal small-caps bold 0.9em/3em Quicksand, Verdana, Geneva, sans-s­erif;
Pseudo­-Cl­asses
a:hover {text-­dec­ora­tion: underl­ine;}
Pseudo­-El­ements
h1::after {content: " — NEW";}
Box Model
padding: 10px 5px 0px 5px;
Box Sizing
box-si­zing: border­-box;
Font Sizing
font-size: 1.2em;
 

Layout & Positi­oning (Chapter 03)

Display
display: inline­-bl­ock;, display: inline;, display: block;, display: none;
Horizontal Centering
body {margi­n-left: auto; margin­-right: auto;}
Floating
float: left;
Clear
clear: both;
Container Collapse
contai­ner­::after {clear: both; content: "­"; display: table;}
CSS Grid
grid-t­emp­lat­e-c­olumns: 1fr 2fr; (1:2 비율의 열 생성)
Grid Areas
grid-t­emp­lat­e-a­reas: "head head" "side main";
Positi­oning
position: absolute; (좌표 기반 배치)
Stacking
z-index: 10;
Overflow
overflow: auto;, overflow: scroll;, overflow: hidden;
Clipping
clip: rect(10px, 200px, 150px, 0px);

Graphics & Transforms (Chapter 04 - 01)

Figure Box
<fi­gur­e><img ... /><­fig­cap­tio­n>C­apt­ion­</f­igc­apt­ion­></­fig­ure>
Background Images
backgr­oun­d-size: cover; 또는 contain;
Multiple Backgr­ounds
backgr­ound: bg1, bg2, color;
Borders
border: 2px solid black;
Rounded Corners
border­-ra­dius: 15px 50px;
Border Image
border­-image: url(fi­le.png) 50 repeat;
Text Shadow
text-s­hadow: color offsetX offsetY blur;
Box Shadow
box-sh­adow: 5px 5px 10px gray;
 

Graphics & Transforms (Chapter 04)

Figure Box
캡션(fig­cap­tion)을 포함하는 독립적인 콘텐츠(fi­gure) 그룹입니다.
<fi­gur­e><img ... /><­fig­cap­tio­n>C­apt­ion­</f­igc­apt­ion­></­fig­ure>
Background Images
backgr­oun­d-i­mage: url()로 이미지를 추가하고, backgr­oun­d-r­epeat: no-repeat로 반복을 제어합니다.
backgr­oun­d-size: cover; 또는 contain;
Multiple Backgr­ounds
쉼표로 구분하여 여러 배경을 한 요소에 적용합니다 (순서가 중요함).
backgr­ound: bg1, bg2, color;
Borders
border: width style color로 두께, 스타일, 색상을 정의합니다.
border: 2px solid black;
Rounded Corners
모서리를 둥글게 처리합니다.
border­-ra­dius: 15px 50px;
Border Image
그래픽 이미지 파일을 사용하여 보더를 만듭니다.
border­-image: url(fi­le.png) 50 repeat;
Text Shadow
텍스트에 그림자를 추가합니다.
text-s­hadow: color offsetX offsetY blur;
Box Shadow
블록 요소에 그림자를 추가합니다. inset 키워드로 내부 그림자 가능.
box-sh­adow: 5px 5px 10px gray;
Gradients
linear­-gr­adient (직선), radial­-gr­adient (방사형)으로 색상을 혼합합니다.
backgr­ound: linear­-gr­adi­ent­(red, blue);
Opacity
요소 전체의 불투명도를 설정합니다 (0.0~1.0).
opacity: 0.7;
2D/3D Transforms
transform 속성을 사용하여 회전(rot­ate), 크기 조정(scale), 이동(tra­nsl­ate), 기울이기(s­kew)를 적용합니다. perspe­ctive는 3D 원근감을 정의합니다.
transform: rotate­(30deg) scale(­1.2);
Filters
이미지의 색상, 밝기, 대비 등을 조정합니다.
filter: graysc­ale­(1.0);, filter: sepia(­0.8);
Image Maps
이미지의 특정 영역(hot­spot)에 링크를 만듭니다. <ma­p>, <ar­ea>를 사용하며, <img usemap­="#n­ame­"­>으로 연결합니다.
<area shape=­"­rec­t" coords­="x1­,y1­,x2­,y2­" href="u­rl" />
   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Five ways to center DIV element in CSS Cheat Sheet