SHARE
TWEET

Untitled

a guest Oct 19th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>
  5.             Class 1 Lab
  6.         </title>
  7.     </head>
  8.     <body>
  9.         <h1> Class 1 Lab </h1>
  10.             <style>
  11.                 li{
  12.                     color: green;
  13.                     background-color: aquamarine;
  14.                 }
  15.             </style>
  16.         <p> My, what a pretty paragraph you are! </p>
  17.  
  18.         <script>
  19.             var userName = prompt('What\'s your name?');
  20.                 console.log('User Name: ' + userName);
  21.        
  22.             var favColor = prompt(userName + 'What is your favorite color?');
  23.                 console.log(userName + 'favorite color: ' + favColor)
  24.             var favCity = prompt(userName + 'What is your favorite city?')
  25.                 console.log(UserName + 'favorite city: ' + favCity)
  26.            
  27.             var favFood = prompt(userName + 'What is your favorite food?')
  28.                 console.log(UserName + 'favorite food: ' + favFood)
  29.             alert('Welcome, ' + userName +
  30.                 '. It is so nice to hear that you like the color ' + favColor +
  31.                 '. I wish I could visit ' + favCity +'and eat' + favFood '!');
  32.         </script>
  33.  
  34.         <p style="background-color: aquamarine";
  35.             style="color: burlywood">
  36.             What's your name?
  37.         </p>
  38.         <p style="background-color: chartreuse";
  39.             style="color: crimson">
  40.             What is your favorite color?
  41.         </p>
  42.         <p style="background-color: darkolivegreen";
  43.             style="color: deeppink">
  44.             What is your favorite city?
  45.         </p>
  46.         <p style="background-color: gold";
  47.             style="color: indianred">
  48.             What is your favorite food?
  49.         </p>
  50.  
  51.         <footer>
  52.             I'm the Footer!
  53.         </footer>
  54.  
  55.     </body>
  56. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top