+ 2

Display HTML code on Web Page?

How do I Display my HTML codes or tags on Web Page or browser?

7th Jan 2017, 5:44 PM
Mohammad Abu Sayed
Mohammad Abu Sayed - avatar
5 Respuestas
7th Jan 2017, 5:54 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 5
document.outerHTML
7th Jan 2017, 6:08 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Usefull solutions, in desktop web browsers, are available to display source code: - with context menu, you can generaly show the source code of the open page in another tab; - for more helpfull exploring the dom, you have tools for developers available. Unfortunally, when you browse web with mobile devices, these facilities are no long possible :( But there is a solution working in all browsers: prefix the url of the page you want view the source code by: view-source: For example: view-source:http://google.com You can omit the "http://", as the modern browsers auto-completes urls...
7th Jan 2017, 6:32 PM
visph
visph - avatar
+ 1
thanks @valentinhacker
7th Jan 2017, 6:07 PM
Mohammad Abu Sayed
Mohammad Abu Sayed - avatar
0
yes got one, (please mention if you find easier one)>>> Example : <!DOCTYPE html> <html> <body> <xmp> <h1> Hi this Test h1 code</h1> <b> Hi this Rajaram </b> </xmp> </body> </html> O/P : <h1> Hi this Test h1 code</h1> <b> Hi this Rajaram </b>
7th Jan 2017, 5:46 PM
Mohammad Abu Sayed
Mohammad Abu Sayed - avatar