To inspect HTML in Safari, you need to enable the 'Show Develop menu in menu bar' option in Safari's 'Preferences' > 'Advanced'. Then, right-click on the webpage and select 'Inspect Element'. The Web Inspector will open, and you can inspect the HTML of the webpage.