3rd Year - Web
3rd Year - Web
A course introducing the design and development of a Web page in WWW. It intends to provide the
students with working knowledge on creating a Web page using HTML and FrontPage software. It covers
the discussion on the WWW and the Internet, HTML basics, tools, linking, FrontPage basics, formatting,
multimedia, and site creation and maintenance. This has a laboratory component to enhance learning.
Course Objectives
• Understand the concepts and methods of designing a Web page for the World Wide Web.
• Use any text editor to create an HTML code.
• Use the elements of the HTML to format a Web page
• Design and create a WWW site.
• Appreciate the impact of Internet in daily commerce.
LIST OF PRACTICALS
7. Installation of FrontPage.
8. FrontPage navigation.
1.1 Internet
The Internet is a global network of interconnected computers that communicate using standardized
protocols. It serves as the infrastructure that enables various services, including email, file sharing, online
gaming, and the World Wide Web (WWW). Key features of the Internet include:
The Internet is the backbone for modern digital communication, supporting services like social media, e-
commerce, and cloud computing.
Browsers play a vital role in bridging the gap between users and the vast resources of the Internet.
• URL (Uniform Resource Locator): A web address that specifies the location of a resource on the
Internet.
Example: https://www.example.com/about.
Structure of a URL:
• WWW: A service on the Internet consisting of interconnected documents and media, accessed
via browsers.
Think of the Internet as a highway system and the WWW as the specific cars, trucks, and buses traveling
on those roads.
1. HTML (HyperText Markup Language): The standard language for creating web pages.
2. CSS (Cascading Style Sheets): Enhances the design and layout of web pages.
3. HTTP (HyperText Transfer Protocol): A protocol for transferring data between a browser and a
web server.
Conclusion
By understanding these concepts, students are equipped with the knowledge to navigate and utilize the
web effectively, forming a solid foundation for web development and e-commerce topics explored in later
chapters.
Chapter 2: Introduction to e-Commerce
This chapter provides an in-depth exploration of electronic commerce (e-Commerce), covering its history,
industry framework, types, and security considerations. By understanding these concepts, students can
appreciate the impact of e-Commerce on the global economy and the technical aspects involved in its
implementation.
o e-Commerce began with technologies like Electronic Data Interchange (EDI) and
Electronic Funds Transfer (EFT), allowing businesses to exchange documents and make
digital payments.
o With the advent of the World Wide Web and browsers like Netscape, e-Commerce
became accessible to smaller businesses and individual consumers.
o Technologies like AI, machine learning, and blockchain are now integral to e-Commerce.
2. Payment Gateways:
o Ensure the delivery of goods. Companies like FedEx and DHL are critical players.
4. Digital Marketing:
o Techniques like Search Engine Optimization (SEO), pay-per-click (PPC) advertising, and
social media marketing drive traffic to e-Commerce sites.
1. Business-to-Business (B2B):
2. Business-to-Consumer (B2C):
3. Consumer-to-Consumer (C2C):
4. Consumer-to-Business (C2B):
5. Government-to-Citizen (G2C):
1. Data Breaches: Unauthorized access to customer data, including credit card details.
1. Encryption:
o Ensures that data transmitted between the user and the website is encrypted.
2. Authentication:
3. Firewalls:
1. Convenience:
2. Cost-Effectiveness:
3. Global Reach:
4. Customer Insights:
o Digital tools provide valuable data about consumer preferences and behavior.
5. Economic Growth:
o Drives innovation and creates new opportunities for entrepreneurs and businesses.
Conclusion
This chapter equips students with an understanding of e-Commerce, its framework, and the challenges it
faces. These concepts will serve as a basis for developing secure and efficient web solutions for online
businesses.
Chapter 3: Web Page Designing
This chapter focuses on the principles, tools, and techniques involved in designing effective web pages.
Students will learn the process of planning and creating web pages, along with the tools and best practices
required to develop user-friendly and visually appealing websites.
3. Content Planning:
o Outline the content for each page, including text, images, and multimedia.
4. Design Layout:
3. Responsive Design:
o Essential for modern websites to ensure usability on desktops, tablets, and smartphones.
2. Create a Prototype:
3. Develop Content:
1. Text Editors:
o Allow users to create and manage content without extensive coding knowledge.
4. Online Builders:
o Example:
o <!DOCTYPE html>
o <html>
o <head>
o </head>
o <body>
o <h1>Welcome to My Website</h1>
o </body>
o </html>
o Example:
o body {
o background-color: #f4f4f4;
o color: #333;
o }
4. Add JavaScript:
o Example:
o alert("Welcome to My Website!");
2. Ensure Accessibility:
o Follow Web Content Accessibility Guidelines (WCAG) to make the site usable for
everyone.
3. Optimize Performance:
5. Update Regularly:
Conclusion
By mastering the concepts and techniques in this chapter, students will be able to design and develop
professional web pages that meet user needs and industry standards.
Chapter 4: HTML Basics
HTML (HyperText Markup Language) is the foundation of web page development. It is a standard language
used to structure and present content on the web. This chapter introduces the basic concepts of HTML,
its elements, and its structure, enabling learners to create simple web pages.
1. Tags: Keywords enclosed in angle brackets (< >) that define the start and end of an element.
• <h1> to <h6>: Headings, with <h1> being the largest and <h6> the smallest.
1. Structural Elements:
2. Formatting Elements:
3. Interactive Elements:
1. Doctype Declaration:
2. HTML Document:
3. Head Section:
o Example:
o <head>
o </head>
4. Body Section:
o Example:
o <body>
o <h1>Welcome to My Website</h1>
o </body>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
o Use meaningful tags like <header>, <footer>, <article> for better readability and SEO.
4. Add Comments:
o Use <!-- Comment --> to explain sections of the code for better collaboration.
o Use external CSS files for styling to keep the HTML code clean.
Conclusion
By understanding and applying the basics of HTML, learners will be able to create well-structured web
pages that serve as the foundation for more advanced web development.
Chapter 6: Web Linking
Hyperlinks are one of the most fundamental and powerful features of the World Wide Web. They connect
web pages, documents, and other resources, enabling seamless navigation. This chapter delves into the
types of links, their creation, formatting, and maintenance.
• External Links: Hyperlinks that point to a resource outside the current website.
Example: A link from your site to https://example.com.
• Internal Links: Hyperlinks that navigate within the same website or domain.
Example: A link from the homepage to the "About Us" page.
• Links: Used to navigate to another resource (internal or external). Created using the <a> tag with
the href attribute.
Example: <a href="https://example.com">Visit Example</a>
• Anchors: Used to navigate to a specific section within the same page or another page. Created
using the <a> tag with the id attribute.
Example: <a href="#section1">Go to Section 1</a>
External links direct users to web pages or resources hosted on other domains.
Example:
Example:
This links the current page to a file named about.html in the same directory.
HTML links can be styled using CSS to improve their appearance and usability.
Example:
<style>
a{
color: blue;
text-decoration: none;
a:hover {
color: red;
</style>
• :hover: Changes the style when the user hovers over the link.
A table of contents is a list of links that allow users to navigate to different sections of a web page.
Example:
<h1>Table of Contents</h1>
<ul>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<h2 id="introduction">Introduction</h2>
<h2 id="features">Features</h2>
<h2 id="contact">Contact</h2>
Broken links can negatively impact user experience and search engine rankings. Regular maintenance
ensures all links are functional.
2. Automated Tools: Use tools like W3C Link Checker or Screaming Frog to scan for broken links.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<ul>
</ul>
</body>
</html>
Conclusion
Mastering web linking is essential for creating functional and user-friendly websites. Links enhance
navigation, connect resources, and improve user experience. With the knowledge of creating and
maintaining links, developers can build robust and interconnected web pages.
Chapter 5: HTML Elements
HTML elements are the core building blocks of web pages, defining the structure, content, and formatting
of the page. This chapter explores the various elements of HTML, focusing on their purpose, usage, and
practical applications.
1. Title: Specifies the title of the web page displayed in the browser tab.
2. Meta Tags: Provide metadata like character encoding, description, and keywords.
<head>
<title>Welcome to My Website</title>
<meta charset="UTF-8">
</head>
3. Lists:
o <ol>
o <li>First item</li>
o <li>Second item</li>
o </ol>
o <ul>
o </ul>
<body>
<h1>Welcome to My Website</h1>
</body>
1. Text Formatting:
2. Font Styling:
• <p>: Paragraph.
• <abbr>: Abbreviation.
• <cite>: Citation.
o Example: <cite>Shakespeare</cite>
<html>
<head>
</head>
<body>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</body>
</html>
Conclusion
By understanding the various HTML elements and their usage, learners can create structured, visually
appealing, and user-friendly web pages. Mastery of these elements lays the foundation for advanced web
development techniques.
Chapter 6: Web Linking
Hyperlinks are one of the most fundamental and powerful features of the World Wide Web. They connect
web pages, documents, and other resources, enabling seamless navigation. This chapter delves into the
types of links, their creation, formatting, and maintenance.
• Internal Links: Hyperlinks that navigate within the same website or domain.
Example: A link from the homepage to the "About Us" page.
• Anchors: Used to navigate to a specific section within the same page or another page. Created
using the <a> tag with the id attribute.
Example: <a href="#section1">Go to Section 1</a>
Example:
Example:
This links the current page to a file named about.html in the same directory.
Example:
<style>
a{
color: blue;
text-decoration: none;
a:hover {
color: red;
</style>
• :hover: Changes the style when the user hovers over the link.
Example:
<h1>Table of Contents</h1>
<ul>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<h2 id="introduction">Introduction</h2>
<h2 id="features">Features</h2>
<h2 id="contact">Contact</h2>
<p>Get in touch with us.</p>
2. Automated Tools: Use tools like W3C Link Checker or Screaming Frog to scan for broken links.
<html>
<head>
</head>
<body>
<ul>
</ul>
</html>
Conclusion
Mastering web linking is essential for creating functional and user-friendly websites. Links enhance
navigation, connect resources, and improve user experience. With the knowledge of creating and
maintaining links, developers can build robust and interconnected web pages.
Chapter 7: Graphics in Web Development
Graphics play a vital role in enhancing the visual appeal and user engagement of a website. This chapter
explores the use of images, their formats, attributes, and how to incorporate them effectively into web
pages. It also delves into advanced concepts like image maps and creating links with images.
Syntax:
• title: Displays a tooltip when the user hovers over the image.
o Adobe Photoshop
o Canva
• Editing Tasks:
Example:
<a href="https://example.com">
</a>
• The <a> tag wraps around the <img> tag to make the image a hyperlink.
2. Use the <area> tag to specify clickable regions within the image.
3. Link the <map> to the <img> tag using the usemap attribute.
Example:
<map name="worldmap">
</map>
<html>
<head>
<title>Graphics Example</title>
</head>
<body>
<a href="https://example.com">
<img src="shop-now.png" alt="Shop Now Button" width="200">
</a>
<map name="map">
</map>
</body>
</html>
Conclusion
Graphics are essential for creating visually appealing and interactive web pages. By understanding image
formats, attributes, and advanced techniques like image maps, developers can enhance the functionality
and user experience of their websites.
Chapter 8: FrontPage Basics
FrontPage is a graphical web development tool that simplifies the creation and management of websites.
This chapter provides an overview of FrontPage, its interface, features, and how to use it to design and
publish web pages effectively.
3. The main workspace will open, displaying tools and menus for web development.
1. Menu Bar: Contains commands like File, Edit, View, Insert, Format, Tools, and Help.
2. Toolbar: Provides quick access to frequently used functions like saving, formatting, and inserting
elements.
3. Workspace: The main area where web pages are designed and edited.
4. Folder List: Displays the structure of the website, including folders and files.
5. Properties Panel: Shows attributes of selected elements, such as font size, alignment, and colors.
1. Normal View:
o A WYSIWYG (What You See Is What You Get) editor for designing web pages visually.
2. HTML View:
o Useful for advanced users who want to edit the code directly.
3. Preview View:
4. Navigation View:
o Displays the site structure and allows you to organize links between pages.
• Use the Folder List panel to open files or navigate through the website's structure.
• The Properties Panel updates dynamically based on the selected element, such as text, images,
or tables.
3. Click OK to save.
1. Text Formatting:
2. Paragraph Formatting:
Example:
<p style="font-family: Arial; font-size: 16px; color: blue; text-align: center;">
</p>
2. Defining Backgrounds:
Example:
</body>
3. Testing Links:
Example:
<html>
<head>
<title>Welcome Page</title>
</head>
<p style="font-size: 18px;">Explore our features and services by navigating through the links
below:</p>
<ul>
<li><a href="services.html">Services</a></li>
</ul>
</body>
</html>
Conclusion
FrontPage is a powerful tool for web development, especially for users who prefer a visual approach to
designing websites. By mastering its interface, views, and features, developers can create professional
and interactive web pages efficiently.
Chapter 9: Multimedia and Tables
Multimedia elements and tables are essential components of modern web design, enhancing user
engagement and providing structure to content. This chapter explores how to incorporate multimedia
such as sounds and images, and how to use tables effectively to organize information on a web page.
9.1 Creating and Editing a Page with Multimedia Objects (Sounds, Videos, Images)
Multimedia elements like sounds and videos can make web pages more interactive and engaging. Here's
how to include and edit these elements:
o Example:
o <audio controls>
o </audio>
o Example:
o </video>
o Example:
o Rows are defined using <tr>, and cells are created with <td> for data or <th> for headers.
o Example:
o <table border="1">
o <tr>
o <th>Name</th>
o <th>Age</th>
o </tr>
o <tr>
o <td>John</td>
o <td>25</td>
o </tr>
o </table>
2. Attributes of Tables:
o Example:
o <tr>
o <td>Data 1</td>
o <td>Data 2</td>
o </tr>
o </table>
2. Editing a Table:
o Use the Table Properties dialog box to modify attributes like cell padding, spacing, and
background color.
o Highlight the table or specific cells to apply text formatting, such as font size, color, or
alignment.
2. Example:
3. <table border="1">
4. <tr>
5. <th>Product</th>
6. <th>Image</th>
7. <th>Price</th>
8. </tr>
9. <tr>
10. <td>Smartphone</td>
12. <td>$699</td>
13. </tr>
14. </table>
9.5 Editing Tables
Editing tables involves making changes to their structure or content.
o Select the cells to merge and choose Table > Merge Cells.
o Right-click a cell and select Cell Properties to change background color, alignment, or
padding.
<html>
<head>
</head>
<body>
</video>
<h2>Our Products</h2>
<tr>
<th>Product</th>
<th>Image</th>
<th>Price</th>
</tr>
<tr>
<td>Laptop</td>
<td>$999</td>
</tr>
<tr>
<td>Headphones</td>
<td>$199</td>
</tr>
</table>
</body>
</html>
Conclusion
Multimedia elements and tables are crucial for creating engaging and structured web pages. By
incorporating sounds, videos, and images alongside well-designed tables, developers can enhance the
user experience and present information effectively. Tools like FrontPage make it easy to create, edit, and
format these elements for professional results.
Chapter 10: Hyperlinks and Navigation
Hyperlinks are the backbone of the web, enabling users to navigate between pages, sections, and external
resources. This chapter focuses on creating, editing, and managing hyperlinks, as well as designing
effective navigation systems to improve user experience.
• External websites.
• Email addresses.
o The most common type, displayed as underlined text, often in blue by default.
o Example:
2. Image Links:
o Example:
o <a href="https://www.example.com">
o </a>
3. Anchor Links:
o Example:
4. Email Links:
1. Adding a Hyperlink:
o Right-click and choose Hyperlink or use the menu Insert > Hyperlink.
2. Editing Hyperlinks:
3. Removing Hyperlinks:
o Useful for maintaining links when moving the website to a different domain.
o Example:
2. Absolute Links:
o Example:
o <a href="https://www.google.com">Google</a>
1. Options:
o _top: Opens the link in the full browser window, breaking out of any frames.
2. Example:
o Example:
o <nav>
o <ul>
o <li><a href="index.html">Home</a></li>
o <li><a href="about.html">About</a></li>
o <li><a href="services.html">Services</a></li>
o <li><a href="contact.html">Contact</a></li>
o </ul>
o </nav>
o Example:
o <style>
o nav ul {
o list-style-type: none;
o padding: 0;
o }
o nav ul li {
o display: inline;
o margin-right: 10px;
o }
o nav ul li a {
o text-decoration: none;
o color: blue;
o }
o </style>
1. Example:
2. <nav>
5. <a href="product.html">Product</a>
6. </nav>
<html>
<head>
<style>
nav ul {
list-style-type: none;
padding: 0;
background-color: #f2f2f2;
nav ul li {
display: inline;
margin-right: 15px;
}
nav ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
</style>
</head>
<body>
<header>
</header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<section>
</section>
</body>
</html>
Conclusion
Hyperlinks and navigation systems are fundamental to web design. By effectively linking pages and
creating intuitive navigation structures, developers ensure a seamless user experience. Tools like
FrontPage simplify the creation and management of hyperlinks, making web development accessible to
beginners and professionals alike.
Chapter 11: Publishing and Maintaining Websites
Creating a website is only the beginning; publishing it online and ensuring it remains functional, updated,
and secure are critical for long-term success. This chapter delves into the processes and best practices for
publishing websites and maintaining their performance.
Web hosting is a service that provides storage space on a server to house your website files.
1. Types of Hosting:
o Shared Hosting: Affordable, suitable for small websites, but resources are shared with
other sites.
o Dedicated Hosting: A server exclusively for your website, offering better performance
and security.
o Cloud Hosting: Scalable and reliable, hosting your site across multiple servers.
o VPS Hosting: A virtual private server offering a balance between shared and dedicated
hosting.
o Consider factors like uptime, bandwidth, storage, customer support, and pricing.
The domain name is your website's address (e.g., www.example.com). It should be:
Domain registration is done through domain registrars like GoDaddy, Namecheap, or Google Domains.
Once you have hosting and a domain, upload your website files to the server.
o Steps:
o Hosting providers often include a control panel (e.g., cPanel) for file management.
o For CMS platforms like WordPress, use the built-in interface to upload and manage files.
1. Content Updates:
2. Software Updates:
1. Regular Backups:
2. Restore Procedures:
o Ensure you know how to restore your website from a backup in case of data loss.
1. SSL Certificates:
2. Firewalls:
3. Malware Scanning:
4. Strong Passwords:
o Use complex passwords for all accounts associated with your website.
1. Load Time:
2. Mobile Responsiveness:
3. Monitor Uptime:
1. Website Analytics:
o Tools like Google Analytics provide insights into traffic, user behavior, and engagement.
2. User Feedback:
3. Email Marketing:
o Use tools like Screaming Frog to identify and fix broken links.
2. Server Downtime:
4. Slow Performance:
<html>
<head>
</head>
<body>
<h1>Welcome to My Website</h1>
</body>
</html>
Steps:
2. Use FTP or your hosting provider’s control panel to upload it to the server.
Conclusion
Publishing and maintaining a website is an ongoing process that requires attention to detail, regular
updates, and proactive measures to ensure security and performance. By following best practices, you
can provide a seamless and engaging experience for your users while achieving your website's goals.
Chapter 12: Creating and Maintaining Personal Websites
In this chapter, we explore the process of designing, developing, and maintaining a personal website. A
personal website serves as an online portfolio, resume, or blog, allowing individuals to showcase their
skills, achievements, and interests.
2. Showcase of Work:
3. Networking:
4. Learning Experience:
1. Define Purpose:
3. Create a Sitemap:
4. Select a Platform:
o Select a color scheme and typography that align with your personal brand.
2. Responsive Design:
4. Multimedia Integration:
Example:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Welcome to My Website</h1>
</body>
</html>
Example:
body {
color: #333;
h1 {
color: #007BFF;
Example:
document.addEventListener("DOMContentLoaded", function() {
});
o Use platforms like GitHub Pages, Netlify, or a web hosting provider to publish your site.
2. Backup:
3. Monitor Performance:
o Use tools like Google Analytics to track visitor behavior and site performance.
4. Enhance Security:
o Optimize your website with keywords, meta descriptions, and alt text for images.
3. Networking:
o Collaborate with others and participate in online communities to drive traffic.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<header>
<h1>John Doe</h1>
</header>
<nav>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<section id="about">
<h2>About Me</h2>
<p>I am a passionate web developer with expertise in HTML, CSS, and JavaScript.</p>
</section>
<section id="portfolio">
<h2>Portfolio</h2>
<ul>
</ul>
</section>
<section id="contact">
<h2>Contact</h2>
<p>Email: [email protected]</p>
</section>
</body>
</html>
CSS:
body {
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f4f4f4;
header {
background: #333;
color: #fff;
padding: 10px 0;
text-align: center;
nav ul {
display: flex;
justify-content: center;
list-style: none;
padding: 0;
}
nav ul li {
margin: 0 10px;
nav ul li a {
text-decoration: none;
color: #333;
section {
margin: 20px;
padding: 20px;
background: #fff;
Conclusion
Creating and maintaining a personal website is a valuable skill that provides numerous benefits, from
professional branding to personal expression. By following best practices in design, development, and
maintenance, you can build a website that effectively represents you and engages your audience.