Skip to content

Commit 18e89c1

Browse files
committed
Merge branch 'website-no-mitame' of github.com:ut-code/utcode-learn into website-no-mitame
2 parents 77c989a + c16d2db commit 18e89c1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

docs/1-trial-session/12-css/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import ViewSource from "@site/src/components/ViewSource";
1010

1111
![Web開発で用いられる言語](../02-html/web-development-languages.drawio.svg)
1212

13-
1413
CSS の書き方を学び、「World」の文字を赤くしてみましょう。
1514

1615
![Hello World!](./red-hello-world.png)
@@ -45,7 +44,6 @@ CSS ファイルの拡張子は通常 `.css` です。今回は `index.html` と
4544

4645
<ViewSource url={import.meta.url} path="_samples/red-hello-world" />
4746

48-
4947
## `link` 要素
5048

5149
```html title="index.html"
@@ -56,8 +54,7 @@ CSS ファイルの拡張子は通常 `.css` です。今回は `index.html` と
5654

5755
## セレクタとID
5856

59-
60-
CSS を記述する際には、まずスタイルを適用する対象となる HTML 要素を指定する必要があります。このために用いることができるのが、HTML 要素の `id` 属性です。(上の例では、 <code>index.html</code> の 9行目)
57+
CSS を記述する際には、まずスタイルを適用する対象となる HTML 要素を指定する必要があります。このために用いることができるのが、HTML 要素の `id` 属性です。(上の例では、 <code>index.html</code> の 9行目)
6158

6259
![セレクタ](selector.png)
6360

@@ -164,14 +161,13 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
164161

165162
</Answer>
166163

167-
168164
### 初級課題2 (Hello CSS!)
169165

170166
下のような、文字色が黄色、背景色が好きな色 (この例では黒) の `Hello CSS!` をブラウザで表示してみましょう。
171167

172168
![Hello CSS!](yellow-hello-css.png)
173169

174-
使用するプロパティは `color` `background-color` です。
170+
使用するプロパティは `color``background-color` です。
175171

176172
<Answer title="Hello CSS!">
177173

@@ -195,6 +191,7 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
195191
background-color: black;
196192
}
197193
```
194+
198195
<ViewSource url={import.meta.url} path="_samples/yellow-hello-css" />
199196

200197
</Answer>

0 commit comments

Comments
 (0)