ํ ์คํธ์คํ์ผ
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ํ
์คํธ ์คํ์ผ</title>
<style>
/* ๊ธฐ๋ณธ ํ
์คํธ ์คํ์ผ */
body {
/* ๊ธ๊ผด ์ง์ */
font-family: Arial, Helvetica, sans-serif;
/* ๊ธ๊ผด ํฌ๊ธฐ */
font-size: 16px;
/* ์ค ๊ฐ๊ฒฉ */
line-height: 1.8; /* px๋จ์, ๊ทธ๋ฅ์ซ์(๋ฐฐ์จ) */
/* ์์ */
color: #ff22ee;
}
h1 {
font-size: 32px;
/* ๊ธ๊ผด ๊ตต๊ธฐ */
font-weight: lighter;
/* (์์)100~900(๊ตต์) */
/* lighter, normal, bold, bolder */
}
p.bold {
font-weight: bold;
color: #22ffcc;
}
p.highlight {
/* ๊ธ๊ผด ์คํ์ผ */
font-style: italic; /* normal, oblique, italic */
color: red;
}
a {
/* ๊ธ๊ผด ์ฅ์ */
text-decoration: none;
/*
none(์์), underline(๋ฐ์ค)
overline(์์ค), line-through(์ทจ์์ )
*/
color: white;
background-color: black;
padding: 12px 24px;
border-radius: 5px;
}
/* :hover ๊ฐ์ ์ ํ์ - ๋ง์ฐ์ค ์ฌ๋ ธ์ ๋ ์ํ ์ ํ */
a:hover {
box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
background-color: #222222;
}
</style>
</head>
<body>
<h1>ํ
์คํธ ์คํ์ผ ์ง์ ํ๊ธฐ</h1>
<p>ํ
์คํธ ์คํ์ผ์ ์ง์ ํ๋ ๋ฌธ์ฅ์
๋๋ค.</p>
<p class="bold">๊ฐ์กฐํ๋ ๋ฌธ์ฅ์
๋๋ค.</p>
<p class="highlight">์ค์ํ ๋ฌธ์ฅ์
๋๋ค.</p>
<a href="https://์ํด.com">Button</a>
</body>
</html>
HTML
๋ณต์ฌ