Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c66c624

Browse files
authored
Update README.md
1 parent 6cea24c commit c66c624

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Week1/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The Document-Object Model (DOM) is a tree-like representation of the structure o
7878

7979
![Simple DOM](./../assets/simple-dom.png)
8080

81-
JavaScript is made accessible to the DOM by embedding it into an HTML file. You might've seen the <script></script> before; well, this is how the browser becomes aware of JavaScript.
81+
JavaScript is made accessible to the DOM by embedding it into an HTML file. You might've seen the `<script></script>` before; well, this is how the browser becomes aware of JavaScript.
8282

8383
- [What exactly is the DOM](https://bitsofco.de/what-exactly-is-the-dom/)
8484
- [JavaScript and the browser](https://eloquentjavascript.net/13_browser.html)
@@ -111,12 +111,12 @@ body.appendChild(newParagraph);
111111
In this example we're executing the following steps:
112112

113113
1. We're first selecting the body: this is always necessary, as we can only add or remove elements from the body of the document
114-
2. Secondly, we're creating a new DOM element: a <p> element
114+
2. Secondly, we're creating a new DOM element: a `<p>` element
115115
3. Thirdly, we're injecting content into the element
116116
4. Fourthly, we give our element a background color
117-
5. Finally, we add the <p> element in the body
117+
5. Finally, we add the `<p>` element in the body
118118

119-
Test this code out by copying and pasting it in the Developer Console of your browser. After you've pressed the Enter/Return key you will find your new <p> at the end of the page!
119+
Test this code out by copying and pasting it in the Developer Console of your browser. After you've pressed the Enter/Return key you will find your new `<p>` at the end of the page!
120120

121121
Learning how to write JavaScript that targets the DOM is an essential part of being a web developer. In the following resources you'll more about how to do that:
122122

@@ -148,7 +148,7 @@ body.addEventListener('click', function() {
148148
});
149149
```
150150

151-
Test this code out by copying and pasting it in the Developer Console of your browser. After you've pressed the Enter/Return click the website. You should see the whole <body> becoming black!
151+
Test this code out by copying and pasting it in the Developer Console of your browser. After you've pressed the Enter/Return click the website. You should see the whole `<body>` becoming black!
152152

153153
This is DOM manipulation in its simplest form. It goes in three essential steps:
154154

0 commit comments

Comments
 (0)