Advertisement
Patrikrizek

lesson-1-index-in-class

Jun 15th, 2022 (edited)
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.  
  5.         <title>My first webpage</title>
  6.         <!-- CSS code below -->
  7.         <style>
  8.             /* This is affection all h1 */
  9.             h1 {
  10.                 color: blue;
  11.                 font-family:'Courier New', Courier, monospace;
  12.                 font-size: 40px;
  13.                 font-weight: bold;
  14.                 background-color: red;
  15.                 padding: 20px;
  16.                 border: 2px solid green;
  17.                 border-radius: 10px;
  18.             }
  19.  
  20.             p {
  21.                 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  22.                 font-size: 20px;
  23.                 font-weight: bold;
  24.                 padding-top: 20px;
  25.                 color: violet;
  26.                 background: linear-gradient(45deg, orange, red, yellow, orange);
  27.                 text-align: center;
  28.             }
  29.  
  30.             body {
  31.                 background-color: crimson;
  32.             }
  33.  
  34.             .changeText {
  35.                 color: green;
  36.                 font-weight: bold;
  37.             }
  38.         </style>
  39.     </head>
  40.  
  41.     <body>
  42.         <h1>Hello World!</h1>
  43.         <h1>This is a second h1 line</h1>
  44.         <p>This is my very first website</p>
  45.  
  46.         <a href="https://www.bbcgoodfood.com/recipes/collection/classic-cake-recipes" target="_blank">  Cake  </a>
  47.  
  48.         <img src="https://e3.365dm.com/22/06/2048x1152/skynews-elephant-new-york-happy_5805212.jpg" alt="elephant" height="150px">
  49.  
  50.         <!-- This is my comment -->
  51.         <ul>
  52.             <li>  Car  </li>
  53.             <li>  Bike  </li>
  54.             <li>  Plane  </li>
  55.         </ul>
  56.  
  57.         <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit.
  58.             <br>            
  59.             Velit, <b>minima nobis</b> similique <i>harum officia</i> excepturi sint dolorem? Exercitationem corrupti, soluta atque architecto tempora id. Magnam exercitationem facilis excepturi a velit!</p>
  60.             <br>
  61.             <br>
  62.             <p>Lorem <i><b>ipsum dolor</b></i> sit amet, consectetur adipisicing elit. Harum, omnis!</p>
  63.  
  64.     <span>This content is inline.</span>
  65.     <span class="changeText">This sentence will continue inline.</span>
  66.     </body>
  67. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement