Source Code

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Second News</title> CSS <style> body { background-color: #dbdbdb; margin: 0; font-family: Arial, sans-serif; color: #222; } h1, h2 { margin: 0; } nav { background-color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 40px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } nav h1 { color: rgb(74, 152, 255); font-size: 2.5em; } nav .nav-link { font-size: 1.2em; margin-left: 20px; cursor: pointer; transition: color 0.3s ease; } nav .nav-link:hover { color: rgb(74, 152, 255); } .card { background-color: #fff; padding: 15px 20px; margin: 20px 500px 20px 20px; border-radius: 14px; color: #000000; } .btn { display: block; text-align: center; color: #ffffff; font-size: 18px; background-color: red; border: 2px solid #fff; margin-top: 10px; padding: 10px 20px; border-radius: 8px; transition: transform 0.3s ease, background-color 0.3s ease; margin: auto; } .btn:hover { transform: scale(1.1); background-color: darkred; cursor: pointer; } a { text-decoration: none; } </style> </head> <body> HTML <nav> <h1>SecondNews</h1> <div> <a class="nav-link" href="https://benswebsite.click/ecclesbourne.html">Ecclesbourne Only</a> <a class="nav-link" href="https://benswebsite.click/secondnews.html">Home</a> </div> </nav> <div class="card"> <h2>Updates, Open Source Code, and Creation of SecondNews</h2> <p>The story, code, and updates for SecondNews (first news but slightly better...)</p> <button class="btn">View</button> </div> <div class="card"> <h2>Student Intakes Gas, Experts say "He may die"</h2> <p>Read about the story of a Ecclesbourne student who recently intook gas. Experts suggest he may die.</p> <a href="story1.html"><button class="btn">View</button></a> </div> </body> </html> </DOCTYPE>