Skip to content

Commit b5f4bc4

Browse files
committed
DOM修正 (htmlがなかった)
1 parent 18e13c5 commit b5f4bc4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/1-trial-session/13-dom/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ element.style.backgroundColor = "red";
5858

5959
<Answer type="JSを用いたCSSスタイリング">
6060

61+
```html
62+
<!doctype html>
63+
<html lang="ja">
64+
<head>
65+
<meta charset="utf-8" />
66+
<title>Title</title>
67+
</head>
68+
<body>
69+
<div id="foo">Foo</div>
70+
<script src="./script.js"></script>
71+
</body>
72+
</html>
73+
```
74+
6175
```javascript
6276
const element = document.getElementById("foo");
6377
element.style.border = "1px solid #aaa";

0 commit comments

Comments
 (0)