Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>
  5. Class one demo
  6. </title>
  7. <style>
  8. p {
  9. color: blue;
  10. background-color: aqua;
  11. }
  12. </style>
  13. </head>
  14. <body>
  15. <header>
  16. <h1>
  17. Hello from index htmt
  18. </h1>
  19. </header>
  20. <main>
  21. <p> It's almost lunchtime !!</p>
  22. </main>
  23. <footer>
  24.  
  25. </footer>
  26. <script>
  27. var username = prompt ('what\'s your name');
  28. console.log ('username', username);
  29. var music = prompt ('what\'s your favorite music');
  30. console.log ('music', music);
  31. var artist = prompt ('who is your favorite artist');
  32. console.log ('artist' , artist);
  33. var music2 = prompt ('what kind of music do you hate to listen to');
  34. console.log ('music2', music2);
  35. alert ( 'welcome' + ' ' + username + ' '+ 'you should know' + ' ' + music2 + ' ' + 'is better than' + ' ' + music + ' ' + 'But' + ' ' + artist + ' ' + 'is not bad' );
  36.  
  37.  
  38. </script>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement