Advertisement
Garey

Basic Layout HTML5

Apr 17th, 2017
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!------- Head ------->
  5. <!-------------------->
  6. <!---- Meta Tags ----->
  7.     <meta charset="utf-8" />
  8.     <meta name="keywords" content="asd,asd,asd" />
  9.     <meta name="description" content="asd asd asd" />
  10.     <meta name="author" content="asdfgh" />
  11.     <title>Basic title</title>
  12. <!---- Meta Tags ----->
  13. <!-------------------->
  14. <!------ Style ------->
  15.     <style>
  16.     html, body{margin: 0; padding: 0; background: #ccc;}
  17.     .left
  18.     {
  19.         width: 70%;
  20.         background: blue;
  21.         float: left;
  22.     }
  23.  
  24.     .right
  25.     {
  26.         width: 30%;
  27.         background: red;
  28.         float: right;
  29.     }
  30.  
  31.     nav > a{padding-left: 10px; text-decoration: none; text-align: center; background: #}
  32.  
  33.     section, article { background: yellow; width: 70%; float: left;}
  34.     aside {background: green; width: 30%; float: right;}
  35.     footer {text-align: center; background: #000; color: #fff;}
  36.     </style>
  37. <!----- Style ---->
  38. <!---------------->
  39. <!----- Head ----->
  40. </head>
  41. <!----- Head ----->
  42. <!---------------->
  43. <!----- Body ----->
  44. <body>
  45. <!----- Body ----->
  46. <!---------------->
  47. <!---- Header ---->
  48.     <header>
  49.         <div class="left">asd</div>
  50.         <div class="right">asd</div>
  51.     </header>
  52. <!---- Header ---->
  53. <!---------------->
  54. <!-- Navigation -->
  55.     <nav>
  56.         <a href="#">asd</a>
  57.         <a href="#">asd</a>
  58.         <a href="#">asd</a>
  59.         <a href="#">asd</a>
  60.         <a href="#">asd</a>
  61.     </nav>
  62. <!-- Navigation -->
  63. <!---------------->
  64. <!---- Article --->
  65.     <article>
  66.         <section>
  67.             asdf
  68.         </section>
  69.     </article>
  70. <!-- Article -->
  71. <!------------->
  72. <!--- Aside --->
  73.     <aside>
  74.         aside element  
  75.     </aside>
  76. <!-- Aside --->
  77. <!------------>
  78. <!-- Footer -->
  79.     <footer>
  80.     &copy; All Rights Reserved
  81.     </footer>
  82. <!-- Footer -->
  83. <!------------>
  84. <!--- Body --->
  85. </body>
  86. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement