質問編集履歴
2
答えを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -192,4 +192,161 @@
|
|
192
192
|
footer li{
|
193
193
|
padding-bottom: 20px;
|
194
194
|
}
|
195
|
+
```
|
196
|
+
答えのコード
|
197
|
+
```html
|
198
|
+
<!DOCTYPE html>
|
199
|
+
<html>
|
200
|
+
<head>
|
201
|
+
<meta charset="utf-8">
|
202
|
+
<title>Progate</title>
|
203
|
+
<link rel="stylesheet" href="stylesheet.css">
|
204
|
+
</head>
|
205
|
+
<body>
|
206
|
+
<!-- ここからHTMLを書き始めてください -->
|
207
|
+
<div class="header">
|
208
|
+
<div class="header-logo">Progate</div>
|
209
|
+
<div class="header-list">
|
210
|
+
<ul>
|
211
|
+
<li>プログラミングとは</li>
|
212
|
+
<li>学べるレッスン</li>
|
213
|
+
<li>お問い合わせ</li>
|
214
|
+
</ul>
|
215
|
+
</div>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div class="main">
|
219
|
+
<div class="copy-container">
|
220
|
+
<h1>HELLO WORLD<span>.</span></h1>
|
221
|
+
<h2>プログラミングの世界へようこそ</h2>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
<div class="contents">
|
225
|
+
<h3 class="section-title">学べるレッスン</h3>
|
226
|
+
<div class="contents-item">
|
227
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/html.svg">
|
228
|
+
<p>HTML & CSS</p>
|
229
|
+
</div>
|
230
|
+
<div class="contents-item">
|
231
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/php.svg">
|
232
|
+
<p>PHP</p>
|
233
|
+
</div>
|
234
|
+
<div class="contents-item">
|
235
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/ruby.svg">
|
236
|
+
<p>Ruby</p>
|
237
|
+
</div>
|
238
|
+
<div class="contents-item">
|
239
|
+
<img src="https://s3-ap-northeast-1.amazonaws.com/progate/shared/images/lesson/html/study/swift.svg">
|
240
|
+
<p>Swift</p>
|
241
|
+
</div>
|
242
|
+
</div>
|
243
|
+
|
244
|
+
<div class="contact-form">
|
245
|
+
<h3 class="section-title">お問い合わせ</h3>
|
246
|
+
<p>メールアドレス(必須)</p>
|
247
|
+
<input>
|
248
|
+
<p>お問い合わせ内容(必須)</p>
|
249
|
+
<textarea></textarea>
|
250
|
+
<p>※必須項目は必ずご入力ください</p>
|
251
|
+
<input class="contact-submit" type="submit" value="送信">
|
252
|
+
</div>
|
253
|
+
</div>
|
254
|
+
</body>
|
255
|
+
</html>
|
256
|
+
```
|
257
|
+
```CSS
|
258
|
+
html, body,
|
259
|
+
ul, ol, li,
|
260
|
+
h1, h2, h3, h4, h5, h6, p,
|
261
|
+
form, input, div {
|
262
|
+
margin: 0;
|
263
|
+
padding: 0;
|
264
|
+
}
|
265
|
+
|
266
|
+
body {
|
267
|
+
font-family: "Avenir Next", "Hiragino Kaku Gothic ProN W3", sans-serif;
|
268
|
+
}
|
269
|
+
|
270
|
+
li {
|
271
|
+
list-style: none;
|
272
|
+
}
|
273
|
+
|
274
|
+
|
275
|
+
/* ここからCSSを記述してください */
|
276
|
+
.header {
|
277
|
+
background-color: #26d0c9;
|
278
|
+
color: #fff;
|
279
|
+
height: 90px;
|
280
|
+
}
|
281
|
+
|
282
|
+
.header-logo {
|
283
|
+
float: left;
|
284
|
+
font-size: 36px;
|
285
|
+
padding: 20px 40px;
|
286
|
+
}
|
287
|
+
|
288
|
+
.header-list {
|
289
|
+
float: left;
|
290
|
+
}
|
291
|
+
|
292
|
+
.header-list li {
|
293
|
+
float: left;
|
294
|
+
padding: 33px 20px;
|
295
|
+
}
|
296
|
+
|
297
|
+
.main {
|
298
|
+
padding: 100px 80px;
|
299
|
+
}
|
300
|
+
|
301
|
+
.copy-container h1 {
|
302
|
+
font-size: 140px;
|
303
|
+
}
|
304
|
+
|
305
|
+
.copy-container h2 {
|
306
|
+
font-size: 60px;
|
307
|
+
}
|
308
|
+
|
309
|
+
.copy-container span {
|
310
|
+
color: #ff4a4a;
|
311
|
+
}
|
312
|
+
|
313
|
+
.contents {
|
314
|
+
height: 500px;
|
315
|
+
margin-top: 100px;
|
316
|
+
}
|
317
|
+
|
318
|
+
.section-title {
|
319
|
+
border-bottom: 2px solid #dee7ec;
|
320
|
+
font-size: 28px;
|
321
|
+
padding-bottom: 15px;
|
322
|
+
margin-bottom: 50px;
|
323
|
+
}
|
324
|
+
|
325
|
+
.contents-item {
|
326
|
+
float: left;
|
327
|
+
margin-right: 40px;
|
328
|
+
}
|
329
|
+
|
330
|
+
.contents-item p {
|
331
|
+
font-size: 24px;
|
332
|
+
margin-top: 30px;
|
333
|
+
}
|
334
|
+
|
335
|
+
.contact-form {
|
336
|
+
padding-top: 100px;
|
337
|
+
}
|
338
|
+
|
339
|
+
input, textarea {
|
340
|
+
width: 400px;
|
341
|
+
margin-top: 10px;
|
342
|
+
margin-bottom: 30px;
|
343
|
+
padding: 20px;
|
344
|
+
font-size: 18px;
|
345
|
+
border: 1px solid #dee7ec;
|
346
|
+
}
|
347
|
+
|
348
|
+
.contact-submit {
|
349
|
+
background-color: #dee7ec;
|
350
|
+
color: #889eab;
|
351
|
+
}
|
195
352
|
```
|
1
画像の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,6 +8,9 @@
|
|
8
8
|
以下、自分が書いたコードです。HTMLとCSSで記述しています。
|
9
9
|
初心者であるため、読みにくいコードになっているかもしれませんが、ご容赦ください。
|
10
10
|
|
11
|
+
追記: 実際の画像を追記させていただきます。
|
12
|
+

|
13
|
+
|
11
14
|
```html
|
12
15
|
<!DOCTYPE html>
|
13
16
|
<html>
|