본문 바로가기

Python_WEB/HTML

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

반응형

Q>

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

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

 

A>

ABOUT US 페이지 - 간단하게 회사를 소개하는 페이지

 

<!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>  
    <img id="shop1" src="images/shop-150362_640.png">

    <div id="show2">
        <h1>Hello!</h1>
        <p>Welcome to the store of <strong>everything</strong> that sells everything.</p>
    </div>
    
    <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;
}

#shop1 {
  display: block;
  margin: auto;
}

#show2 > h1,
p {
  text-align: center;
  padding: 10px;
  
 #back {
  text-align: center;
}

 

R>

 

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