We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 100b79d commit 4bd4c28Copy full SHA for 4bd4c28
html.markdown
@@ -183,7 +183,7 @@ h1 {
183
184
use an id when there will only be a single element
185
186
-``` css
+``` html
187
<html>
188
<head>
189
<style>
@@ -268,6 +268,21 @@ but we can do lots of other things with css:
268
269
and more! http://www.w3.org/TR/CSS2/selector.html#pattern-matching
270
---
271
+# css selectors
272
+
273
+You can use css selectors directly from javascript:
274
275
276
+<body>
277
+ <div id="neat">
278
+ <div class="msg">...</div>
279
+ </div>
280
+ <script>
281
+ document.querySelector('#neat .msg').textContent = 'cool!!!!'
282
+ </script>
283
+</body>
284
+```
285
+---
286
# neocities
287
288
You can host your html on neocities for free!
0 commit comments