Web Engineering Notes
Web Engineering Notes
**Task**: Create an HTML table to display a meeting schedule for a project team. The table should
include:
- A heading for the team name.
- A subheading for the meeting topic.
- Columns for the day, time, participants, and notes.
- Use `rowspan` to group meetings by date, and `colspan` to indicate main topics discussed during the
meetings.
### Example:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Team Meeting Schedule</title>
</head>
<body>
<h1>Project Alpha Team</h1>
<h2>Weekly Meeting Schedule</h2>
<table border="1">
<thead>
<tr>
<th scope="col">Day</th>
<th scope="col">Time</th>
<th scope="col">Participants</th>
<th scope="col">Notes</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" rowspan="2">Monday</th>
<td>10:00 AM</td>
<td>All Team Members</td>
<td rowspan="2">Weekly project updates</td>
</tr>
<tr>
<td>2:00 PM</td>
<td>Design Team</td>
</tr>
<tr>
<th scope="row" rowspan="3">Wednesday</th>
<td>11:00 AM</td>
<td>Developers</td>
<td rowspan="3">Sprint planning</td>
</tr>
<tr>
<td>1:00 PM</td>
<td>QA Team</td>
</tr>
<tr>
<td>3:00 PM</td>
<td>Product Owner</td>
</tr>
<tr>
<th scope="row">Friday</th>
<td>3:00 PM</td>
<td>All Team Members</td>
<td>Retrospective meeting</td>
</tr>
</tbody>
</table>
</body>
</html>
```
- **`rowspan`**: Used in the first column to combine the meetings on Monday into one row and
again for Wednesday to combine multiple meetings under the same day.
- **`colspan`**: Not explicitly shown in this case, but you could use it if you want to merge multiple
columns for a header or topic.
- **`scope`**: Used to clarify whether the header applies to a row or column, making the table more
accessible.
- **`row`** and **`col`** attributes in the scope provide context to screen readers about whether
the header applies to a row or a column.
Here are three additional scenarios for creating tables that utilize `rowspan`, `colspan`, `scope`, `row`,
and `col` attributes effectively:
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class Schedule</title>
</head>
<body>
<h1>University Class Schedule</h1>
<table border="1">
<thead>
<tr>
<th scope="col">Day</th>
<th scope="col">Time</th>
<th scope="col" colspan="2">Course Details</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" rowspan="2">Monday</th>
<td>9:00 AM</td>
<td>Introduction to Programming</td>
<td rowspan="2">Dr. Smith</td>
</tr>
<tr>
<td>11:00 AM</td>
<td>Programming Lab</td>
</tr>
<tr>
<th scope="row" rowspan="2">Wednesday</th>
<td>10:00 AM</td>
<td>Data Structures</td>
<td rowspan="2">Prof. Johnson</td>
</tr>
<tr>
<td>12:00 PM</td>
<td>Data Structures Lab</td>
</tr>
<tr>
<th scope="row">Friday</th>
<td>1:00 PM</td>
<td>Software Engineering</td>
<td>Dr. Lee</td>
</tr>
</tbody>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Employee Attendance Record</title>
</head>
<body>
<h1>Monthly Employee Attendance</h1>
<table border="1">
<thead>
<tr>
<th scope="col">Employee</th>
<th scope="col" colspan="31">October 2024</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" rowspan="3">John Doe</th>
<td>1</td>
<td>Present</td>
<td>2</td>
<td>Absent</td>
<td>3</td>
<td>Present</td>
<!-- Add more days as needed -->
</tr>
<tr>
<th scope="row" rowspan="3">Jane Smith</th>
<td>1</td>
<td>Present</td>
<td>2</td>
<td>Sick</td>
<td>3</td>
<td>Present</td>
<!-- Add more days as needed -->
</tr>
<tr>
<th scope="row" rowspan="3">Mike Johnson</th>
<td>1</td>
<td>Absent</td>
<td>2</td>
<td>Present</td>
<td>3</td>
<td>Present</td>
<!-- Add more days as needed -->
</tr>
<tr>
<td colspan="2">Total Present</td>
<td>20</td>
<td>Total Absent</td>
<td>10</td>
<td>Total Sick</td>
<td>5</td>
</tr>
</tbody>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Inventory</title>
</head>
<body>
<h1>Store Inventory</h1>
<table border="1">
<thead>
<tr>
<th scope="col">Category</th>
<th scope="col">Product</th>
<th scope="col">Quantity</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" rowspan="3">Electronics</th>
<td>Smartphone</td>
<td>50</td>
<td>$699</td>
</tr>
<tr>
<td>Laptop</td>
<td>30</td>
<td>$999</td>
</tr>
<tr>
<td>Headphones</td>
<td>100</td>
<td>$199</td>
</tr>
<tr>
<th scope="row" rowspan="2">Home Appliances</th>
<td>Microwave</td>
<td>20</td>
<td>$199</td>
</tr>
<tr>
<td>Washing Machine</td>
<td>15</td>
<td>$799</td>
</tr>
<tr>
<td colspan="3">Total Inventory Value</td>
<td>$25,000</td>
</tr>
</tbody>
</table>
</body>
</html>
```
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resume</title>
</head>
<body>
<h1>Mahnoor Khan</h1>
<p><strong>Career Objective:</strong> To obtain a challenging position in Software Engineering
where I can utilize my skills and contribute to the company's success.</p>
<h2>Skills</h2>
<ul>
<li>Programming Languages: <strong>Java</strong>, <strong>Python</strong>,
<strong>JavaScript</strong></li>
<li>Web Development: HTML, CSS, React</li>
<li>Database Management: MySQL, MongoDB</li>
</ul>
<h2>Education</h2>
<ol>
<li>BS in Computer Science, Ilma University (2024)</li>
<li>Intermediate, ABC College (2020)</li>
<li>Matriculation, XYZ School (2018)</li>
</ol>
<h2>Work Experience</h2>
<dl>
<dt><strong>Software Intern</strong></dt>
<dd>XYZ Company (2023) - Assisted in developing web applications.</dd>
<dt><strong>Freelance Developer</strong></dt>
<dd>Worked on various personal projects.</dd>
</dl>
<h2>Contact Information</h2>
<table border="1">
<tr>
<th>Type</th>
<th>Details</th>
</tr>
<tr>
<td>Email</td>
<td>[email protected]</td>
</tr>
<tr>
<td>Phone</td>
<td>+123456789</td>
</tr>
<tr>
<td>LinkedIn</td>
<td><a href="https://www.linkedin.com/in/mahnoor"
target="_blank">linkedin.com/in/mahnoor</a></td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movie Ratings</title>
</head>
<body>
<h1>Top Movie Ratings</h1>
<p>Welcome to our site where you can find reviews and ratings for the latest movies!</p>
<h2>Genres</h2>
<ul>
<li>Action</li>
<li>Drama</li>
<li>Comedy</li>
<li>Thriller</li>
</ul>
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Delicious Spaghetti Recipe</title>
</head>
<body>
<h1>Spaghetti Aglio e Olio</h1>
<p><strong>Description:</strong> A simple and delicious Italian pasta dish made with garlic and
olive oil.</p>
<h2>Ingredients</h2>
<ul>
<li>200g Spaghetti</li>
<li>4 cloves Garlic</li>
<li>60ml Olive Oil</li>
<li>Parsley</li>
<li>Chili Flakes</li>
<li>Salt</li>
</ul>
<h2>Preparation Steps</h2>
<ol>
<li>Boil water and cook spaghetti according to package instructions.</li>
<li>In a pan, heat olive oil and sauté minced garlic.</li>
<li>Add cooked spaghetti, chili flakes, and chopped parsley.</li>
<li>Season with salt and serve hot.</li>
</ol>
<h2>Cooking Information</h2>
<table border="1">
<tr>
<th>Cooking Time</th>
<th>Servings</th>
</tr>
<tr>
<td>15 minutes</td>
<td>2 servings</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mahnoor Khan's Portfolio</title>
</head>
<body>
<h1>Mahnoor Khan</h1>
<p>Welcome to my portfolio! I am a passionate software engineer with experience in web
development.</p>
<h2>Skills</h2>
<ul>
<li>HTML, CSS, JavaScript</li>
<li>React, Node.js</li>
<li>Database Management</li>
</ul>
<h2>Projects</h2>
<ol>
<li>Online Store</li>
<li>Personal Blog</li>
<li>Recipe Sharing Platform</li>
</ol>
<h2>Project Details</h2>
<table border="1">
<tr>
<th>Project Name</th>
<th>Description</th>
<th>Technologies Used</th>
</tr>
<tr>
<td>Online Store</td>
<td>A complete e-commerce website</td>
<td>React, Node.js, MongoDB</td>
</tr>
<tr>
<td>Personal Blog</td>
<td>A blog to share my thoughts and experiences</td>
<td>HTML, CSS, JavaScript</td>
</tr>
<tr>
<td>Recipe Sharing Platform</td>
<td>A platform to share and discover recipes</td>
<td>HTML, CSS, Python</td>
</tr>
</table>
</body>
</html>
```
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Restaurant Menu</title>
</head>
<body>
<h1>Delicious Eats</h1>
<h2>Appetizers</h2>
<ul>
<li>Garlic Bread</li>
<li>Bruschetta</li>
<li>Stuffed Mushrooms</li>
</ul>
<h2>Main Courses</h2>
<ol>
<li>Grilled Salmon</li>
<li>Chicken Alfredo</li>
<li>Vegetable Stir Fry</li>
</ol>
<h2>Desserts</h2>
<dl>
<dt>Chocolate Cake</dt>
<dd>Rich and moist chocolate cake.</dd>
<dt>Tiramisu</dt>
<dd>Coffee-flavored Italian dessert.</dd>
</dl>
<h2>Prices</h2>
<table border="1">
<tr>
<th>Dish</th>
<th>Price</th>
</tr>
<tr>
<td>Garlic Bread</td>
<td>$5</td>
</tr>
<tr>
<td>Grilled Salmon</td>
<td>$15</td>
</tr>
<tr>
<td>Chocolate Cake</td>
<td>$7</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bookstore Inventory</title>
</head>
<body>
<h1>Readers' Haven</h1>
<p>Your one-stop shop for all your literary needs!</p>
<h2>Genres Available</h2>
<ol>
<li>Fiction</li>
<li>Non-Fiction</li>
<li>Science Fiction</li>
<li>Biographies</li>
</ol>
<h2>Book Inventory</h2>
<table border="1">
<tr>
<th>Title</th>
<th>Author</th>
<th>Price</th>
</tr>
<tr>
<td>The Great Gatsby</td>
<td>F. Scott Fitzgerald</td>
<td>$10</td>
</tr>
<tr>
<td>1984</td>
<td>George Orwell</td>
<td>$12</td>
</tr>
<tr>
<td>Becoming</td>
<td>Michelle Obama</td>
<td>$15</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fitness Class Schedule</title>
</head>
<body>
<h1>Fit Life Center</h1>
<p>Your destination for a healthier lifestyle!</p>
<h2>Class Schedule</h2>
<table border="1">
<tr>
<th>Class Name</th>
<th>Instructor</th>
<th>Day</th>
<th>Time</th>
</tr>
<tr>
<td rowspan="2">Yoga</td>
<td>Sarah Johnson</td>
<td>Monday</td>
<td>6:00 PM</td>
</tr>
<tr>
<td>Sarah Johnson</td>
<td>Wednesday</td>
<td>6:00 PM</td>
</tr>
<tr>
<td>Zumba</td>
<td>Emily Davis</td>
<td>Tuesday</td>
<td>7:00 PM</td>
</tr>
<tr>
<td>Pilates</td>
<td>Mark Thompson</td>
<td>Thursday</td>
<td>8:00 PM</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Travel Itinerary</title>
</head>
<body>
<h1>Adventure Trip to Europe</h1>
<h2>Destinations</h2>
<ul>
<li>Paris</li>
<li>Rome</li>
<li>Barcelona</li>
</ul>
<h2>Activities</h2>
<ol>
<li>Visit the Eiffel Tower</li>
<li>Explore the Colosseum</li>
<li>Relax at Park Güell</li>
</ol>
<h2>Flight Details</h2>
<table border="1">
<tr>
<th>Flight</th>
<th>Date</th>
<th>Time</th>
</tr>
<tr>
<td>Flight 101</td>
<td>2024-10-01</td>
<td>8:00 AM</td>
</tr>
<tr>
<td>Flight 102</td>
<td>2024-10-15</td>
<td>6:00 PM</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Course Overview</title>
</head>
<body>
<h1>Introduction to Web Development</h1>
<p>This course provides a comprehensive overview of web development, covering HTML, CSS,
and JavaScript.</p>
<h2>Topics Covered</h2>
<ul>
<li>HTML Basics</li>
<li>CSS Styling</li>
<li>JavaScript Fundamentals</li>
</ul>
<h2>Course Breakdown</h2>
<table border="1">
<tr>
<th>Week</th>
<th>Topic</th>
<th>Assignment</th>
</tr>
<tr>
<td>1</td>
<td>Introduction to HTML</td>
<td>Build a simple webpage</td>
</tr>
<tr>
<td>2</td>
<td>CSS Basics</td>
<td>Style your webpage</td>
</tr>
<tr>
<td>3</td>
<td>JavaScript Fundamentals</td>
<td>ImplementSure! Here are more practice scenarios along with examples for each:
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product Catalog</title>
</head>
<body>
<h1>Gadgets Galore</h1>
<p>Your one-stop shop for the latest gadgets and electronics!</p>
<h2>Product Categories</h2>
<ul>
<li>Smartphones</li>
<li>Laptops</li>
<li>Accessories</li>
</ul>
<h2>Product List</h2>
<table border="1">
<tr>
<th>Product Name</th>
<th>Description</th>
<th>Price</th>
<th>Availability</th>
</tr>
<tr>
<td>Smartphone XYZ</td>
<td>Latest model with advanced features</td>
<td>$799</td>
<td>In Stock</td>
</tr>
<tr>
<td>Laptop ABC</td>
<td>Powerful laptop for professionals</td>
<td>$1299</td>
<td>Out of Stock</td>
</tr>
<tr>
<td>Wireless Headphones</td>
<td>Noise-cancelling headphones with great sound quality</td>
<td>$199</td>
<td>In Stock</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Science Fair Projects</title>
</head>
<body>
<h1>Annual Science Fair 2024</h1>
<p>Showcasing innovative science projects by students!</p>
<h2>Project Categories</h2>
<ol>
<li>Physics</li>
<li>Chemistry</li>
<li>Biology</li>
<li>Environmental Science</li>
</ol>
<h2>Project Overview</h2>
<table border="1">
<tr>
<th>Project Title</th>
<th>Participant(s)</th>
<th>Grade</th>
</tr>
<tr>
<td>The Effects of Gravity</td>
<td>John Smith</td>
<td>A+</td>
</tr>
<tr>
<td>Water Purification Techniques</td>
<td>Jane Doe</td>
<td>A</td>
</tr>
<tr>
<td>Plant Growth and Light</td>
<td>Emily Davis</td>
<td>B+</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movie Night</title>
</head>
<body>
<h1>Weekly Movie Night</h1>
<p>Join us every Friday for an exciting movie experience!</p>
<h2>Movies to Be Shown</h2>
<ul>
<li>The Shawshank Redemption</li>
<li>Inception</li>
<li>The Dark Knight</li>
<li>Pulp Fiction</li>
</ul>
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Application</title>
</head>
<body>
<h1>Software Engineer</h1>
<p>Join our dynamic team as a Software Engineer and contribute to innovative projects!</p>
<h2>Responsibilities</h2>
<ol>
<li>Develop and maintain web applications</li>
<li>Collaborate with cross-functional teams</li>
<li>Participate in code reviews</li>
</ol>
<h2>Required Qualifications</h2>
<table border="1">
<tr>
<th>Qualification</th>
<th>Description</th>
</tr>
<tr>
<td>Bachelor's Degree</td>
<td>Degree in Computer Science or related field</td>
</tr>
<tr>
<td>Programming Skills</td>
<td>Proficiency in JavaScript, HTML, CSS</td>
</tr>
<tr>
<td>Experience</td>
<td>2+ years of software development experience</td>
</tr>
</table>
</body>
</html>
```
---
**Example**:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School Events Calendar</title>
</head>
<body>
<h1>Springfield High School</h1>
<p>Join us for our upcoming school events!</p>
<h2>Upcoming Events</h2>
<ul>
<li>Science Fair</li>
<li>Annual Sports Day</li>
<li>Parent-Teacher Meeting</li>
</ul>
<h2>Event Schedule</h2>
<table border="1">
<tr>
<th>Event</th>
<th>Date</th>
<th>Time</th>
<th>Location</th>
</tr>
<tr>
<td>Science Fair</td>
<td>2024-10-10</td>
<td>10:00 AM</td>
<td>Main Hall</td>
</tr>
<tr>
<td>Annual Sports Day</td>
<td>2024-10-20</td>
<td>9:00 AM</td>
<td>School Ground</td>
</tr>
<tr>
<td>Parent-Teacher Meeting</td>
<td>2024-10-30</td>
<td>5:00 PM</td>
<td
THEORY
Here’s a concise overview of HTML, its benefits, usage,
importance, and common questions: