11/23/2017 Keyboard Shortcuts
HTML CSS MORE
w3schools.com
Keyboard Shortcuts
Previous Next
Save time by using keyboard shortcuts.
Keyboard Shortcuts For Windows and Mac
Keyboard shortcuts are often used in modern operating systems and computer software
programs.
Using keyboard shortcuts could save you a lot of time.
Basic Shortcuts
Description Windows Mac OS
Edit menu Alt + E Ctrl + F2 + F
File menu Alt + F Ctrl + F2 + E
View menu Alt + V Ctrl + F2 + V
Select all text Ctrl + A Cmd + A
Copy text Ctrl + C Cmd + C
Find text Ctrl + F Cmd + F
Find and replace text Ctrl + H Cmd + F
New Document Ctrl + N Cmd + N
Open a file Ctrl + O Cmd + O
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 1/10
11/23/2017 Keyboard Shortcuts
Print options Ctrl + P Cmd + P
HTML CSS MORE
Save file Ctrl + S Cmd + S
Paste text Ctrl + V Cmd + V
Cut text Ctrl + X Cmd + X
Redo text Ctrl + Y Shift + Cmd + Z
Undo text Ctrl + Z Cmd + Z
Text Editing
Description Windows Mac OS
Cursor Movement
Go to the right or to the beginning of next line Right Arrow Right Arrow
break
Go to the left or to the end of previous line Left Arrow Left Arrow
break
Go up one row Up Arrow Up Arrow
Go down one row Down Arrow Down Arrow
Go to the beginning of the current line Home Cmd + Left Arrow
Go to the end of the current line End Cmd + Right Arrow
Go to the beginning of the document Ctrl + Home Cmd + Up Arrow
Go to the end of the document Ctrl + End Cmd + Down Arrow
Move up one frame Page Up Fn + Up Arrow
Move down one frame Page Down Fn + Down Arrow
Go to beginning of previous word Ctrl + Left Arrow Option + Left Arrow
Go to beginning of next word Ctrl + Right Arrow Option + Right Arrow
Go to beginning of line break Ctrl + Up Arrow Cmd + Left Arrow
Go to end of line break Ctrl + Down Arrow Cmd + Right Arrow
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 2/10
11/23/2017 Keyboard Shortcuts
Text Selection
HTML CSS MORE
Select characters to the left Shift + Left Arrow Shift + Left Arrow
Select characters to the right Shift + Right Arrow Shift + Right Arrow
Select lines upwards Shift + Up Arrow Shift + Up Arrow
Select lines downwards Shift + Down Arrow Shift + Down Arrow
Select words to the left Shift + Ctrl + Left Shift + Opt + Left
Select words to the right Shift + Ctrl + Right Shift + Opt + Right
Select paragraphs to the left Shift + Ctrl + Up Shift + Opt + Up
Select paragraphs to the right Shift + Ctrl + Down Shift + Opt + Down
Select text between the cursor and the Shift + Home Cmd + Shift + Left
beginning of the current line Arrow
Select text between the cursor and the end of Shift + End Cmd + Shift + Right
the current line Arrow
Select text between the cursor and the Shift + Ctrl + Home Cmd + Shift + Up
beginning of the document Arrow or Cmd + Shift
+ Fn + Left Arrow
Select text between the cursor and the end of Shift + Ctrl + End Cmd + Shift + Down
the document Arrow or Cmd + Shift
+ Fn + Right Arrow
Select one frame at a time of text above the Shift + Page Up Shift + Fn + Up
cursor Arrow
Select one frame at a time of text below the Shift + Page Down Shift + Fn + Down
cursor Arrow
Select all text Ctrl + A Cmd + A
Find text Ctrl + F Cmd + F
Text Formatting
Make selected text bold Ctrl + B Cmd + B
Make selected text italic Ctrl + I Cmd + I
Underline selected text Ctrl + U Cmd + U
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 3/10
11/23/2017 Keyboard Shortcuts
Make selected text superscript Ctrl + Shift + = Cmd + Shift + =
HTML CSS MORE
Make selected text subscript Ctrl + = Cmd + =
Text Editing
Delete characters to the left Backspace Backspace
Delete characters to the right Delete Fn + Backspace
Delete words to the right Ctrl + Del Cmd + Backspace
Delete words to the left Ctrl + Backspace Cmd + Fn +
Backspace
Indent Tab Tab
Outdent Shift + Tab Shift + Tab
Copy text Ctrl + C Cmd + C
Find and replace text Ctrl + H Cmd + F
Paste text Ctrl + V Cmd + V
Cut text Ctrl + X Cmd + X
Redo text Ctrl + Y Shift + Cmd + Z
Undo text Ctrl + Z Cmd + Z
Web Browsers
Description Windows Mac OS
Navigation
Scroll down a frame Space or Page Down Space or Fn + Down
Arrow
Scroll up a frame Shift + Space or Shift + Space or Fn
Page Up + Up Arrow
Go to bottom of the page End Cmd + Down Arrow
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 4/10
11/23/2017 Keyboard Shortcuts
Go to top of the page Home Cmd + Up Arrow
HTML CSS MORE
Go back Alt + Left Arrow or Cmd + Left Arrow
Backspace
Go forward Alt + Right Arrow or Cmd + Right Arrow
Shift + Backspace
Refresh a webpage F5 Cmd + R
Refresh a webpage (no cache) Ctrl + F5 Cmd + Shift + R
Stop Esc Esc
Toggle full-screen F11 Cmd + Shift + F
Zoom in Ctrl + + Cmd + +
Zoom out Ctrl + - Cmd + -
Zoom 100% (default) Ctrl + 0 Cmd + 0
Open homepage Alt + Home Option + Home or
Option + Fn + Left
Arrow
Find text Ctrl + F Cmd + F
Tab / Window Management
Open a new tab Ctrl + T Cmd + T
Close current tab Ctrl + W Cmd + W
Close all tabs Ctrl + Shift + W Cmd + Q
Close all tabs except the current tab Ctrl + Alt + F4 Cmd + Opt + W
Go to next tab Ctrl + Tab Control + Tab or
Cmd + Shift + Right
Arrow
Go to previous tab Ctrl + Shift + Tab Shift + Control + Tab
or Cmd + Shift +
Left Arrow
Go to a specific tab number Ctrl + 1-8 Cmd + 1-8
Go to the last tab Ctrl + 9 Cmd + 9
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 5/10
11/23/2017 Keyboard Shortcuts
Reopen the HTML
last closedCSS
tab MORE Ctrl + Shift + T Cmd + Shift + T
Open a new window Ctrl + N Cmd + N
Close current window Alt + F4 Cmd + W
Go to next window Alt + Tab Cmd + Tab
Go to previous window Alt + Shift + Tab Cmd + Shift + Tab
Reopen the last closed window Ctrl + Shift + N
Open links in a new tab in the background Ctrl + Click Cmd + Click
Open links in a new tab in the foreground Ctrl + Shift + Click Cmd + Shift + Click
Print current webpage Ctrl + P Cmd + P
Save current webpage Ctrl + S Cmd + S
Address Bar
Cycle between toolbar, search bar, and page Tab Tab
elements
Go to browser's address bar Ctrl + L or Alt + D Cmd + L
Focus and select the browser's search bar Ctrl + E Cmd + E / Cmd + K
Open the address bar location in a new tab Alt + Enter Opt + Enter
Display a list of previously typed addresses F4
Add "www." to the beginning and ".com" to the Ctrl + Enter Cmd + Enter or
end of the text typed in the address bar (e.g., Control + Enter
type "w3schools" and press Ctrl + Enter to
open "www.w3schools.com")
Bookmarks
Open the bookmarks menu Ctrl + B Cmd + B
Add bookmark for current page Ctrl + D Cmd + Opt + B or
Cmd + Shift + B
Open browsing history Ctrl + H Cmd + Shift + H or
Cmd + Y
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 6/10
11/23/2017 Keyboard Shortcuts
Open download history Ctrl + J Cmd + J or Cmd +
HTML CSS MORE
Shift + J
Screenshots
Description Windows Mac OS
Save screenshot of the whole screen as file Cmd + Shift + 3
Copy screenshot of the whole screen to the PrtScr (Print Screen) Cmd + Ctrl + Shift +
clipboard or Ctrl + PrtScr 3
Save screenshot of window as file Cmd + Shift + 4,
then Space
Copy screenshot of window to the clipboard Alt + PrtScr Cmd + Ctrl + Shift +
4, then Space
Copy screenshot of wanted area to the Cmd + Ctrl + Shift +
clipboard 4
Save screenshot of wanted area as file Cmd + Shift + 4
Note: Due to different keyboard setups, some shortcuts may not be compatible for all users.
Previous Next
COLOR PICKER
HOW TO
Tabs
Dropdowns
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 7/10
11/23/2017 Keyboard Shortcuts
Accordions
HTML CSS MORE
Convert Weights
Animated Buttons
Side Navigation
Top Navigation
Modal Boxes
Progress Bars
Parallax
Login Form
HTML Includes
Google Maps
Range Sliders
Tooltips
Slideshow
Filter List
Sort List
SHARE
CERTIFICATES
HTML, CSS, JavaScript, PHP, jQuery, Bootstrap and XML.
Read More
REPORT ERROR
PRINT PAGE
FORUM
ABOUT
Top 10 Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 8/10
11/23/2017 Keyboard Shortcuts
SQL Tutorial
HTML CSS MORE PHP Tutorial
jQuery Tutorial
Angular Tutorial
XML Tutorial
Top 10 References
HTML Reference
CSS Reference
JavaScript Reference
W3.CSS Reference
Browser Statistics
PHP Reference
HTML Colors
HTML Character Sets
jQuery Reference
AngularJS Reference
Top 10 Examples
HTML Examples
CSS Examples
JavaScript Examples
W3.CSS Examples
HTML DOM Examples
PHP Examples
ASP Examples
jQuery Examples
Angular Examples
XML Examples
Web Certificates
HTML Certificate
CSS Certificate
JavaScript Certificate
jQuery Certificate
PHP Certificate
Bootstrap Certificate
XML Certificate
W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic
understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full
correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy
policy. Copyright 1999-2017 by Refsnes Data. All Rights Reserved.
Powered by W3.CSS.
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 9/10
11/23/2017 Keyboard Shortcuts
https://www.w3schools.com/tags/ref_keyboardshortcuts.asp 10/10