Create a simple HTML document that includes a title, a heading, and a
paragraph about your favorite hobby. Ensure you follow the correct HTML
document structure.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Favorite Hobby</title>
</head>
<body>
<h1>Photography</h1>
<p>Photography allows me to capture moments and see the world from different perspectives. I love experimenting with different angles, lighting, and techniques to bring out the beauty in everyday scenes. It’s a creative outlet that brings me joy and helps me appreciate the little details around me.</p>
</bod
y>
</html>
Create a webpage that includes at least five paragraphs. Each paragraph
should discuss a different aspect of a single topic (e.g., your favorite season).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Favorite Season: Autumn</title>
</head>
<body>
<h1>Why I Love Autumn</h1>
<p><strong>The Colors of Fall:</strong> One of the most breathtaking aspects of autumn is the transformation of leaves. The vibrant reds, oranges, and yellows bring the landscape to life, creating a warm and inviting atmosphere.</p>
<p><strong>Cooler Weather:</strong> After the hot summer days, autumn brings a refreshing change with cooler temperatures. It’s the perfect weather for cozy sweaters, warm drinks, and outdoor walks without the intense heat.</p>
<p><strong>Seasonal Foods:</strong> Autumn is synonymous with harvest season. I love enjoying fresh apples, pumpkins, and other seasonal produce. Plus, who can resist a slice of pumpkin pie or a cup of hot apple cider?</p>
<p><strong>Festivals and Holidays:</strong> Autumn is filled with festive activities. From Halloween to Thanksgiving, there’s always something to look forward to. I enjoy decorating, spending time with family, and celebrating the traditions that make these holidays special.</p>
<p><strong>The Cozy Atmosphere:</strong> Autumn brings a sense of comfort and coziness. Whether it's curling up with a good book, lighting a scented candle, or enjoying the warmth of a fire, this season creates the perfect setting for relaxation.</p>
</body>
</html>
Construct a webpage that uses nested headings to outline a topic (e.g.,
"Healthy Eating"). Use <h2> for main sections and <h3> for subsections.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Healthy Eating Guide</title>
</head>
<body>
<h1>Healthy Eating Guide</h1>
<h2>Importance of a Balanced Diet</h2>
<p>A balanced diet provides the nutrients your body needs to function correctly. It can help you maintain a healthy weight, reduce the risk of chronic diseases, and promote overall well-being.</p>
<h2>Essential Nutrients</h2>
<h3>Carbohydrates</h3>
<p>Carbohydrates are the body’s main source of energy. They should come primarily from whole grains, fruits, and vegetables rather than refined sugars and processed foods.</p>
<h3>Proteins</h3>
<p>Proteins are essential for building and repairing tissues. Good sources include lean meats, dairy products, legumes, and nuts.</p>
<h3>Fats</h3>
<p>Fats are a necessary part of a healthy diet, especially unsaturated fats from sources like olive oil, avocados, and fish. However, it's important to limit saturated and trans fats.</p>
<h2>Healthy Eating Tips</h2>
<h3>Portion Control</h3>
<p>Eating appropriate portion sizes can help you avoid overeating and manage your weight. Try to use smaller plates, and be mindful of your hunger and fullness cues.</p>
<h3>Stay Hydrated</h3>
<p>Drinking enough water is vital for overall health. It aids in digestion, keeps your skin healthy, and helps regulate body temperature.</p>
<h2>Meal Planning and Preparation</h2>
<h3>Planning Balanced Meals</h3>
<p>Planning your meals ahead of time can help you make healthier choices and avoid last-minute fast food. Aim to include a variety of food groups in each meal.</p>
<h3>Healthy Snacks</h3>
<p>Opt for nutritious snacks such as fruits, nuts, or yogurt. These can help keep your energy levels steady throughout the day.</p>
</body>
</html>
Write an HTML page that includes an unordered list of five of your favorite
movies and an ordered list of three reasons why you like each movie.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Favorite Movies</title>
</head>
<body>
<h1>My Favorite Movies</h1>
<ul>
<li>
<strong>Inception</strong>
<ol>
<li>Intriguing plot with complex layers of dreams.</li>
<li>Excellent cast led by Leonardo DiCaprio.</li>
<li>Stunning visuals and impressive special effects.</li>
</ol>
</li>
<li>
<strong>The Shawshank Redemption</strong>
<ol>
<li>Inspiring story about hope and friendship.</li>
<li>Brilliant performances by Morgan Freeman and Tim Robbins.</li>
<li>Thought-provoking themes and memorable quotes.</li>
</ol>
</li>
<li>
<strong>The Dark Knight</strong>
<ol>
<li>Heath Ledger’s iconic performance as the Joker.</li>
<li>Gripping storyline with deep moral dilemmas.</li>
<li>Outstanding action sequences and cinematography.</li>
</ol>
</li>
<li>
<strong>Interstellar</strong>
<ol>
<li>Fascinating exploration of space and time.</li>
<li>Emotional story about love and sacrifice.</li>
<li>Impressive visual effects and Hans Zimmer’s powerful soundtrack.</li>
</ol>
</li>
<li>
<strong>Forrest Gump</strong>
<ol>
<li>Heartwarming story with a unique perspective on life.</li>
<li>Tom Hanks’ unforgettable portrayal of Forrest.</li>
<li>Captures major historical events in a touching way.</li>
</ol>
</li>
</ul>
</body>
</html>
Write an HTML document that features an ordered list of your top five favorite
books. For each book, provide a brief summary in a nested paragraph below
the list item.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Favorite Books</title>
</head>
<body>
<h1>My Top 5 Favorite Books</h1>
<ol>
<li>
<strong>To Kill a Mockingbird</strong>
<p>This classic novel by Harper Lee explores themes of racial injustice and moral growth in the American South. It follows young Scout Finch as she learns about empathy, courage, and human decency through her father, Atticus Finch, who defends a Black man unjustly accused of a crime.</p>
</li>
<li>
<strong>1984</strong>
<p>Written by George Orwell, this dystopian novel delves into a totalitarian society where the government watches every move. The story follows Winston Smith as he navigates life under an oppressive regime, exploring themes of freedom, individuality, and truth.</p>
</li>
<li>
<strong>Pride and Prejudice</strong>
<p>Jane Austen’s classic novel is a witty and insightful commentary on society, class, and relationships in 19th-century England. It tells the story of Elizabeth Bennet and her evolving relationship with the enigmatic Mr. Darcy, highlighting themes of love, pride, and social expectations.</p>
</li>
<li>
<strong>The Great Gatsby</strong>
<p>F. Scott Fitzgerald’s novel paints a vivid picture of the Jazz Age and the American Dream through the eyes of Nick Carraway. The story follows Jay Gatsby, a mysterious millionaire, as he pursues wealth and romance in a world filled with extravagance and moral decay.</p>
</li>
<li>
<strong>Harry Potter and the Philosopher's Stone</strong>
<p>This beloved fantasy novel by J.K. Rowling introduces readers to the magical world of Hogwarts. It follows young Harry Potter as he discovers he’s a wizard, makes new friends, and begins an epic journey to confront dark forces that threaten the wizarding world.</p>
</li>
</ol>
</body>
</html>
Write HTML code for following list-
1. Coffee
2. Tea
a. Black tea
b. Green tea
3. Milk
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beverage List</title>
</head>
<body>
<h1>Beverages</h1>
<ol>
<li>Coffee</li>
<li>Tea
<ol type="a">
<li>Black tea</li>
<li>Green tea</li>
</ol>
</li>
<li>Milk</li>
</ol>
</body>
</html>
0 comments:
Post a Comment