+ 2
Display HTML code on Web Page?
How do I Display my HTML codes or tags on Web Page or browser?
5 Respuestas
+ 5
You mean like this? :
https://code.sololearn.com/WvmO3Yp9zevJ/?ref=app
+ 5
document.outerHTML
+ 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...
+ 1
thanks @valentinhacker
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>