Inspecting a website is legal. But if you intend to use any assets or code from a website, ensure you check with the owner and include a copyright note.