본문 바로가기

Python_WEB/HTML

[Ch7]HTML과 CSS로 웹 사이트 만들기 연습문제 2

반응형

Q>

본문에서 구현된 작은 웹 사이트에서는 아직 완성하지 못한 페이지가 많다.

페이지를 작성하여 전체 사이트를 완성하여 보자.

 

A>

NEWS 페이지 - 신상품을 소개하는 페이지

 

<!DOCTYPE html>
<html lang="ko">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>신상품 소개</title>
    <link rel="stylesheet" href="css/mystyle.css">
</head>

<body>
    <h1 id="title">LG Gram 2021</h1>
    <img id="lg" src="images/download.jpg"><br />

    <table id="lggram">
        <caption>사양표</caption>
        <tr>
            <th>프로세서</th>
            <td>인텔 11th Core i5-1135G7 Processor</td>
        </tr>
        <tr>
            <th>메모리</th>
            <td>8 GB LPDDR4 SDRAM, 256 GB PCI Express 3.0 규격 SSD, UFS Card 1.0 & micro SDXC</td>
        </tr>
        <tr>
            <th>디스플레이</th>
            <td>16인치 16:10 비율 WUXGA(1920 x 1080) IPS TFT-LCD</td>
        </tr>
        <tr>
            <th>운영체제</th>
            <td>Windows 10</td>
        </tr>
        <tr>
            <th>근접통신</th>
            <td>Wi-Fi 1/2/3/4/5/6, 블루투스</td>
        </tr>
        <tr>
            <th>배터리</th>
            <td>내장형 리튬 이온 베터리 80 Wh</td>
        </tr>
        <tr>
            <th>규격</th>
            <td>244 x 356 x 168 mm, 1.19 kg</td>
        </tr>
        <tr>
            <th>단자정보</th>
            <td>USB 3.1 Gen1 Type-C x 2 (Thunderbolt 4 지원), USB 3.1 Gen1 Type-A x 2, 3.5 mm 단자 x 1, HDMI</td>
        </tr>
        <tr>
            <th>생체인식</th>
            <td>지문인식 - Windows Hello 연계(에어리어 방식 별도 센서 탑재)</td>
        </tr>
        <tr>
            <th>기타사항</th>
            <td>MIL-STD-810G 인증 취득, DTS:X Ultra 음향 기술 탑재</td>
        </tr>
        <tr>
            <td colspan="2">14" / 15" / 16" / 17" 다양한 사이즈로 출시</td>
        </tr>
    </table>
    
    <div id="back">
        <a href="index.html">Back to Home</a>
    </div>
</body>

</html>

 

* {
  /*border: 1px solid red;*/
  padding: 0px;
  margin: 0px;
}

body {
  background-color: #f3f1e9;
  height: 100%;
}

a,
#back {
  text-decoration: none;
  color: #3f3f3f;
}

a:hover {
  color: #ff088f;
  text-shadow: 4px 2px 2px gray;
}

#lg {
  display: block;
  width: 800px;
  height: auto;
  margin: auto;
}

caption {
  font-size: 30px;
  font-weight: bold;
}

#title {
  text-align: center;
  margin: 20px;
}

#lggram {
  margin: auto;
  width: 1000px;
  text-align: center;
  border-collapse: separate;
  border-spacing: 10px;
}
  
 #back {
  text-align: center;
}

 

R>

 

HTML5 + CSS3 + JavaScript로 배우는 웹프로그래밍 기초
국내도서
저자 : 천인국
출판 : 인피니티북스 2013.12.19
상세보기
반응형