Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScriptファイルとCSSファイルの指定方法を統一 #702

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="ja">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
<title>Title</title>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="ja">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
<title>Title</title>
</head>
<body>
Expand Down
8 changes: 4 additions & 4 deletions docs/1-trial-session/12-css/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CSS ファイルの拡張子は通常 `.css` です。今回は `index.html` と
<html lang="ja">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
<title>Title</title>
</head>
<body>
Expand All @@ -43,7 +43,7 @@ CSS ファイルの拡張子は通常 `.css` です。今回は `index.html` と
## `link` 要素

```html title="index.html"
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
```

まず注目すべきは `link` 要素です。HTML で、`link` 要素を用いることにより、外部の CSS ファイルを読み込ませることができます。
Expand Down Expand Up @@ -179,7 +179,7 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
<html lang="ja">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
<title>Title</title>
</head>
<body>
Expand Down Expand Up @@ -220,7 +220,7 @@ CSS の<Term type="cssProperty">プロパティ</Term>には `color` (文字色)
<html lang="ja">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
<title>Title</title>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
<li id="item2">ナス</li>
<li id="item3">バジル</li>
</ul>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<ul id="fruit-basket"></ul>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<div id="countdown-box"></div>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<title>Shape クラス</title>
</head>
<body>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box">Foo</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>課題</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="wrapper">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="wrapper">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="wrapper">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box1">box1</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<span class="box1">box1</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/2-browser-apps/05-css-arrangement/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ HTML の要素はすべて、一定の高さと幅を持った四角形だと考
<head>
<meta charset="utf-8" />
<title>Title</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="box">Foo</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<ul id="message-list"></ul>
<input id="message-input" placeholder="メッセージ" />
<button id="send-button">送信</button>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<button id="fetch-button">天気予報を見る</button>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<input id="name" placeholder="名前" />
<input id="age" placeholder="年齢" />
<button id="send-button">送信</button>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<input id="name" placeholder="名前" />
<input id="age" placeholder="年齢" />
<button id="send-button">送信</button>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/4-advanced/04-react/_samples/todo-dom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<ul id="todos"></ul>
<input id="message" />
<button id="add-todo" type="button">追加</button>
<script src="script.js"></script>
<script src="./script.js"></script>
</body>
</html>
Loading