Advertisement
Patrikrizek

lesson-2-about-in-class

Jun 17th, 2022
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.08 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>About</title>
  8.    
  9.     <!-- CSS Internal -->
  10.     <style>
  11.         /* Globals */
  12.         h1, h2, p, a {
  13.             font-family: Arial, Helvetica, sans-serif;
  14.         }
  15.        
  16.         /* Classes */
  17.         .pageName {
  18.             text-transform: uppercase;
  19.             color: red;
  20.             font-weight: bold;
  21.         }
  22.  
  23.         /* IDs */
  24.         #topNavigation {
  25.             background-color: coral;
  26.             text-align: center;
  27.            
  28.  
  29.         }
  30.  
  31.         #topNavigation li, a {
  32.             display: inline;
  33.             text-transform: uppercase;
  34.             font-weight: bold;
  35.             text-decoration: none;
  36.             color: black;
  37.         }
  38.  
  39.         img {
  40.            
  41.         }
  42.  
  43.         #main {
  44.             background-color: darkgray;
  45.         }
  46.        
  47.         body {
  48.             background: linear-gradient(to right, blue, red, orange);
  49.             background-size: 400%;
  50.             animation: animate-background 10s ease-in-out infinite;
  51.         }
  52.  
  53.         @keyframes animate-background {
  54.             0% {
  55.                 background-position: 0 50%;
  56.             }
  57.             50% {
  58.                 background-position: 100% 50%;
  59.             }
  60.             100% {
  61.                 background-position: 0 50% ;
  62.             }
  63.         }
  64.  
  65.     </style>
  66. </head>
  67. <body>
  68.  
  69.     <!-- Header -->
  70.     <div id="header">
  71.         <h1>This is a <span class="pageName">about</span> page</h1>
  72.         <h2 class="pageName">This is my second webpage.</h2>
  73.     </div>
  74.  
  75.     <!-- Navigation -->
  76.     <div id="topNavigation">
  77.         <ul>
  78.             <li>  <a href="index.html">home</a>  </li>
  79.             <li>  <a href="about.html">about</a> </li>
  80.         </ul>
  81.     </div>
  82.  
  83.     <!-- Main content -->
  84.  
  85.     <div id="main">
  86.         <p>This is a <i>content of the second page</i> named <b>"About"</b>.</p>
  87.     </div>
  88.  
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement