HTML

page1.html

Mar 11th, 2017
177
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.97 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5. <title>Color Swap</title>
  6. <link rel="stylesheet" type="text/css" href="style.css">
  7. </head>
  8.  
  9. <body>
  10. <header>
  11. <h1>Color Swap Page</h1>
  12. <button class="on"><a href="page1.html">Page 1</a></button>
  13. <button><a href="page2.html">Page 2</a></button>
  14. <button><a href="page3.html">Page 3</a></button>
  15. </header>
  16. <article id="pg1">
  17. <ul><li>Each page has teh EXACT same HTML structure.</li>
  18. <li>Only two things are changed on each page.</li>
  19. <li>First, depending on which page you are on, certain buttons will have a <em>class</em> attribute called "on", which tells the button to have a specific style for that page.</li>
  20. <li>Second, depending on which page you are on, there is an id attribute in the article called "pg1" or "pg2" or "pg3".</li>
  21. <li>Notice that there is absolutely NO inline or internal style on any of the HTML pages. ALL of the style is contained in a seperate document called style.css.</li>
  22. </ul>
  23. </article>
  24. </body>
  25.  
  26. </html>
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment