WTL - Experiment No 02
WTL - Experiment No 02
LAB Manual
Class\Sem: TE – A, B, C Sem – II Course: Web Technology Lab
Faculty: Prof. Shyamsundar Magar A.Y: - 2024-25
EXPERIMENT NO.02
Remark
IMPLEMENT A WEB PAGE FOR ANY CLIENT WEBSITE USING HTML & CSS
A.2 PROBLEM STATEMENT:
Implement a web page index.htm for any client website (e.g., a restaurant website project) using the
following:
a. HTML syntax: heading tags, basic tags and attributes, frames, tables, images, lists, links for text and
images, forms etc.
b. Use of Internal CSS, Inline CSS, External CSS
A.2 PREREQUISITE\REQUIREMENTS:
Text Editor: To write HTML code, you need a text editor such as Notepad, Sublime Text, Visual
Studio Code, or Atom.
Web Browser: To view the output of your HTML code, you need a web browser like Google Chrome,
Mozilla Firefox, Microsoft Edge, or Safari.
Computer with Internet Access
Search Engine: A search engine like Google or Bing for research and troubleshooting.
Access to Web Servers (if applicable): Required for demonstrating dynamic websites.
Study Materials: Study guides or handouts explaining key terminologies.
Basic Knowledge Requirements: Understanding of logic and fundamental programming concepts.
A.3 LAB OUTCOME:
CO1 - Understand the importance of website planning and website design issues
Students will be able to,
1. Design a static webpage using HTML.
2. Apply CSS to HTML pages.
A.4 THEORY:
A.5 PROCEDURE:
Step 1: Create Project Folder
Create a folder named RestaurantWebsite or any suitable name on your computer.
Inside this folder, you’ll save all files related to your project.
Step 2: Create HTML File
Open your text editor and create a new file.
Save it as index.htm in the project folder.
Start with the basic HTML structure:
Step 3: Add HTML Content
Use the following HTML elements:
Headings (<h1> to <h6>)
Paragraphs, bold, italic, break, etc.
Images (<img>)
Lists (<ul>, <ol>, <li>)
Tables (<table>, <tr>, <td>)
Links (<a href>)
Form Elements (<input>, <textarea>, <select>)
Frame using <iframe> (for maps or embedded pages)
Step 4: Apply Inline CSS
Add CSS directly inside HTML tags using the style attribute.
Step 5: Apply Internal CSS
Write CSS rules inside the <style> tag in the <head> section.
Step 6: Create External CSS File
Create a new file in the same folder and name it styles.css.
Write your CSS rules:
Link it in the <head> of index.htm:
Step 7: Add Form Section
Include a simple form
Step 8: Add an Iframe
Embed a Google Map or YouTube video:
Step 9: Save and Run
Save all your files.
Open index.htm in a web browser to view the result.
Make corrections or enhancements as needed.
Step 10: Document Observations
Write what you learned:
o Understanding of HTML elements
o Role of each CSS type (Inline, Internal, External)
o Design layout techniques
o Importance of planning a webpage
PART (B)
(PART B : TO BE COMPLETED BY STUDENTS)
(Students must submit the soft copy as per following segments within two hours of the practical. The soft
copy must be uploaded on the Blackboard or emailed to the concerned lab in charge faculties at the end
of the practical in case the there is no Black board access available)
ACTIVITY 1: CREATE RESTAURANT WEB PAGE DESIGN USING HTML & CSS
1) Objective:
To evaluate and reinforce the knowledge gained through designing a functional and styled webpage for a
sample client (e.g., restaurant) using HTML and different types of CSS (Inline, Internal, External)..
2) Activity:
Students created a web page (index.htm) for a restaurant website project that includes:
Basic HTML structure and tags (headings, paragraphs, tables, images, forms, links, lists)
Use of an <iframe> for embedding maps or external content
Styling through:
Inline CSS: styling applied within individual HTML tags
Internal CSS: styling added inside <style> tag within the HTML file
External CSS: a separate .css file linked to the HTML file
3) Instructions:
Create a folder named RestaurantWebsite.
Inside the folder, create an HTML file named index.htm.
Design a sample webpage using:
Heading, paragraph, image, table, list, link, and form tags.
<iframe> to show embedded location (Google Maps or video).
Apply Inline CSS to specific HTML tags (e.g., <h1 style="color:red;">).
Apply Internal CSS inside the <head> tag using <style>.
Create and link an External CSS file (styles.css) to manage layout and colors.
Open the HTML file in a web browser and test the page layout and style.
4) Skills Practiced:
✅ Structuring content using tables, lists, and forms
✅ Implementing and differentiating types of CSS
✅ Organizing code using separation of structure (HTML) and style (CSS)
✅ Embedding external content using <iframe>
✅ Designing a simple and user-friendly client webpage
B.3 CONCLUSIONS: