Lab 1-1
Lab 1-1
Laboratory Manual
for
Web Engineering
(SL3003)
Page 1 of 4
Lab 1: Introduction to HTML
Objectives
Understand the basic structure of an HTML document.
Use fundamental HTML elements like forms, headings, paragraphs, and lists to create simple
web pages.
Develop and test HTML code using a text editor and browser.
Instructions:
1. Open VS Code and go to the Extensions view by clicking on the Extensions icon in the Activity
Bar (or press Ctrl+Shift+X).
2. Search for Live Server in the search bar.
3. Click on the Install button next to the Live Server extension.
4. Once installed restart your VS Code.
1. Open VS Code and create a new folder for your lab work.
2. Inside the folder, create a new file named index.html.
3. Write a basic HTML template in the file:
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lab 1</title>
</head>
<body>
<h1>Welcome to Web Engineering Lab</h1>
</body>
</html>
Page 2 of 4
Step 4: Launch Live Server
1. Right-click on the index.html file in the Explorer and select Open with Live Server.
2. Your default web browser will open, displaying the content of the HTML file.
3. Now, any changes you make to the file will automatically update in the browser.
If above does not work Look for the "Go Live" Button
In the bottom-right corner of VS Code, there should be a "Go Live" button in the status bar.
If you see it, click on it. This will start the Live Server and open your HTML file in the default
browser.
Design a simple HTML form to collect basic student information. The form should include:
Page 3 of 4
Task 3: Course Registration Page
Requirements:
Page 4 of 4