To view the source code of a webpage, you can use the following keyboard shortcuts depending on your operating system:
For Windows:
Google Chrome, Firefox, Edge: Press Ctrl + U
Internet Explorer: Press Ctrl + U
For macOS:
Google Chrome, Firefox, Safari: Press Command (⌘) + U
Google Chrome, Firefox, Edge: Press Ctrl + U