ShowSource is an app and iOS 8 Safari extension that gives you the ability to view the HTML, Javascript and CSS source of any web page, with options for colorful backgrounds.
You can also edit your local copy of the source, and see a preview of the rendered HTML.
As an app, you can also edit the URL, and retrieve the source of any web URL.
To enable the Safari extension on iOS 8, launch Safari, tap the action button on the toolbar, scroll right to the end, then tap More. Make sure ShowSource is enabled, then position it wherever you want in the Safari actions list, and tap Done.
Icons were provided by icon8.com.