Web_Assignment
Web_Assignment
Group Members:
This document is prepared as part of the Website Design and Development project for Grade 11,
Section 1.
Abstract
The digital age has transformed the way people access, share, and process information,
with websites playing a crucial role in this evolution. This document provides a com-
prehensive guide to websites, web browsers, and HTML, focusing on their definitions,
features, advantages, and practical applications. The primary aim is to equip students
and educators with foundational knowledge to understand and apply these technologies
effectively.
Through detailed explanations, examples, and illustrations, the document delves into
the structure of websites, the functionalities of web browsers, and the role of HTML
in creating and designing webpages. It also highlights the importance of websites
in communication, education, business, and entertainment while acknowledging their
limitations and challenges.
By the end of this guide, readers will gain valuable insights into the interconnected as-
pects of web technologies, enabling them to build and interact with web-based systems
confidently. This guide serves as a valuable resource for those venturing into the world
of web development and internet technologies.
ii
Acknowledgements
We would like to extend our heartfelt gratitude to Fasiladas General Secondary School
for providing us with the opportunity and resources to undertake this project. Special
thanks to our instructor, whose guidance, support, and expertise have been invaluable
throughout this journey.
We are deeply grateful to our group members for their dedication, collaboration, and
effort in making this document possible. The teamwork and commitment displayed
during this process have been exemplary.
Lastly, we acknowledge the support of our families and friends, who provided encourage-
ment and motivation during the preparation of this project specially to Sina’s brother
Fikreselassie Solomon, a computer engineer at Addis Ababa University, who guided as
to throughout our project journey. We also appreciate the input from various online
resources and textbooks that contributed to our understanding of web technologies.
This project would not have been possible without the collective effort and contribu-
tions of everyone involved.
iii
Contents
List of Figures vi
1 Introduction 1
1.1 How Did Websites Start? . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 What Makes a Website Work? . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Why Are Web Technologies Important? . . . . . . . . . . . . . . . . . . 2
2 Websites 3
2.1 Definition of a Website . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Types of Websites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 Website Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.4 Advantages and Disadvantages of Websites . . . . . . . . . . . . . . . . 5
2.5 Examples of Websites . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Web Browsers 7
3.1 What is a Web Browser? . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Examples of Web Browsers . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.3 Anatomy of a Web Browser . . . . . . . . . . . . . . . . . . . . . . . . 8
3.4 Browser Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Text Editors 10
4.1 What is a Text Editor? . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 Examples of Text Editors . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.3 Comparison of Text Editors . . . . . . . . . . . . . . . . . . . . . . . . 11
4.4 Integration with Web Development . . . . . . . . . . . . . . . . . . . . 11
iv
5.1 Definition of High-Level Programming Languages . . . . . . . . . . . . 13
5.2 What is a Markup Language? . . . . . . . . . . . . . . . . . . . . . . . 13
5.3 Comparison: High-Level Programming vs. Markup Languages . . . . . 14
5.4 Use Cases: When to Use Each Type . . . . . . . . . . . . . . . . . . . . 14
6 HTML 16
6.1 What is HTML? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2 HTML Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.3 Common Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.4 HTML Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.5 HTML5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.6 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
8 CSS 23
8.1 What is CSS? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.2 CSS Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.3 Types of CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
8.4 Box Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
8.5 Advanced CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
9 Javascript 25
9.1 What is JavaScript? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
9.2 JavaScript Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
9.3 Functions and Control Flow . . . . . . . . . . . . . . . . . . . . . . . . 26
9.4 DOM Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
10 Conclusion 27
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
v
List of Figures
4.1 vscode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 sublime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 pycharm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.4 atom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6.1 HTML 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
8.1 css3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
9.1 Javascript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
vi
List of Tables
vii
List of Acronyms
CSS Cascading Style Sheets, a language used to style and format the
appearance of web pages.
HTTP HyperText Transfer Protocol, the protocol used for transferring data
over the web.
DNS Domain Name System, a system that translates domain names into
IP addresses.
UI User Interface, the design and layout through which a user interacts
with a website or application.
viii
age and manipulate databases.
ix
Chapter 1
Introduction
The digital world has changed the way we live, work, and communicate. Today, we
can find information, share ideas, and even buy things online—all thanks to websites,
web browsers, and a language called HTML. These tools make up the backbone of
the internet and allow us to enjoy the web every day. This chapter introduces these
concepts in a simple and easy way.
Over time, new technologies like CSS (used to add style and color) and JavaScript (used
to make websites interactive) made websites more fun and engaging. Today, websites
can do amazing things like playing videos, running games, and even managing online
stores.
• Frontend: This is what you see and interact with when you visit a website.
It includes the text, buttons, and images you click on. Frontend is built us-
ing languages like HTML (for structure), CSS (for design), and JavaScript (for
interactions).
• Backend: This is like the brain of the website. It’s where all the behind-the-
scenes work happens, such as processing your requests (e.g., logging in or buying
something).
1
1. Introduction
New Terms:
• HTML: A simple language used to create the structure of a webpage (like build-
ing blocks).
• CSS: A styling tool that makes websites look colorful and beautiful.
• JavaScript: A coding language that adds cool features like animations and
interactive forms.
• Help us stay connected through social media platforms like Facebook and Insta-
gram.
• Enable learning through online classes and resources like YouTube or Khan
Academy.
These tools have made the world smaller, allowing people to share ideas and solve
problems together, no matter where they live.
This chapter gives you a basic understanding of websites, how they’re built, and why
they’re important. With this knowledge, you’re ready to dive deeper into the world of
web technologies and see how they shape our daily lives.
2
Chapter 2
Websites
Each website has a unique address called a URL (Uniform Resource Locator), which
allows users to access it through a web browser. Websites are the backbone of the
digital world, enabling businesses, individuals, and organizations to connect globally.
• Static Websites: These have fixed content that does not change unless updated
manually.
3
2. Websites
• Social Media Websites: Platforms for connecting and interacting with others
(e.g., Facebook, Twitter).
Each type serves a unique purpose and is tailored to its target audience.
• Frontend: This is the part of the website that users interact with. It includes
elements like text, images, and buttons and is built using:
• Backend: The logic and functionality behind the scenes, such as processing user
requests or managing logins.
4
2. Websites
Advantages
• Global Reach: Connects people and businesses worldwide.
Disadvantages
• Security Risks: Vulnerable to hacking or data breaches.
5
2. Websites
6
Chapter 3
Web Browsers
The history of web browsers began in 1990 with the creation of the first browser,
WorldWideWeb, by Tim Berners-Lee. Since then, browsers have evolved significantly
to include features like tabs, bookmarks, and extensions.
Web browsers are essential for exploring the internet, allowing users to access informa-
tion, play videos, and interact with web applications seamlessly.
• Google Chrome: Known for its speed and integration with Google services.
• Microsoft Edge: A modern browser with tight integration into the Windows
operating system.
Each browser offers unique features that cater to different user needs and preferences.
7
3. Web Browsers
• User Interface (UI): The visible part of the browser, including address bars,
tabs, and buttons.
• Rendering Engine: Converts HTML, CSS, and JavaScript into the visual con-
tent you see on the screen.
• Networking: Manages requests and responses between the browser and web
servers.
• Data Storage: Saves cookies, cached files, and other data locally for faster
performance.
These components work in harmony to interpret web technologies and deliver a user-
friendly experience.
8
3. Web Browsers
• Debugging Tools: Help developers identify and fix issues in their code.
For example, Google Chrome’s DevTools is a powerful suite for debugging and opti-
mizing web applications.
9
Chapter 4
Text Editors
Text editors provide features like syntax highlighting, auto-completion, and error de-
tection, making the coding process more efficient. They are lightweight and versatile,
designed to cater to the needs of both beginners and experienced developers.
• Sublime Text: Known for its speed, simplicity, and customizable interface.
• Notepad++: A free and lightweight editor, ideal for beginners and small
projects.
• Atom: A text editor by GitHub, popular for its collaboration features and inte-
grations.
• Brackets: Designed specifically for web development, offering features like live
preview for CSS and HTML edits.
Each text editor caters to different needs, from small projects to large-scale web devel-
opment.
10
4. Text Editors
• Plugins: Extend functionality with tools for linting, debugging, and version
control.
• Debugging Tools: Help identify and fix errors directly within the editor.
• Version Control Integration: Connect with Git to manage and track code
changes.
For example, VS Code’s live server plugin allows developers to view real-time updates
as they code, improving efficiency and accuracy.
11
4. Text Editors
12
Chapter 5
High-Level Programming and
Markup Languages
• Ease of Use: Designed to be user-friendly with features like error handling and
libraries.
• Tags and Attributes: Use tags (e.g., <h1>, <p>) to define elements and at-
tributes to specify properties.
13
5. High-Level Programming and Markup Languages
logic or algorithms.
Examples include HTML (HyperText Markup Language) and XML (Extensible Markup
Language). Markup languages are primarily used for web development and data rep-
resentation.
While programming languages handle the logic and behavior of applications, markup
languages focus on their structure and appearance.
Markup Languages
• Structuring web pages (e.g., HTML for headers, paragraphs, and links).
14
5. High-Level Programming and Markup Languages
Both types often work together, as seen in web development where HTML structures
the page and JavaScript adds interactivity.
15
Chapter 6
HTML
HTML is not a programming language but a markup language, meaning it uses tags to
define elements on a webpage. Over the years, HTML has evolved significantly, with
HTML5 being the latest version, offering enhanced features for modern web develop-
ment.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
16
6. HTML
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
17
6. HTML
• Multimedia Support: Native support for audio (<audio>) and video (<video>)
without plugins.
• Improved Forms: New input types like date, email, and number.
6.6 Examples
Here is a simple HTML page that demonstrates basic structure and functionality:
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is a paragraph about me.</p>
<img src="profile.jpg" alt="Profile Picture">
<a href="https://example.com">Visit my blog</a>
</body>
</html>
This example shows how to structure a webpage, include images, and add links.
18
Chapter 7
Advanced HTML Concepts
<label for="email">Email:</label>
<input type="email" id="email" name="email">
19
7. Advanced HTML Concepts
Tables
Tables are created using the <table> tag and are organized into rows and columns.
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
</tr>
<tr>
<td>Jane</td>
<td>30</td>
</tr>
</table>
Lists
• Unordered Lists: Created with <ul> and <li> tags.
20
7. Advanced HTML Concepts
Example:
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
</ul>
Embedding Images
<img src="image.jpg" alt="Description of Image">
Embedding Videos
<video controls>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Embedding Audio
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
21
7. Advanced HTML Concepts
• <header> and <footer>: Define the header and footer of a document or section.
Using semantic elements improves the clarity and structure of web pages.
7.5 Accessibility
Accessibility ensures that websites are usable by everyone, including people with dis-
abilities. Key practices include:
Best Practices
• Use alt attributes for images to describe their content.
Example
<img src="image.jpg" alt="A scenic mountain view">
Accessibility is crucial for creating inclusive websites and improving the user experience
for all.
22
Chapter 8
CSS
CSS separates content (HTML) from presentation, allowing developers to create visu-
ally appealing and consistent designs. It plays a vital role in enhancing user experience
and making websites more attractive.
selector {
property: value;
}
• Inline CSS: Added directly within an HTML tag using the style attribute.
• Internal CSS: Defined within a <style> block inside the HTML <head>.
• External CSS: Written in a separate file and linked using the <link> tag.
External CSS is preferred for maintaining consistency and reusability across multiple
23
8. CSS
pages.
• Grid Layout: Provides a two-dimensional layout system for rows and columns.
24
Chapter 9
Javascript
JavaScript was first introduced in 1995 and has since become one of the core technolo-
gies of web development, alongside HTML and CSS.
Example:
25
9. Javascript
Example:
function greet(name) {
if (name) {
return "Hello, " + name;
}
return "Hello, Guest";
}
• Styling: element.style.
Example:
document.querySelector("h1").innerText = "Welcome!";
26
Chapter 10
Conclusion
• The structure and functionality of HTML, including syntax, tags, and attributes.
• The importance of CSS for designing and styling web pages, as well as advanced
layout techniques like Flexbox and Grid.
• The role of JavaScript in adding interactivity and logic to web applications, in-
cluding DOM manipulation and event handling.
• Accessibility and semantic HTML, which ensure that web pages are usable and
well-structured for all users.
27
10. Conclusion
• Progressive Web Apps (PWAs): Bridging the gap between web and mobile
applications.
• Voice Interfaces: Designing websites optimized for voice commands and inter-
action.
28
10. Conclusion
Final Thoughts
The web is a dynamic and integral part of modern life, and mastering HTML, CSS, and
JavaScript provides the foundation for exploring this exciting field. By understand-
ing these technologies and staying informed about new trends, developers can create
impactful and innovative web experiences.
29
References
30
Appendix A
Sample Code Examples
This appendix provides sample code examples for HTML, CSS, and JavaScript to
demonstrate basic web development practices.
HTML Sample
A basic HTML webpage structure:
<!DOCTYPE html>
<html>
<head>
<title>Sample HTML Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a sample paragraph demonstrating basic HTML structure.</p>
<a href="https://example.com">Visit Example</a>
</body>
</html>
CSS Sample
A simple CSS stylesheet to style the HTML:
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 20px;
}
31
A. Sample Code Examples
h1 {
color: #0056b3;
text-align: center;
}
p {
font-size: 14px;
line-height: 1.6;
}
a {
color: #0056b3;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
JavaScript Sample
A simple JavaScript example to add interactivity:
<script>
function greetUser() {
alert("Welcome to my website!");
}
window.onload = greetUser;
</script>
32
Appendix B
Further Examples and Advanced
Concepts
This appendix provides additional examples and more advanced concepts for practicing
web development.
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
.container {
display: flex;
justify-content: space-between;
align-items: center;
}
.item {
33
B. Further Examples and Advanced Concepts
flex: 1;
padding: 10px;
margin: 5px;
border: 1px solid #ddd;
text-align: center;
}
<script>
document.addEventListener("DOMContentLoaded", function() {
const heading = document.querySelector("h1");
heading.textContent = "Updated Heading with JavaScript!";
});
</script>
34