Advertisement
Guest User

stuff2

a guest
Dec 5th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <//Scott Lahmann>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <link rel="stylesheet" type="text/css" href="style1.css">
  6. </head>
  7. <title>Scott Lahmann Travel Page</title>
  8. <body>
  9. <h1 id="myH1">My Travels</h1>
  10. <h2>Where I've Been</h2>
  11. <ol style="list-style-type:none";
  12. "list-style-position:inside">
  13. <li>New York City</li>
  14. <li>All over California</li>
  15. <li>Canada</li>
  16. <li>Alaska</li>
  17. </ol>
  18. <h2>Where I Want To Go</h2>
  19. <ul style="list-style-type:circle" style="list-style-position:inside">
  20. <li>Italy</li>
  21. <li>Ireland</li>
  22. <li>Japan</li>
  23. <li>Everywhere</li>
  24. </ul>
  25. <h3>The World:</h3>
  26. <p><a href="http://www.worldatlas.com/worldmap.htm">World Map</a></p>
  27. <img src="Worldmap.jpg" alt="The World" style="width:350px;height:350px">
  28. <br>
  29. <br>
  30. <button type="button" onclick="myFunction1()">Set h1 to Blue</button>
  31. <br>
  32. <br>
  33. <button type="button" onclick="myFunction2()">Set h1 to Black</button>
  34. <script>
  35. function myFunction1() {
  36.     document.getElementById("myH1").style.color = "#0000FF";
  37. }
  38. function myFunction2() {
  39.     document.getElementById("myH1").style.color = "#000000";
  40. }
  41. </script>
  42. </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement