Thursday, March 17, 2016

How to view the HTML source in android browser

Viewing the source code of a web page while on a desktop pc is just a matter of pressing Ctrl+u.

Unfortunately this can't be used on an android device but there is an alternative :

1. Open the web page you want to examine in your browser for example : https://www.wikipedia.org/

2. Tap inside the address bar.

3.1. When using Opera browser type server:source in the address bar after the web page has loaded.

3.2. For all other Android Web browsers type view-source:   in front of the url in the address bar as is shown in the following example :
view-source:https://www.wikipedia.org/
4. The HTML source code of the web page will appear.A pleasant surprise is that the source code viewer provides syntax highlighting.

No comments:

Post a Comment