English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Comprehensive list of HTML tags

Common Keyboard Shortcuts

Using keyboard shortcuts can save time, improve work efficiency, and reduce the number of mouse clicks.

Keyboard shortcuts for Windows and Mac

Keyboard shortcuts are frequently used in modern operating systems and computer software programs.

Using keyboard shortcuts can save you a lot of time.

Basic shortcuts

DescriptionWindowsMac OS
Edit menuAlt + ECtrl + F2 + F
File menuAlt + FCtrl + F2 + E
View menuAlt + VCtrl + F2 + V
Select all textCtrl + ACmd + A
Copy textCtrl + CCmd + C
Find textCtrl + FCmd + F
Find and replace textCtrl + HCmd + F
Create a new documentCtrl + NCmd + N
Open a fileCtrl + OCmd + O
Print optionsCtrl + PCmd + P
Save the fileCtrl + SCmd + S
Paste textCtrl + VCmd + V
Cut textCtrl + XCmd + X
Redo textCtrl + YShift + Cmd + Z
Undo textCtrl + ZCmd + Z


 

Text Editing

DescriptionWindowsMac OS
Cursor movement

Move the insertion cursor to the right or to the beginning of the next lineRight ArrowRight Arrow
Move the insertion cursor to the left or to the end of the previous lineLeft ArrowLeft Arrow
Move the insertion cursor up one lineUp ArrowUp Arrow
Move the insertion cursor down one lineDown ArrowDown Arrow
Move the insertion cursor to the beginning of the current lineHomeCmd + Left Arrow
Move the insertion cursor to the end of the current lineEndCmd + Right Arrow
Move the insertion cursor to the beginning of the documentCtrl + HomeCmd + Up Arrow
Move the insertion cursor to the end of the documentCtrl + EndCmd + Down Arrow
Move the insertion cursor to the previous text boxPage UpFn + Up Arrow
Move the insertion cursor to the next text boxPage DownFn + Down Arrow
Move the insertion cursor to the start of the previous word to the leftCtrl + Left ArrowOption + Left Arrow
Move the insertion cursor to the start of the next word to the rightCtrl + Right ArrowOption + Right Arrow
Move the insertion cursor to the beginning of the lineCtrl + Up ArrowCmd + Left Arrow
Move the insertion cursor to the end of the lineCtrl + Down ArrowCmd + Right Arrow
   
Text selection

Select the character to the left of the insertion cursorShift + Left ArrowShift + Left Arrow
Select the character to the right of the insertion cursorShift + Right ArrowShift + Right Arrow
Select a line of text upwardShift + Up ArrowShift + Up Arrow
Select a line of text downwardShift + Down ArrowShift + Down Arrow
Select the character to the left of the insertion cursorShift + Ctrl + LeftShift + Opt + Left
Select the character to the right of the insertion cursorShift + Ctrl + RightShift + Opt + Right
Select a text segment to the leftShift + Ctrl + UpShift + Opt + Up
Select a text segment to the rightShift + Ctrl + DownShift + Opt + Down
Select text to insert cursor between the beginning of the current line and the cursorShift + HomeCmd + Shift + Left Arrow
Select text to insert cursor between the end of the current line and the cursorShift + EndCmd + Shift + Right Arrow
Select text to insert cursor between the text and the beginning of the documentShift + Ctrl + HomeCmd + Shift + Up Arrow or Cmd + Shift + Fn + Left Arrow
Select the text from the text insertion cursor to the end of the documentShift + Ctrl + EndCmd + Shift + Down Arrow or Cmd + Shift + Fn + Right Arrow
Select the previous text box upShift + Page UpShift + Fn + Up Arrow
Select the next text box downShift + Page DownShift + Fn + Down Arrow
Select all textCtrl + ACmd + A
Find textCtrl + FCmd + F
   
Text Formatting

Set the selected text to boldCtrl + BCmd + B
Set the selected text to italicCtrl + ICmd + I
Underline the selected textCtrl + UCmd + U
Set the selected text to superscriptCtrl + Shift + =Cmd + Shift + =
Set the selected text to subscriptCtrl + =Cmd + =
   
Text Editing

Delete the character to the left of the text insertion cursorBackspaceBackspace
Delete the character to the right of the text insertion cursorDeleteFn + Backspace
Delete the character to the right of the text insertion cursorCtrl + DelCmd + Backspace
Delete the character to the left of the text insertion cursorCtrl + BackspaceCmd + Fn + Backspace
Increase indentationTabTab
Decrease indentationShift + TabShift + Tab
Copy textCtrl + CCmd + C
Find and replace textCtrl + HCmd + F
Paste textCtrl + VCmd + V
Cut textCtrl + XCmd + X
Redo textCtrl + YShift + Cmd + Z
Undo textCtrl + ZCmd + Z


Web Browser

DescriptionWindowsMac OS
Navigation

Scroll down the scroll boxSpace or Page DownSpace or Fn + Down Arrow
Scroll up the scroll boxShift + Space or Page UpShift + Space or Fn + Up Arrow
Locate to the bottom of the pageEndCmd + Down Arrow
Locate to the top of the pageHomeCmd + Up Arrow
BackAlt + Left Arrow or BackspaceCmd + Left Arrow
ForwardAlt + Right Arrow or Shift + BackspaceCmd + Right Arrow
Refresh the web pageF5Cmd + R
Refresh the web page (without cache)Ctrl + F5Cmd + Shift + R
StopEscEsc
Toggle Full ScreenF11Cmd + Shift + F
Zoom InCtrl + +Cmd + +
Zoom OutCtrl + -Cmd + -
Reset 100% (Default)Ctrl + 0Cmd + 0
Open the homepageAlt + HomeOption + Home or Option + Fn + Left Arrow
Find textCtrl + FCmd + F
   
Tab/Window Management

Open a new tabCtrl + TCmd + T
Close the current tabCtrl + WCmd + W
Close all tabsCtrl + Shift + WCmd + Q
Close all tabs except the current tabCtrl + Alt + F4Cmd + Opt + W
Locate to the next tabCtrl + TabControl + Tab or Cmd + Shift + Right Arrow
Locate to the previous tabCtrl + Shift + TabShift + Control + Tab or Cmd + Shift + Left Arrow
Locate to the tab with the specified numberCtrl + 1-8Cmd + 1-8
Locate to the last tabCtrl + 9Cmd + 9
Reopen the last closed tabCtrl + Shift + TCmd + Shift + T
Open a new windowCtrl + NCmd + N
Close the current windowAlt + F4Cmd + W
Locate to the next windowAlt + TabCmd + Tab
Locate to the previous windowAlt + Shift + TabCmd + Shift + Tab
Reopen the last closed windowCtrl + Shift + N 
Open the link in the background tabCtrl + ClickCmd + Click
Open the link in the foreground tabCtrl + Shift + ClickCmd + Shift + Click
Print the current web pageCtrl + PCmd + P
Save the current web pageCtrl + SCmd + S
   
Address bar

Cycle through positioning between the toolbar, search bar, and page elementsTabTab
Locate to the browser's address barCtrl + L or Alt + DCmd + L
Focus and select the browser's search barCtrl + ECmd + E / Cmd + K
Open the address bar location in a new tabAlt + EnterOpt + Enter
Display a series of previously visited addressesF4 
Add "www." at the beginning of the text in the address bar and "\.com" at the end. (For example, enter "baidu" in the address bar and then press Ctrl) + Enter key, which opens "www.baidu.com".)Ctrl + EnterCmd + Enter or Control + Enter
   
Bookmarks

Open the bookmark menuCtrl + BCmd + B
Add the current page as a bookmarkCtrl + DCmd + Opt + B or Cmd + Shift + B
Open browsing historyCtrl + HCmd + Shift + H or Cmd + Y
Open download historyCtrl + JCmd + J or Cmd + Shift + J


Screen Shot

DescriptionWindowsMac OS
Save the entire screen screenshot as a file Cmd + Shift + 3
Copy the entire screen screenshot to the clipboardPrtScr (Print Screen) or Ctrl + PrtScrCmd + Ctrl + Shift + 3
Save the window screenshot as a file Cmd + Shift + 4, then Space
Copy the window screenshot to the clipboardAlt + PrtScrCmd + Ctrl + Shift + 4, then Space
Copy the selected area screenshot to the clipboard
Cmd + Ctrl + Shift + 4
Save the selected area screenshot as a file Cmd + Shift + 4

Comments:Due to different keyboard settings, some shortcuts may not be applicable to all users.