Advertisement
Patrikrizek

lesson-2-index-in-class

Jun 17th, 2022
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.70 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>Document</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.         #main {
  40.             background-color: darkgray;
  41.         }
  42.        
  43.  
  44.     </style>
  45. </head>
  46. <body>
  47.  
  48.     <!-- Header -->
  49.     <div id="header">
  50.         <h1>This is a <span class="pageName">main</span> page</h1>
  51.         <h2 class="pageName">This is my second webpage.</h2>
  52.     </div>
  53.  
  54.     <!-- Navigation -->
  55.     <div id="topNavigation">
  56.         <ul>
  57.             <li>  <a href="index.html">home</a>  </li>
  58.             <li>  <a href="about.html"> about </a></li>
  59.         </ul>
  60.     </div>
  61.  
  62.     <!-- Main content -->
  63.  
  64.     <div id="main">
  65.         <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sed nihil quisquam mollitia cumque natus, cupiditate suscipit ratione non quas harum libero optio, a voluptatibus inventore accusamus sequi impedit sit incidunt.</p>
  66.     </div>
  67.  
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement