λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
κ°œμΈκ³΅λΆ€/HTML5 + CSS3

[HTML+CSS][CSS λ ˆμ΄μ•„μ›ƒ] 04 - μ—°μŠ΅λ¬Έμ œ

by πŸ‡λ°•λ΄‰λ΄‰πŸ‡ 2020. 7. 11.

01

 

<!DOCTYPE html>
<html lang="ko">
<head>
	<meta charset="utf-8">
	<title>HTML5 λ ˆμ΄μ•„μ›ƒ</title>
  <style>
    body{
      font-family:"맑은 κ³ λ”•", "κ³ λ”•", "κ΅΄λ¦Ό";
    }
    a:link {
      text-decoration:none;
    }
    nav ul{
      list-style-type:none;
      margin:0px;
      padding:0px;
    }
    nav ul li{
      font-size:1.5em;
      padding-left:7px;
      margin-bottom:20px;
      border-left-width:5px;
      border-left-color:#990066;
      border-left-style:solid;
      float: left;
      margin-right: 15px;
    }
    section article {
      padding-left:10px;
      margin-bottom:10px;
      border-top:1px #a6a6a6 dashed;
      border-bottom: 1px #a6a6a6 dashed;
    }
    section {clear: both;}
  </style>
</head>
<body>
  <nav>
    <ul>
      <li><a href="#">애완견 μ’…λ₯˜</a></li>
      <li><a href="#">μž…μ–‘ν•˜κΈ°</a></li>
      <li><a href="#">κ±΄κ°•λŒλ³΄κΈ°</a></li>
      <li><a href="#">λ”λΆˆμ–΄μ‚΄κΈ°</a></li>
    </ul>
  </nav>
<section id="content">
  <h2>강아지 μš©ν’ˆ μ€€λΉ„ν•˜κΈ°</h2>
  <article>  
    <h3>강아지 집 </h3>
     <p>강아지가 편히 쉴 수 μžˆλŠ” ν¬κ·Όν•œ 집이 ν•„μš”ν•©λ‹ˆλ‹€. κ°•μ•„μ§€μ˜ 집은 강아지가 λ‹€ 큰 후에도 계속 μ“Έ 수 μžˆλŠ” μ§‘μœΌλ‘œ κ΅¬μž…ν•˜μ„Έμš”.집을 κ΅¬μž…ν•˜μ‹€ λ•ŒλŠ” λ°•μŒμ§ˆμ΄ 잘 λ˜μ–΄ μžˆλŠ”μ§€, 세탁이 κ°„νŽΈν•œ μ œν’ˆμΈμ§€ κΌ­ ν™•μΈν•˜μ‹œκ³  κ³ λ₯΄μ‹œλŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€.</p>
  </article>
  <article> 
    <h3>강아지 먹이 </h3>
    <p>κ°•μ•„μ§€μ˜ λ¨Ήμ΄λŠ” κΌ­ μ–΄λ¦° κ°•μ•„μ§€μš©μœΌλ‘œ λ‚˜μ™€μžˆλŠ” μ‚¬λ£Œλ₯Ό μ„ νƒν•˜μ„Έμš”. 강아지듀은 μ‚¬λžŒμ— λΉ„ν•΄ μ„±μž₯속도가 8배정도 λΉ λ₯΄λ‹΅λ‹ˆλ‹€. λ”°λΌμ„œ κ°•μ•„μ§€μ—κ²ŒλŠ” μ„±μž₯속도에 λ§žλŠ” μ‚¬λ£Œλ₯Ό κΈ‰μ—¬ν•˜μ…”μ•Ό ν•©λ‹ˆλ‹€. μ‚¬λžŒμ΄ λ¨ΉλŠ” μŒμ‹μ„ 먹게 되면 양념과 ν–₯μ‹ λ£Œμ— μž…λ§›μ΄ μ΅μˆ™ν•΄μ§€κ³ , λΉ„λ§Œμ΄ 될 κ°€λŠ₯성이 맀우 λ†’μ•„μ§‘λ‹ˆλ‹€. κ°•μ•„μ§€μš© μ‚¬λ£ŒλŠ” 생후 12κ°œμ›”κΉŒμ§€ κΈ‰μ—¬ν•˜μ…”μ•Ό ν•©λ‹ˆλ‹€.</p>
   </article>  
 </section>
<footer>
  <p>Copyright 2012 funnycom</p>
</footer>
</body>
</html>

 

 


 

 

02

 

<!DOCTYPE html>
<html lang="ko">
<head>
	<meta charset="utf-8">
    <title>ν‘œ μŠ€νƒ€μΌ</title>
    <style>
        table {
            border: 1px solid black;
            border-collapse: collapse;
            caption-side: bottom;
        }
        td, th {
            border: 1px solid black;
            padding: 10px;
        }
        .heading th {
            background-color: #eee;
        }
    </style>
</head>
<body>
  <table class="table1 heading">
    <caption>2015 κ΅­λ―Ό λ…μ„œμ‹€νƒœ</caption>
    <thead>
      <tr>
        <th>ꡬ뢄</th>
        <th>성인</th>
        <th>학생</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th>λ…μ„œμœ¨</th>
        <td>65.3%</td>
        <td>94.9%</td>
      </tr>
      <tr>
        <th>연평균 λ…μ„œλŸ‰</th>
        <td>9.1ꢌ</td>
        <td>29.8ꢌ</td>
      </tr>
      <tr>
        <th>κ³΅κ³΅λ„μ„œκ΄€ 이용λ₯ </th>
        <td>28.2%</td>
        <td>64.9%</td>
      </tr>      
    </tbody>
  </table>
</body>
</html>

 

 


 

 

< μ°Έκ³  >

Do it! HTML5+CSS3 μ›Ή ν‘œμ€€μ˜ 정석

 

 

β€» ν•΄λ‹Ή 글은 μŠ΅λ“ λͺ©μ μœΌλ‘œ μž‘μ„±λœ κΈ€μž…λ‹ˆλ‹€ β€»

 

λ°˜μ‘ν˜•

λŒ“κΈ€