HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Click the button to display the doctype name of this document.</p> <button onclick="myFunction()">Click Me</button> <p id="point"></p> <script> var x = document.getElementById("point"); function myFunction(){ x.innerHTML = document.doctype.name; } </script> </body> </html>
OUTPUT
×

Save as Private