Skip to content

Commit a9e2ce2

Browse files
committed
DOM
1 parent 0e6e65f commit a9e2ce2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

DOM/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ <h3>DOM: Document Object Model</h3>
2222
<div class="week">Saturday</div>
2323
<div class="week">Sunday</div>
2424
</div>
25+
<div class="input">
26+
<input type="password" name="" id="">
27+
</div>
2528
</div>
2629
</body>
2730
<script src="script.js"></script>

Notes/DOM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For example: document.getElementById("myId") gets a node, and you can change its
2929

3030
### 1. Selecting Elements
3131
- `document.getElementById("myId");`
32-
- `document.querySelector(".myClass");`
32+
- `document.querySelector(".myClass");` // Supports all css selectors
3333
- `document.querySelectorAll("div");` // NodeList of all divs
3434

3535
### 2. Changing Styles

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy