κ°μΈκ³΅λΆ/HTML5 + CSS3
[HTML+CSS][μμκ³Ό λ°°κ²½μ μν μ€νμΌ] 04 - μ°μ΅λ¬Έμ
πλ°λ΄λ΄π
2020. 7. 3. 15:00
01
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>λ°°κ²½ μ€νμΌ</title>
<style>
body {
font-family: "λ§μ κ³ λ", λμ;
}
.container {
width:500px;
padding:10px;
border:1px solid blue;
background: rgba(0, 0, 255, 0.2);
}
h1 {
font-size: 17px;
}
p {
font-size: 16px;
line-height: 25px;
}
</style>
</head>
<body>
<div class="container">
<h1>μΉ λμμΈ νΈλ λλ₯Ό λ°λΌμ‘λ λΉλ² λ곡κ°!</h1>
<p>κ·Έλν½ νλ‘κ·Έλ¨μΌλ‘ μΉ λμμΈ μμλ₯Ό μΌμΌμ΄ λ§λ€μ΄ μΉμ¬μ΄νΈλ₯Ό μ μνλ μλλ μ§λ¬λ€. μ΄μ λͺ¨λ°μΌ, νλΈλ¦Ώ, PC λ± λ©ν° λλ°μ΄μ€μ ν λ²μ μ μ©ν μ μλ μΉ λμμΈ λ°©λ²μ μμμΌ νλ€. λ°λ‘ <b>μ½λ©μ μ΄μ©ν μΉ λμμΈ</b>μ΄λ€. </p>
</div>
</body>
</html>
02
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>λ°°κ²½ μ€νμΌ</title>
<style>
body {
font-family: "λ§μ κ³ λ", λμ;
}
.container {
width:500px;
padding:10px;
border:1px solid blue;
background:rgba(0,0,255,0.2);
}
.container:hover {
background: blue;
color: white;
}
h1 {
font-size: 17px;
}
p {
font-size: 16px;
line-height: 25px;
}
</style>
</head>
<body>
<div class="container">
<h1>μΉ λμμΈ νΈλ λλ₯Ό λ°λΌμ‘λ λΉλ² λ곡κ°!</h1>
<p>κ·Έλν½ νλ‘κ·Έλ¨μΌλ‘ μΉ λμμΈ μμλ₯Ό μΌμΌμ΄ λ§λ€μ΄ μΉμ¬μ΄νΈλ₯Ό μ μνλ μλλ μ§λ¬λ€. μ΄μ λͺ¨λ°μΌ, νλΈλ¦Ώ, PC λ± λ©ν° λλ°μ΄μ€μ ν λ²μ μ μ©ν μ μλ μΉ λμμΈ λ°©λ²μ μμμΌ νλ€. λ°λ‘ <b>μ½λ©μ μ΄μ©ν μΉ λμμΈ</b>μ΄λ€. </p>
</div>
</body>
</html>
03
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>λ°°κ²½ μ€νμΌ</title>
<style>
body {
font-family: "λ§μ κ³ λ", λμ;
}
.container {
position: relative;
width: 600px;
height: 400px;
padding: 20px;
border: 1px solid #ccc;
background-image: url('images/apple-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
}
.content {
position: absolute;
top: 300px;
width: 90%;
padding: 10px;
background-color: rgba(255, 255, 255, 0.5);
}
h1 {
font-size: 30px;
text-align: center;
}
p {
font-size: 16px;
line-height: 25px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<h1>ν루 ν μμ μ¬κ³Όλ μμ¬λ₯Ό λ©λ¦¬ νλ€</h1>
</div>
</div>
</body>
</html>
< μ°Έκ³ >
Do it! HTML5+CSS3 μΉ νμ€μ μ μ
β» ν΄λΉ κΈμ μ΅λ λͺ©μ μΌλ‘ μμ±λ κΈμ λλ€ β»
λ°μν