Compiler
HTML
HTML Class & Id
Run
<!DOCTYPE html> <html> <head> <script> function myFunction() { var x = document.getElementsByClassName("country"); for (var i = 0; i < x.length; i++){ x[i].style.display = "none"; } } </script> </head> <body> <p>Click the button, and a JavaScript hides all elements with the class name "country":</p> <button onclick="myFunction()">Hide elements</button> <h2 class="country">India</h2> <p>Welcome to Webtutor.dev</p> <h2 class="country">Gujarat</h2> <p>We Build Websites</p> <h2 class="country">Surat</h2> <p>Websites Build Shells.</p> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S