Is there a way to view the source HTML in an Android web browser?
Look for an app called View Web Source in the market and install it.
Then when browsing, open your menu and tap "share", in the list that pops up choose View Web Source.
Another tool that is useful for viewing source AND modifying them live, in Firebug/Web Inspector-like manner, is the weinre remote debugger.
If this is for debugging (from your comment it looks like it is) something even better is installing a user agent switcher extension for Firefox or Chrome on your desktop. Change the user agent to Android and you get the mobile version of the site, but with all the source and debugging tools you're used to.
you can capture the source to your shell or to a text file if you're using an emulator, which is very handy for development. To do this you'll need to install Android Developer Tools, which comes with adb. Fire up your emulator then from your OS's shell run the command:
adb logcat browser:V *:S
This will output everything within your html tag on the page to the log.
You can capture the output of your log (using BASH, at least, I can't speak to other shells) with:
adb logcat browser:V *:S > log.txt
now, any output from the log gets dumped into your log.txt file. This is really handy for a whole page's worth of HTML, as you can then search through it as you would any other text doc.
If you want to grab a specific bit of the page rather than the whole thing, you can specify that part of the page rather than the html tag in your JQuery, so if you need to look at a single div that has a class/id associated with it (for this example, it has a class named 'inspect-me'), you can change your JQuery to:
That feature seems to be unavailable for all major android browsers. You could try Opera Mini instead.
Reset the console output by opening a new tab with the address
Open a tab on the page on which you want to do the inspection:
Retrieve the output by opening a new tab with the address
Kiwi Browser as of January 2022 offers "Developer tools" feature through which one can access rendered HTML among other things. See screenshot to know where to find it. The developer tools for a given webpage are loaded in a new tab.
Since Kiwi Browser also allows installing Chrome for PC extensions you can find an extension that allows viewing HTML of a webpage and can install it in Kiwi Browser. It should also work.
In firefox, if it is a real link to the final page (not the link we click on google), you can press and hold over the link and click on "download link", then open it in a text viewer (i suggest xplore app).
Bonus answer: to download a .mp3, from that downloaded page's text, select the .mp3 url, share it with "open with" or "better open with" app, and open it in the "NoBrowser" app that can handle .mp3 download, and is fast and tiny!
If you want to view source of Android browser page, or inspect page you can use this https://developer.chrome.com/devtools/docs/remote-debugging Its very good inspector