https://developer.mozilla.org/ko/docs/Learn/HTML/Introduction_to_HTML/Structuring_a_page_of_content
콘텐츠 페이지 구조화 - Web 개발 학습하기 | MDN
CSS를 사용하여 콘텐츠 페이지를 레이아웃할 수 있도록 구조화하는 것은 숙달해야 할 매우 중요한 기술이므로 이 장에서는 페이지가 어떻게 보일지 고려하고 그 위에 레이아웃을 구축할 적절한
developer.mozilla.org
폴더 구조
index.html (이 코드만 수정했습니다.)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Birdwatching</title>
<link
href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300%7CCinzel+Decorative:700"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<header>
<h1>Birdwatching</h1>
<img src="dove.png" alt="a simple dove logo" />
</header>
<nav>
<ul>
<li><span>Home</span></li>
<li><a href="#">Get started</a></li>
<li><a href="#">Photos</a></li>
<li><a href="#">Gear</a></li>
<li><a href="#">Forum</a></li>
</ul>
</nav>
<main>
<article>
<h2>Welcome</h2>
<section>
<p>
Welcome to our fake birdwatching site. If this were a real site, it
would be the ideal place to come to learn more about birdwatching,
whether you are a beginner looking to learn how to get into birding,
or an expert wanting to share ideas, tips, and photos with other
like-minded people.
</p>
</section>
<section>
<p>
So don't waste time! Get what you need, then turn off that computer
and get out into the great outdoors!
</p>
</section>
</article>
<aside>
<h2>Favourite photos</h2>
<a href="favorite-1.jpg"
><img
src="favorite-1_th.jpg"
alt="Small black bird, black claws, long black slender beak, links to larger version of the image"
/></a>
<a href="favorite-2.jpg"
><img
src="favorite-2_th.jpg"
alt="Top half of a pretty bird with bright blue plumage on neck, light colored beak, blue headdress, links to larger version of the image"
/></a>
<a href="favorite-3.jpg"
><img
src="favorite-3_th.jpg"
alt="Top half of a large bird with white plumage, very long curved narrow light colored break, links to larger version of the image"
/></a>
<a href="favorite-4.jpg"
><img
src="favorite-4_th.jpg"
alt="Large bird, mostly white plumage with black plumage on back and rear, long straight white beak, links to larger version of the image"
/></a>
</aside>
</main>
<p>
This fake website example is CC0 — any part of this code may be reused in
any way you wish. Original example written by Chris Mills, 2016.
</p>
<p>
<a href="http://game-icons.net/lorc/originals/dove.html">Dove icon</a> by
Lorc.
</p>
</body>
</html>
728x90
'Computer > HTML, CSS, Javascript' 카테고리의 다른 글
[HTML] 과제_Multimedia and embedding (2) | 2024.10.14 |
---|---|
[HTML] 과제: HTML 이미지 (1) | 2024.10.13 |
[HTML]과제: 문서 마크업하기 (2) | 2024.10.13 |
[HTML] 고급 텍스트 서식 지정 과제 (1) | 2024.10.12 |
[HTML] 하이퍼링크 만들기 과제 (5) | 2024.10.12 |