Right-click and then select INSPECT from the dropdown menu. Open the page in a new browser window and then highlight a section of the page using the mouse. Instead of viewing the HTML code of a whole page, you can view the code of particular page elements using the INSPECT ELEMENT option available in all popular browsers like Google Chrome, Firefox, and Safari. The keyboard shortcut to view the source code of a page when using the Microsoft Edge browser on a PC is: F12 & CTRL+SHIFT+I How to view the HTML code of a particular page element? When using Opera on a PC, the keyboard shortcut to view the HTML source code of a page is: CTRL + U When using Firefox on a PC, the keyboard shortcut to view the source code is: CTRL + U When using Google Chrome on a PC, you can view the source code of a website by using the keyboard shortcut: CTRL + U. In this case, the keyboard shortcuts will help you view the source of a website without having to go through the menu options. A keyboard shortcut is a combination of keys you need to press at the same time to execute a specific command.