Sample code by Ankit SinghSample code by Ankit Singh

Sample code

Ankit Singh

Ankit Singh

Here is sample code of html and css to make an advertising web site of music.
Html code:
<!DOCTYPE html>
<html>
<head>
<title>Music Site Startup</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<!-- Navigation -->
<nav>
<h1>Music Site Startup</h1>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<!-- Hero section -->
<section class="hero">
<h1>The Ultimate Music Site</h1>
<p>Stream, download, and discover new music like never before.</p>
<a href="#" class="btn">Get Started</a>
</section>
<!-- Features section -->
<section class="features">
<h2>Features</h2>
<div class="feature-item">
<img src="img/feature-1.jpg">
<h3>Unlimited Streaming</h3>
<p>Stream as much music as you want, with no restrictions.</p>
</div>
<div class="feature-item">
<img src="img/feature-2.jpg">
<h3>High Quality Downloads</h3>
<p>Download your favorite songs in the highest quality available.</p>
</div>
<div class="feature-item">
<img src="img/feature-3.jpg">
<h3>Discover New Music</h3>
<p>Find new artists and songs based on your listening history.</p>
</div>
</section>
<!-- Pricing section -->
<section class="pricing">
<h2>Pricing</h2>
<div class="pricing-item">
<h3>Basic</h3>
<p>$9.99/month</p>
<ul>
<li>Unlimited streaming</li>
<li>Standard quality downloads</li>
<li>Ads included</li>
</ul>
<a href="#" class="btn">Get Started</a>
</div>
<div class="pricing-item">
<h3>Premium</h3>
<p>$14.99/month</p>
<ul>
<li>Unlimited streaming</li>
<li>High quality downloads</li>
<li>No ads</li>
</ul>
<a href="#" class="btn">Get Started</a>
</div>
<div class="pricing-item">
<h3>Platinum</h3>
<p>$19.99/month</p>
<ul>
<li>Unlimited streaming</li>
<li>Highest quality downloads</li>
<li>No ads</li>
<li>Concert tickets included</li>
</ul>
<a href="#" class="btn">Get Started</a>
</div>
</section>
<!-- Footer section -->
<footer>
<p>&copy; 2023 Music Site Startup</p>
</footer>
<!-- JS -->
<script src="script.js"></script>
</body>
</html>
Css code:
/* Reset default browser styles */* { margin: 0; padding: 0; box-sizing: border-box;}body { font-family: Arial, sans-serif;}/* Navigation styles */nav { display: flex; justify-content: space-between; align-items: center; padding: 10px; background-color: #333; color: #fff;}nav ul { display: flex; list-style: none;}nav ul li a { display: block; padding: 10px; color: #fff; text-decoration: none;}/* Hero section styles */.hero { background-image: url("img/hero-bg.jpg"); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 100px 0;}.hero h1 { font-size: 4rem; margin-bottom: 30px;}.hero p { font-size: 1.5rem; margin-bottom: 30px;}.btn { display: inline-block; background-color: #fff; color: #333; padding: 10px 20px; border-radius: 5px; text-decoration: none;}.btn:hover { background-color: #333; color: #fff;}/* Features section styles */.features { background-color: #f4f4f4; padding: 50px 0; text-align: center;}.features h2 { font-size: 2.5rem; margin-bottom: 30px;}.feature-item { display: flex; flex-direction: column; align-items: center; margin-top: 30px;}.feature-item img { width: 100%; max-width: 300px; margin-bottom: 20px;}.feature-item h3 { font-size: 1.8rem; margin-bottom: 10px;}.feature-item p { font-size: 1.2rem;}/* Pricing section styles */.pricing { background-color: #fff; padding: 50px 0; text-align: center;}.pricing h2 { font-size: 2.5rem; margin-bottom: 30px;}.pricing-item { display: inline-block; background-color: #f4f4f4; padding: 40px; margin: 20px; border-radius: 5px; width: 300px;}.pricing-item h3 { font-size: 1.8rem; margin-bottom: 10px;}.pricing-item p { font-size: 1.5rem; margin-bottom: 20px;}.pricing-item ul { margin-bottom: 20px;}.pricing-item ul li { font-size: 1.2rem; margin-bottom: 10px;}/* Footer section styles */footer { background-color: #333; color: #fff; text-align: center; padding: 20px; margin-top: 50px;}footer p { font-size: 1.2rem;}
Like this project

Posted Feb 15, 2023

Here I create a sample of website where there is Information about music and user can buy subscription. This is just a sample.

Likes

0

Views

7