logancberrypie

CNN

Apr 17th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.12 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4.  
  5. <head>
  6. <link rel="stylesheet" type="text/css" href="style.css">
  7.  
  8. <title> THis is the title of the page </title>
  9. </head>
  10.  
  11. <body>
  12. <div id="page-wrap">
  13.  
  14. <h1> this is a heading </h1>
  15. <h2> this is another heading </h2>
  16. <h1 style="color:blue;">this is a header with blue</h1>
  17.  
  18. <p> this is a prarrrragraph <br><br>
  19.     and this <strong> is a BOLD TEXT!!!
  20.    
  21.     </strong>
  22.    
  23.     using the "br" tag it is possible to create a new line
  24.    
  25.     </p>
  26.    
  27. <img src="https://i.ytimg.com/vi/2DyPUPSqnMU/maxresdefault.jpg">
  28.  
  29. <a href="https://en.wikipedia.org/wiki/CNN_controversies">CLick for CNN</a>
  30.  
  31. <script>
  32.  
  33. var rigged = 0;
  34.  
  35. // 1. Create the button
  36. var button = document.createElement("button");
  37. button.innerHTML = "Click to rig the election!!";
  38.  
  39. // 2. Append somewhere
  40. var body = document.getElementsByTagName("body")[0];
  41. body.appendChild(button);
  42.  
  43. button.addEventListener ("click", function() {
  44. rigged += 1;
  45.   alert("You have rigged the election "+rigged+" times");
  46.  
  47.  
  48.  
  49. });
  50.  
  51. </script>
  52.  
  53. <o1>
  54.     <li> this is bullet point <li>
  55.     <li> this is anothert </li>
  56. </ol>
  57. </div>
  58.  
  59. </body>
  60.  
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment