Facebook
From as, 9 Months ago, written in HTML5.
This paste is a reply to as from as - view diff
Embed
Download Paste or View Raw
Hits: 339
  1. <!DOCTYPE html>
  2. &lt;html&gt;
  3.  
  4.  
  5.  
  6.  
  7.     &lt;style&gt;
  8.     h1:hover {
  9.   background-color: rgb(238, 7, 7);
  10.   width: fit-content;
  11.    margin-left: 20%;
  12.  
  13. }
  14.    
  15.     &lt;/style&gt;
  16. &lt;body&gt;
  17.  
  18.     <h1>md asif mahmud </h1>
  19.     <button >Click here </button>
  20.     <p id="demo"></p>
  21.     <p id="demoo">Click "Remove", and this paragraph will be removed from the DOM.</p>
  22. <button >Remove</button>
  23.  
  24. <p id="demo">JavaScript can change HTML content.</p>
  25. <button type="button"  = "Hello JavaScript!"'>Click Me!</button>
  26.  
  27. [removed]
  28. function myFunction() {
  29.   document.getElementById("demo")[removed] = "good morning ";
  30. }
  31. function myFunctionn() {
  32.    document.getElementById("demoo")[removed] = "";
  33.  
  34.  }
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. [removed]
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. &lt;/body&gt;
  50. &lt;/html&gt;
  51.