- ์น ๋ธ๋ผ์ฐ์ ๋ง๋ค ๊ฐ๊ธฐ ๋ค๋ฅธ default ์คํ์ผ์ด ์ง์ ๋์ด ์๊ธฐ ๋๋ฌธ์ ์ด๋ฅผ ์ด๊ธฐํํจ์ผ๋ก์จ ๋ค์ํ ์น ๋ธ๋ผ์ฐ์ ํ๊ฒฝ์์ ๋์ผํ ์คํ์ผ์ด ์ ์ฉ๋๋๋ก ํ๋ ์ค์ !
- W3C์์ ๊ณต์์ ์ผ๋ก ๊ถ์ฅํ๋ ๊ธฐ๋ฒ์ด๊ธฐ ๋ณด๋จ ์ค๋ฌด์์ ํธ์์ ์ํด ์์๋ก ์ง์ ํ๋ ์ค์ !
Reset CSS์ ์ฌ๋ฌ ๋ฐฉ๋ฒ์ด ์์ผ๋, ์ต๊ทผ์๋ normalize.css๋ฅผ ์ฃผ๋ก ์ฌ์ฉํจ
CDN ๊ธฐ๋ฒ์ ํตํด ๋งํฌ๋ก ์ ์ฉ์ํฌ ์ ์์ : https://cdnjs.com/libraries/normalize
CDN ๊ธฐ๋ฒโ CDN์ ์๋ณธ ์ฝํ ์ธ ๊ฐ ์ ์ฅ๋ ์๋ฒ ๋์ ์ฌ์ฉ์์ ๋ฌผ๋ฆฌ์ ์ผ๋ก ๊ฐ๊น์ด ๋คํธ์ํฌ ์์น์์ ์บ์ฑ๋ ๋ฒ์ ์ผ๋ก ์น ์ฝํ ์ธ ์์ฒญ์ ์๋ตํจ์ผ๋ก์จ ์ฝํ ์ธ ์๋ฒ์ ํธ๋ํฝ์ ๋ถ์ฐํ๊ณ ์น ๊ฒฝํ์ ํฅ์ํจ!
์ ์ฉ ๋ฐฉ๋ฒ : <head></head>
์์ ์๋ ์คํฌ๋ฆฝํธ ์ถ๊ฐํ์ฌ ์ ์ฉ!
๐ป html code
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" />
</head>
<body></body>
</html>
๐ RESET CSS ํ์ผ์ import ์ํค๋ ๋ฐฉ๋ฒ์ผ๋ก๋ ์ฌ์ฉํ ์ ์๋ค!
@import "reset.css";
๐ป RESET CSS
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;
}
input:focus {
outline: none;
}
a {
color: inherit;
text-decoration: none;
}