Code to make a website about renewable transport

 




<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Renewable Transport 🚆</title>

<style>

body{margin:0;font-family:Poppins,Arial,sans-serif;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#1b5e20;line-height:1.6;}

header{background:#2e7d32;color:white;text-align:center;padding:70px 20px;}

header h1{font-size:3rem;}

header p{font-size:1.2rem;color:#a5d6a7;}

nav{text-align:center;background:#1b5e20;padding:15px;}

nav a{color:#a5d6a7;margin:0 20px;text-decoration:none;font-weight:600;}

nav a:hover{color:white;}

section{padding:60px 20px;text-align:center;}

section h2{color:#2e7d32;font-size:2.3rem;margin-bottom:15px;}

section p{max-width:900px;margin:0 auto 25px;font-size:1.1rem;}

.cards{display:flex;flex-wrap:wrap;justify-content:center;gap:25px;margin-top:40px;}

.card{background:#e8f5e9;padding:25px;width:280px;border-radius:12px;box-shadow:0 5px 20px rgba(0,0,0,.2);transition:transform 0.3s;}

.card:hover{transform:translateY(-8px);background:#a5d6a7;}

.card h3{color:#1b5e20;}

footer{background:#1b5e20;color:white;text-align:center;padding:30px;font-size:22px;}

footer a{color:#a5d6a7;text-decoration:none;font-weight:bold;}

footer a:hover{text-decoration:underline;}

</style>

</head>

<body>


<header>

<h1>🚆 Renewable Transport</h1>

<p>Clean Energy Moving the World 🌍</p>

</header>


<nav>

<a href="#intro">⚡ Introduction</a>

<a href="#types">🚗 Types</a>

<a href="#benefits">🌱 Benefits</a>

<a href="#future">🔮 Future</a>

</nav>


<section id="intro">

<h2>⚡ What is Renewable Transport?</h2>

<p>Renewable transport uses sustainable energy sources such as electricity, solar power, and biofuels to move people and goods. It aims to reduce pollution, emissions, and reliance on fossil fuels. 🌿</p>

</section>


<section id="types">

<h2>🚗 Types of Renewable Transport</h2>

<div class="cards">

<div class="card"><h3>⚡ Electric Vehicles</h3><p>Cars, buses, and bikes powered by electricity instead of gasoline.</p></div>

<div class="card"><h3>🌞 Solar-powered Transport</h3><p>Vehicles equipped with solar panels to generate energy from sunlight.</p></div>

<div class="card"><h3>🛶 Biofuel Vehicles</h3><p>Use fuels derived from plants and organic materials to reduce emissions.</p></div>

<div class="card"><h3>🚆 High-speed Electric Trains</h3><p>Modern trains powered by electricity, efficient and environmentally friendly.</p></div>

</div>

</section>


<section id="benefits">

<h2>🌱 Benefits</h2>

<ul style="text-align:left;display:inline-block;font-size:1.1rem;">

<li>🌍 Reduces greenhouse gas emissions.</li>

<li>💨 Decreases air pollution in cities.</li>

<li>⚡ Saves energy and reduces reliance on fossil fuels.</li>

<li>💰 Can lower long-term transport costs.</li>

</ul>

</section>


<section id="future">

<h2>🔮 Future of Transport</h2>

<p>The future includes hydrogen-powered vehicles, fully autonomous electric fleets, and sustainable public transport networks that make travel cleaner and more efficient for everyone. 🚀</p>

</section>


<footer>

© 2025 <a href="https://freecodesforwebsites.blogspot.com/" target="_blank">Free Codes for Websites</a> | All rights reserved.

</footer>


</body>

</html>


Comments