Advertisement
TermSpar

HTML, CSS, JavaScript Basics

Jun 9th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4.     <title>Tutorial</title>
  5.    
  6.     <style>
  7.         #header1{
  8.             color: blue;
  9.         }
  10.        
  11.         #header2{
  12.             color: purple;
  13.         }
  14.     </style>
  15.    
  16.     <script>
  17.        
  18.         var sayHello = function(){
  19.             document.write("Hello")
  20.         }
  21.    
  22.     </script>
  23.  
  24.     <body>
  25.    
  26.         <h1 id="header1">My Website</h1>
  27.         <p onclick="sayHello()">This is a sentence</p>
  28.        
  29.         <h1 id="header2">My site2</h1>
  30.    
  31.     </body>
  32.  
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement