elchanange Posted July 25, 2016 Share Posted July 25, 2016 (edited) Edited July 25, 2016 by elchanange Link to comment Share on other sites More sharing options...
dsonesuk Posted July 25, 2016 Share Posted July 25, 2016 http://www.w3schools.com/js/tryit.asp?filename=tryjs_doc_cookie <!DOCTYPE html> <html> <body> <p id="demo">Click the button to display the cookies associated with this document.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("demo").innerHTML = "Cookies associated with this document: " + document.cookie; } </script> </body> </html> http://www.w3schools.com/js/tryit.asp?filename=tryjs_doc_cookie <!DOCTYPE html> <html> <body> <p>Click the button to display the domain name of the server that loaded this document.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("demo").innerHTML = document.domain; } </script> </body> </html> http://www.w3schools.com/html/tryit.asp?filename=tryhtml_paragraphs1 <!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p>This is a paragraph.</p> <p>This is a paragraph.</p> </body> </html> http://www.w3schools.com/html/tryit.asp?filename=tryhtml_poem <!DOCTYPE html> <html> <body> <p>In HTML, spaces and new lines are ignored:</p> <p> My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me. </p> </body> </html> http://www.w3schools.com/css/tryit.asp?filename=trycss_default body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 20px; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now