HTMLify
index.html
Views: 616 | Author: demo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Demo Site</title> </head> <body> <header> <h1>This is a Demo Site</h1> </header> <nav> <ul> <li><a href="/">HTMLify home</a></li> <li><a href="#section1">Section 1</a></li> <li><a href="#section2">Section 2</a></li> <li><a href="#section3">Section 3</a></li> <li><a href="/demo/index.html">Index</a></li> </ul> </nav> <main> <section id="section1" class="card"> <h2>Card 1</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </section> <section id="section2" class="card"> <h2>Card 2</h2> <p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </section> <section id="section3" class="card"> <h2>Card 3</h2> <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </section> </main> <footer> <p>Thank you for visiting our Demo Site!</p> </footer> </body> </html> <style> /* Reset some default styles */ body, h1, h2, p, ul, li { margin: 0; padding: 0; } /* Style the header */ header { background-color: #3498db; color: white; text-align: center; padding: 20px; } /* Style the navigation bar */ nav ul { list-style: none; background-color: #333; overflow: hidden; } nav li { float: left; } nav a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } /* Style the cards in the main content */ .card { width: 300px; margin: 20px; padding: 20px; background-color: #f0f0f0; border-radius: 8px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); float: left; } /* Style the footer */ footer { text-align: center; background-color: #333; color: white; padding: 10px; clear: both; } </style> |