星を追いながら学ぶHTML
2021.08.22
<!--seventeen.html-->
<!DOCTYPE html>
<html>
<head>
<title>Seventeen</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<h1>
SEVENTEEN
</h1>
<h2>
한국의 13인조 보이그룹
</h2>
<div class="part">
<img class="photo" src="../image/SVT.jpg">
<div class="letter">
<h3 class="name">
세븐틴
</h3>
<p class="info">
팀이름은 13명의 멤버+3개의 유닛+1개의 팀이라는 의미이다.<br>
팬덤 이름으로 캐럿을 사용하고 있다.<br>
데뷔일: 2015.05.26
</p>
</div>
</div>
<div class="part">
<img class="photo" src="../image/SVTH.jpg">
<div class="letter">
<h3 class="name">
세븐틴 힙합팀
</h3>
<p class="info">
리더: 에스쿱스<br>
멤버: <a href="Wonwoo.html" target="_blank">원우</a>, 민규, 버논<br>
특징: 4명의 멤버의 나이가 모두 다르다.<br>
힙합팀이지만 발라드를 좋아한다.<br>
유닛별 경기의 2등 담당
</p>
</div>
</div>
<div class="part">
<img class="photo" src="../image/SVTV.jpg">
<div class="letter">
<h3 class="name">
세븐틴 보컬팀
</h3>
<p class="info">
리더: 우지<br>
멤버: 정한, <a href="Joshua.html" target="_blank">조슈아</a>, 도겸, 승관<br>
특징: 세븐틴 유닛들 중 유일하게 5명이다.<br>
보컬팀이지만 개그와 힙합을 좋아한다.<br>
유닛별 경기에서 항상 1등
</p>
</div>
</div>
<div class="part">
<img class="photo" src="../image/SVTP.jpg">
<div class="letter">
<h3 class="name">
세븐틴 퍼포먼스팀
</h3>
<p class="info">
리더: 호시<br>
멤버: 준, 디에잇, 디노<br>
특징: 막내 보유 유닛!<br>
퍼포먼스팀이지만 항상 누워있다.<br>
유닛별 경기에서 항상 3등(어삼퍼)
</p>
</div>
</div>
</body>
</html>
/*style.css*/
@font-face {
src: url("../font/BMJUA_ttf.ttf");
font-family: "Bamin";
}
* {
box-sizing: border-box;
}
body {
background-color: #F7CAC9;
font-family: "Bamin";
text-align: center;
}
.photo {
width: 300px;
height: 200px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
h1 {
font-size: 64px;
margin-top: 75px;
margin-bottom: 30px;
}
h2 {
font-size: 32px;
margin-bottom: 75px;
}
.letter{
padding: 20px;
}
.part {
display: block;
background-color: #92A8D1;
margin-left: auto;
margin-right: auto;
border-radius: 10px;
margin-bottom: 50px;
width: 300px
}
.name{
font-size: 32px;
margin-top: 0;
}
.info {
font-size: 16px;
text-align: left;
margin-top: 0;
}
a {
color: black;
}
<!--Wonwoo.html-->
<!DOCTYPE html>
<html>
<head>
<title>Wonwoo</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/mstyle.css">
</head>
<body>
<h1 class="name">
원우
</h1>
<div class="photo_info">
<img class="photo" src="../image/WW.jpg">
<div class="letter">
<h2 class="info">
본명: 전원우 <br>
나이: 26세 <br>
생일: 1996.07.17 <br>
소속 유닛: 힙합팀 <br>
Icon: 고양이
</h2>
<p class="TMI">
특징: <a href="seventeen.html" target="_blank">세븐틴</a>에서 저음을 담당하고 있다. <br>
랩퍼이지만 매력있는 보컬을 좋아하는 팬들이 다수 존재한다. <br>
</p>
</div>
</div>
</body>
</html>
<!--Joshua.html-->
<!DOCTYPE html>
<html>
<head>
<title>Joshua</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/mstyle.css">
</head>
<body>
<h1 class="name">
조슈아
</h1>
<div class="photo_info">
<img class="photo" src="../image/Jo.jpg">
<div class="letter">
<h2 class="info">
본명: 조슈아 지수 홍 <br>
나이: 27세 <br>
생일: 1995.12.30 <br>
소속 유닛: 보컬팀 <br>
Icon: 사슴
</h2>
<p class="TMI">
특징: <a href="seventeen.html" target="_blank">세븐틴</a>에서 선데이모닝을 담당하고 있다. <br>
미국 국적을 가지고 있으며 같은 팀 멤버 정한이 뽑은 비주얼 Top3에 속한다. <br>
</p>
</div>
</div>
</body>
</html>
/*mstyle.css*/
@font-face {
src: url("../font/BMJUA_ttf.ttf");
font-family: "Bamin";
}
* {
box-sizing: border-box;
}
body {
font-family: "Bamin";
text-align: center;
}
.name {
font-size: 60px;
border: 10px solid black;
width: 300px;
margin-left: auto;
margin-right: auto;
margin-bottom: 0;
font-weight: 600;
}
.photo_info {
width: 300px;
margin-left: auto;
margin-right: auto;
}
.photo {
display: block;
width: 300px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
margin-top: 20px;
margin-bottom: 0px;
}
.letter{
background-color: #F7CAC9;
margin-top: 0px;
padding: 10px 30px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
text-align: left;
}
a {
text-decoration: none;
color: #92A8D1;
}
.info {
font-size: 20px;
font-weight: 500;
}
Reference
この問題について(星を追いながら学ぶHTML), 我々は、より多くの情報をここで見つけました https://velog.io/@berrypanda/덕질-하면서-공부하는-HTMLテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol