teslariu

css

Jul 23rd, 2022
1,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.02 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>Mi primera webpage</title>
  8.     <!-- CSS INTERNO
  9.    <style>
  10.        selector {
  11.            propiedad:valor;
  12.        }
  13.    </style>
  14.  
  15.    CC inline
  16.    <elemento style="propiedad:valor;"
  17.    -->
  18.    
  19.     <style>
  20.         body {
  21.             background-color: darkkhaki;
  22.         }
  23.  
  24.         h1 {
  25.             background-color: rgb(55, 53, 54);
  26.             color: aliceblue;
  27.         }
  28.  
  29.         p {
  30.             color: rgb(109, 12, 88);
  31.         }
  32.  
  33.     </style>
  34. </head>
  35. <body>
  36.     <!--comentario de una línea-->
  37.     <!--              
  38.        esto es
  39.        un comentario
  40.        de varias
  41.        líneas
  42.    -->
  43.     <header>
  44.         <p>Bienvenidos</p>
  45.         <h1>Mi sitio web personal</h1>
  46.     </header>
  47.     <nav>
  48.         <ul>
  49.             <li>Quienes somos</li>
  50.             <li>Shop</li>
  51.             <li>Contacto</li>
  52.         </ul>
  53.     </nav>
  54.     <section>
  55.         <h1 style="color:white;background-color: rgb(88, 23, 23);">Soy un encabezado h1</h1>
  56.         <h2>Soy un encabezado h2</h2>
  57.         <h3>Soy un encabezado h3</h3>
  58.         <h4>Soy un encabezado h4</h4>
  59.         <h5>Soy un encabezado h5</h5>
  60.         <h6>Soy un encabezado h6</h6>
  61.     </section>
  62.     <main role="main">
  63.         <p><strong>Soy </strong><em>simplemente</em> un parrafo</p>
  64.         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. <br>Aut debitis similique, consequuntur labore nihil laborum rem provident laboriosam dolorem sequi. Consectetur placeat odit culpa accusamus doloremque suscipit quos aut laboriosam?</p>
  65.         <h2>Lista desordenada</h2>
  66.    
  67.         <h2>Lista ordenada</h2>
  68.         <ol type="a">
  69.             <li>Manzanas</li>
  70.             <li>Peras</li>
  71.             <li>Bananas</li>
  72.         </ol>
  73.     </main>
  74.     <footer>Publicado bajo una licencia libre GPLv3</footer>
  75. </body>
  76. </html>
Advertisement
Add Comment
Please, Sign In to add comment