Coding 10 Class
Coding 10 Class
INTRODUCTION TO WEB
What is www?
The World Wide Web (WWW) is a vast collection of interconnected information that can be
accessed via the internet. It enables users to visit websites, access videos, engage in online
gaming, and moreHere are some key points to understand:
● Websites: A website is a group of connected web pages about a specific topic. Websites
can be about anything—like sports, music, or education.
● Web Pages: A web page is a single document on a website. It’s what you view when you
enter a URL in your browser.
History of WWW:
Example: Websites like Facebook, YouTube, and Wikipedia allowed users to share content, post
comments, and interact with others.
Example: A music app (e.g., Spotify) that uses AI to suggest songs you might like, or services like
Siri, Google Now, and Wolfram Alpha, which use AI to provide personalized recommendations
and answers.
Key Points:
Web 3.0 is still changing, but people are already talking about Web 4.0 and Web 5.0. These are
ideas about the future of the internet. They are not fully developed yet, but they imagine a web
that understands us better, feels more personal, and connects with how we act. Web 4.0 might
use more AI and virtual reality, while Web 5.0 could make the web understand our emotions.
It’s important to understand that the internet and the web are not the same:
The Internet:
The Web,:
● The web, or World Wide Web (WWW), is a system of websites and pages you can
visit using the internet.
● It’s made up of websites with text, images, videos, and links.
● It’s like the places (websites) you can visit on the internet.
In short: Internet is the connection, like roads. Web is the content, like the places you visit on
those roads.
The web has changed how we communicate, share information, and access services. Its
significance includes:
To understand how we access websites, let’s break it down into three main parts: Web
Browsers, Servers, and URLs.
1. Web Browsers
A web browser is a program that allows us to view web pages. Popular web browsers
include:
○ Google Chrome
○ Mozilla Firefox
○ Safari
○ Microsoft Edge
When you type a website address (URL) into the browser and press enter, the browser
sends a request to the web server that holds the website’s information.
2. Servers
A server is a powerful computer that stores websites and their files (like text, images,
and videos). When you request a web page, the server sends the information back to
your browser.
Think of the server like a library where websites (books) are kept. When you ask for a
website (book), the server (librarian) sends it to you.
A URL is the address that tells the browser where to find specific web pages. For
example, the URL for Google is https://www.google.com.
● Protocol: This tells the browser how to connect. Most websites use HTTP or
HTTPS (the ‘S’ stands for secure).
● Domain Name: The name of the website (e.g., google.com).
● Path: The specific address of a page (e.g., /search).
The web uses HTTP (HyperText Transfer Protocol) to send information between the
browser and the server. This allows you to load pages, click on links, and interact with
websites.
Objective: To help students understand how websites work and explore the evolution of the
Web.
1. Goal: Visit three different websites, each representing a different phase of the Web's
evolution.
○ Visit a basic website (Example: A simple personal blog or old website) – this
represents Web 1.0.
○ Visit a social or interactive website (Example: Facebook or Wikipedia) – this
represents Web 2.0.
○ Visit a personalized or AI-driven website (Example: Spotify, Google Now, or
Amazon) – this represents Web 3.0.
2. Questions to Answer:
○ What is the main purpose of each website?
○ How does the website allow you to interact with the content (e.g., can you
comment, share, or personalize your experience)?
○ Which version of the Web do you think the website represents (Web 1.0, 2.0, or
3.0)? Why?
Objective: To help students understand how websites work and explore the evolution of the
Web.
1. Goal: Learn how to break down and understand a URL. Take a URL like
https://www.example.com/blog/article.
● Protocol: What type of connection is used (HTTP or HTTPS)?
● Domain Name: What is the name of the website?
● Path: What specific page is being accessed?
2. Task: Write out the parts of the URL for three websites you visit regularly. Share your
findings with a partner.
Frontend Development
Frontend development focuses on creating the visible parts of a website, like its design, layout,
and interactive features. It determines how the website looks and feels to the user.
Key Technologies:
● HTML (HyperText Markup Language): Provides the basic structure of a webpage, like
headings, paragraphs, and images.
● CSS (Cascading Style Sheets): Styles the webpage with colors, fonts, and layouts.
● JavaScript: Adds interactivity, such as buttons that respond to clicks or animations that
bring a page to life.
Backend Development
Backend development manages everything users don’t see but is critical to how a website
works. It handles data storage, user requests, and server responses.
Backend development is about managing the server, database, and application logic that power
the website.
● Role of the Server: Handles requests from users and sends appropriate responses.
● Role of Databases: Stores and retrieves data for the website.
● Server-Side Languages: Examples include PHP, Python, Ruby, and Node.js.
Full-Stack Development
Full-stack development combines frontend and backend skills. Full-stack developers can build a
complete web application, from designing the user interface to managing the server and
database.
Dynamic Websites
Description: Dynamic websites display content that changes based on user interaction or data
from the server. They use scripting languages like PHP, Python, or JavaScript to manage this
functionality.
Features: Interactive, user-friendly, and data-driven.
Examples:
● Social media platforms like Facebook and Twitter.
● News websites with frequently updated content.
E-commerce Websites
Description: These websites allow businesses to sell products or services online. They include
features like shopping carts, payment gateways, and product catalogs.
Features: Secure transactions, easy navigation, and customer reviews.
Examples:
● Global marketplaces: Amazon, eBay.
● Niche online stores: Websites selling local or handcrafted products.
● Advantages of MPAs:
○ They are good for websites with a lot of content, like online shopping platforms
or educational portals.
○ They are more secure because the frameworks and tools used to build MPAs
have been tested for years.
● Examples of MPAs:
○ E-commerce websites like Amazon or Flipkart.
○ News websites with many articles and categories.
Instructions:
1. Divide students into small groups.
2. Provide the following scenarios and ask groups to classify each website as Static,
Dynamic, E-commerce, CMS, or Web Application:
a. A blog for sharing travel stories.
b. An online shop selling handmade jewelry.
c. A social media platform for sharing updates and photos.
d. A portal for reading news articles updated daily.
e. A tool for editing and sharing documents online.
3. Ask each group to present their classifications and explain their reasoning.
Instructions:
● Divide students into small groups.
● Ask each group to research and list 5 websites that are SPAs and 5 that are MPAs
● Have each group present their list of websites and explain why they classified them as
SPAs or MPAs.
Summary:
Key Difference:
The Internet connects computers; the Web is the content accessed over it.
How It Works:
Browsers (e.g., Chrome) access websites stored on servers. URLs help browsers find specific
pages.
Web Development:
Types of Websites:
Tools: Text editors (VS Code), frameworks (React, Django), version control (Git), hosting (AWS,
Netlify).
2. Introduction to HTML
What is HTML
At its most basic, HTML is nothing more than a collection of markup codes called tags that
specify the structure of your web page.
HTML is a standardised system for tagging text files that creates the structure for just about
every page that we find and use on the web. It’s HTML that adds in page breaks, paragraphs,
bold lettering, italics, and more. HTML works to build this structure by using tags that tell
browsers what to do with text.
For example, take the following line of content:
If we wanted the line to stand by itself, we could specify that it is a paragraph by enclosing it in
paragraph tags:
Code:
HTML History
● 1989: Tim Berners-Lee invents HTML as a publishing language for the web. The idea
was to help CERN researchers organise scientific information.
● 1991: Berners-Lee gives the public the first description of HTML in a document called
“HTML Tags”.
● 1993: The first version of HTML, HTML 1.0, is released. It included 18 HTML tags.
● 1995: HTML 2.0 is published, which added new features to HTML 1.0.
● 1997: HTML 3.0 was invented, which improved features and gave webmasters more
powerful tools.
● 1999: HTML 4.0 was released and has become widely used.
● 2014: HTML 5.0 is released and used worldwide. It's considered an extended version of
HTML 4.01.
There are absolutely no requirements to start learning HTML, but you will need some tools to
help you along the way.
Two tools are essential to becoming an efficient and professional Web Developer.
Secondly, you will need a browser to render your code. You can use any browser that supports
HTML5- Firefox, Safari, Google’s Chrome and Opera.
<!DOCTYPE html>
<p>We are learning HTML.</p>
Heading Tags
There are six heading tags in all, ranging from <h1>, which uses the largest type size, down to
<h6>, which uses the smallest size. Here’s some web page code that demonstrates the six
heading tags, and the figure shows how they look in a web browser.
Example:
<h1>This is Heading 1</h1>
<h2>This is Heading 2</h2>
<h3>This is Heading 3</h3>
<h4>This is Heading 4</h4>
<h5>This is Heading 5</h5>
<h6>This is Heading 6</h6>
Output:
HTML Paragraphs
HTML paragraphs are defined with the <p> tag:
Example:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML COMMENTS
● It is a simple piece of code that is ignored by web browsers i.e., not displayed by the
browser.
● It helps the coder and reader to understand the piece of code used, especially in
complex source code.
● Syntax : <!-- –>
Example:
<!-- Write your comments here -->
Background Color
The CSS background-colour property defines the background colour for an HTML element.
Example:
<body>
Text Color
The CSS color property defines the text color for an HTML element:
Example:
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
Output:
Fonts
The CSS font-family property defines the font to be used for an HTML element:
Example:
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
Output:
Text Size
The CSS font-size property defines the text size for an HTML element:
Example:
<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>
Output:
Exercise
1. Create a basic HTML page with a title, a heading, and a paragraph.
2. Change the background color of the page.
3. Style the heading with a different color and font size.
4. Style the paragraph with padding and a different text color.
5. Use a style block (within <style> tags) to write your styles.
2.5 HTML Tables
HTML tables allow web developers to arrange data into rows and columns.
Example:
Example:
<table>
<tr>
<th>Name</th>
<th>Class</th>
<th>ID</th>
</tr>
<tr>
<td>Aanya Sharma</td>
<td>Grade 11</td>
<td>2024A001</td>
</tr>
</table>
Table Cells
Each table cell is defined by a <td> and a </td> tag.
Example:
<table>
<tr>
<td>Aanya Sharma</td>
<td>Grade 11</td>
<td>2024A001</td>
</tr>
</table>
Table Rows
Each table row starts with a <tr> and ends with a </tr> tag.
Example:
<table>
<!-- Header Row -->
<tr>
<th>Name</th>
<th>Class</th>
<th>ID</th>
</tr>
Tag Description
Exercise
OUTPUT:
The HTML <ul> tag defines an unordered (bulleted) list.The list items will be marked with bullets
(small black circles) by default.
Value Description
<ul style="list-style-type:circle;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Output:
Like bulleted lists, numbered lists use two types of tags.The entire list is surrounded by the
<ol> and </ol> tags. The “ol” here is short for ordered list.
Example:
<head>
<title>Ordered List Example</title>
</head>
<body>
<h1>Steps to Make a Cup of Tea</h1>
<ol>
<li>Boil water</li>
<li>Add tea leaves or a tea bag</li>
<li>Let it brew for a few minutes</li>
<li>Pour into a cup</li>
<li>Add sugar or milk as desired</li>
</ol>
</body>
Output:
The HTML <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.The
list items will be marked with numbers by default.
Type Description
Numbers:
Example:
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Output:
<ol start="50">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Output:
HTML Description Lists
A description list is a list of terms, with a description of each term.
The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd>
tag describes each term:
Example:
<head>
<title>Description List Example</title>
</head>
<body>
<h1>Drinks</h1>
<dl>
<dt>Coffee</dt>
<dd>- Black hot drink</dd>
<dt>Milk</dt>
<dd>- White cold drink</dd>
<dt>Tea</dt>
<dd>- Brown hot drink</dd>
</dl>
</body>
Output:
Tag Description
Exercise
To test your knowledge about HTML lists I have a challenge for you. Can you create the list
given below.
Div Tag
The <div> defines a division or a section in an HTML document.
The <div> element is often used as a container for other HTML elements.
By default, browsers always place a line break before and after the <div> element. However,
this can be changed with CSS.
Example:
<head>
<title>Div Styling Example</title>
</head>
<body>
<div style="background-color: blue;">
<p>Welcome to our online learning platform!</p>
</div>
Span Tag
The <span> tag is an inline container used to mark up a part of a text, or a part of a document.
Whenever you use this tag, your text remains in the same line instead of going to the second
line. The formatting that remains between this tag just applies to it.
Semantic HTML
Semantic HTML is the use of HTML markup to reinforce the meaning of the information in
web pages and web applications rather than merely to define its presentation or look.This helps
the webpage be more accessible to people and search engines also use this information to look
for appropriate results. The tags shown going forward were introduced in the HTML5 standard
and fall in the semantic category.
Section Tag
The HTML <section> tag is used to define sections in a document. When you put your content
on a web page, it may contains many chapters, headers, footers, or other sections on a web
page
Example:
<head>
<title>Section Example</title>
</head>
<body>
<section>
<h2>Global Warming</h2>
<p>Global warming refers to the long-term rise in Earth's average temperature due to
human activities such as burning fossil fuels, deforestation, and industrial processes. This
phenomenon is a significant contributor to climate change and has led to severe
environmental consequences.</p>
</section>
</body>
Output:
Article Tag
Example:
<head>
<title>Article Example</title>
</head>
<body>
<article>
<h2>Google Chrome</h2>
<p>Google Chrome is a web browser developed by Google. It is known for its speed,
simplicity, and security, and has become the most popular browser globally since its release in
2008.</p>
</article>
</body>
OUTPUT :
Nav Tag
The <nav> tag defines a set of navigation links.
In most cases the navigation is shown below the header. But it can also be used in the sidebar.
Navigation is also displayed on all the pages of your website, just like the header. So that the
user can access important parts like home page, services etc. from any place in the website.
Example:
<nav>
<a href="https://www.homepage.com">HOME PAGE</a>
<a href="https://www.academic.com">ACADEMIC</a>
<a href="https://www.admission.com">ADMISSION</a>
<a href="https://www.contactus.com">CONTACT</a>
</nav>
Output:
Header
The <header> element represents a container for introductory content or a set of navigational
links.
A <header> element typically contains:
● One or more heading element (<h1> to <h6>)
● Logo or icon
● Authorship information
Example:
<header>
<h1>CODING</h1>
<p>Creating web page using HTML and CSS.</p>
<p>HTML stands for Hyper Text Markup Language and CSS stands for Cascading Style
Sheets.</p>
</header>
Output:
Footer Tag
Example:
<footer>
<p>Created by ABC Tech<br>
<a href="mailto:[email protected]">[email protected]</a></p>
</footer>
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample Form</title>
</head>
<body>
<h2>Sign Up Form</h2>
</form>
<!-- Form Ends here -->
</body>
</html>
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Extended Form</title>
</head>
<body>
<h2>Extended Form</h2>
<!-- Form Starts here -->
<form action="/submit" method="POST">
</form>
<!-- Form Ends here -->
</body>
</html>
Output:
Form Submission:
When the user fills out the form and clicks Submit, the data is sent to the server (as specified in
the action attribute of the <form> tag) using the method defined (usually POST for sensitive
data). In this case, the server would handle the form submission by receiving the values of the
name, email, gender, comments, and whether the terms are accepted.
Exercise
What is CSS?
CSS, or Cascading Style Sheets, is a stylesheet language used to control the presentation and
layout of web pages. It works alongside HTML to define how elements should appear on the
screen, such as their colours, sizes, positions, and overall style.
selector {
property: value;
}
Selectors
Target specific elements in the HTML:
1. Type Selector: Targets all elements of a given type.
Example:
h1 { color: red; }
2. Class Selector: Targets elements with a specific class, prefixed with ..
Example:
.example { font-size: 20px; }
3. ID Selector: Targets an element with a specific ID, prefixed with #
Example:
#unique { text-align: center; }
4. Group Selector: Targets multiple elements, separated by a comma.
Example:
h1, p { margin: 10px; }
Inline CSS
Inline CSS applies styles directly to a specific HTML element using the style attribute within the
opening tag.
Advantages
● Quick and easy to apply for small, specific changes.
● No need for additional files or <style> tags.
Disadvantages
● Not reusable across multiple elements or pages.
● Makes the HTML code cluttered and harder to maintain.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Inline CSS Example</title>
</head>
<body>
<h1 style="color: blue; font-size: 24px;">This is a heading styled with Inline CSS</h1>
<p style="background-color: yellow; padding: 10px;">This paragraph has a yellow
background and padding.</p>
</body>
</html>
Output:
Internal CSS
Internal CSS is used when styles are defined within a <style> tag inside the <head> section of
the HTML document. These styles apply only to the page where they are defined.
Advantages
● Centralized styling for the page.
● No need for external files, making it easier to manage single-page projects.
Disadvantages
● Styles cannot be reused across multiple pages.
● Increases the size of the HTML document, potentially slowing page load time.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Internal CSS Example</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: lightgray;
}
h1 {
color: green;
text-align: center;
}
p{
color: black;
font-size: 18px;
}
</style>
</head>
<body>
<h1>This is a heading styled with Internal CSS</h1>
<p>This paragraph is styled using Internal CSS.</p>
</body>
</html>
Output:
External CSS
External CSS is defined in a separate file with a .css extension. The file is linked to the HTML
document using the <link> tag in the <head> section.
Advantages
● Reusable across multiple HTML pages, ensuring consistent design.
● Keeps HTML code clean and focused on structure.
● Easy to update styles for an entire website by modifying a single file.
Disadvantages
● Requires additional HTTP requests to load the CSS file, potentially increasing load time
(can be minimized with caching).
● External files must be correctly linked; otherwise, styles won't be applied.
Example
External styles are defined within the <link> element, inside the <head> section of an HTML
page:
<!DOCTYPE html>
<html>
<head>
<title>External CSS Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>This is a heading styled with External CSS</h1>
<p>This paragraph is styled using External CSS.</p>
</body>
</html>
● An external style sheet can be written in any text editor and must be saved with a .css
extension.
● The external .css file should not contain any HTML tags.
● Here is how the "style.css" file looks:
"style.css"
body {
font-family: Verdana, sans-serif;
background-color: #f0f0f0;
}
h1 {
color: darkblue;
text-align: center;
}
p{
color: gray;
font-size: 16px;
}
Output:
Syntax
CSS comments begin with /* and end with */. Anything between these markers is considered a
comment.
Single-Line Comment
Example:
.CSS
body {
background-color: lightblue; /* Set the background color of the page */
}
Multi-Line Comment
.CSS
/*
This section styles the header of the webpage.
It sets the font size, color, and text alignment.
*/
h1 {
font-size: 24px;
color: navy;
text-align: center;
}
Best Practices
● Use comments to clarify complex or important code.
● Avoid overusing comments for obvious styles to keep your CSS clean.
● Use multi-line comments for detailed explanations and single-line comments for short
notes.
Comments are a vital part of writing maintainable and collaborative CSS code. They improve
readability and make it easier to update or debug styles in the future.
2. Hexadecimal Colors
● Represented as #RRGGBB, where RR, GG, and BB are hexadecimal values for red, green,
and blue.
3. RGB Colors
● Use rgb() to define red, green, and blue values between 0 and 255.
Text Colour
● You can set the colour of the text.
p{
color: blue; /* Sets text color */
}
Background Color
● You can change the background colour according to you.
body {
background-color: #f0f0f0; /* Light gray background */
}
Border Color
● You can set the colour of the border colour.
div {
border: 2px solid rgb(255, 165, 0); /* Orange border */
}
Opacity
● To apply transparency to an entire element, use the opacity property (value between 0 and 1).
div {
background-color: blue;
opacity: 0.5; /* 50% transparent */
}
Values:
● left: Aligns text to the left.
● right: Aligns text to the right.
● center: Centers the text.
● justify: Aligns text to both left and right, adding space between words.
Example:
<!DOCTYPE html>
<html>
<head>
<style>
.left {
text-align: left;
}
.center {
text-align: center;
}
.right {
text-align: right;
}
.justify {
text-align: justify;
}
</style>
</head>
<body>
<p class="left">This text is left-aligned.</p>
<p class="center">This text is center-aligned.</p>
<p class="right">This text is right-aligned.</p>
<p class="justify">This text is justified. It stretches the text so that it aligns with both left
and right margins.</p>
</body>
</html>
Output:
2. Horizontal Alignment
The margin property can align elements horizontally when combined with auto.
Example:
<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 200px;
height: 100px;
background-color: lightblue;
margin: 0 auto; /* Horizontally centers the block */
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
Output:
3. Vertical Alignment
The vertical-align property aligns inline or table-cell elements vertically.
Values:
● top: Aligns to the top.
● middle: Aligns to the middle.
● bottom: Aligns to the bottom.
Example:
<!DOCTYPE html>
<html>
<head>
<style>
.container {
height: 100px;
display: table;
}
.text {
display: table-cell;
vertical-align: middle;
background-color: lightgray;
}
</style>
</head>
<body>
<div class="container">
<div class="text">Vertically Centered Text</div>
</div>
</body>
</html>
Output:
4. Flexbox Alignment
Using the CSS display: flex; property provides powerful alignment options.
Example:
<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: flex;
justify-content: center; /* Horizontal alignment */
align-items: center; /* Vertical alignment */
height: 100vh;
background-color: lightgreen;
}
.box {
width: 100px;
height: 100px;
background-color: coral;
}
</style>
</head>
<body>
<div class="container">
<div class="box"></div>
</div>
</body>
</html>
Output:
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Links Example</title>
<style>
/* Style for unvisited links */
a:link {
color: blue; /* Blue for unvisited links */
text-decoration: none; /* Removes underline */
font-weight: bold;
}
Visit Google
Explanation
● Unvisited Link (:link): Links that the user hasn't clicked yet are styled in blue and appear
bold without underlines.
● Visited Link (:visited): Links that the user has clicked are styled in purple.
● Hovered Link (:hover): When the mouse pointer hovers over a link, it turns orange and
gets an underline.
● Active Link (:active): While clicking on a link, it temporarily turns red.
● Focused Link (:focus): When the link is focused (e.g., using the Tab key), it shows a teal
outline
3.8 CSS for Images
CSS provides numerous properties to style images, enhancing their appearance, positioning,
and behaviour on a webpage. With CSS, you can control the size, alignment, borders, effects,
and more for images.
/* Hover Effect */
.image3 {
width: 300px;
height: auto;
transition: transform 0.3s, filter 0.3s;
}
.image3:hover {
transform: scale(1.1);
filter: brightness(1.2);
}
</style>
</head>
<body>
<h1>CSS Images Example</h1>
<p>Styled images using CSS:</p>
<div>
<h3>Basic Styled Image</h3>
<img src="https://via.placeholder.com/300x200" alt="Sample Image" class="image1">
</div>
<div>
<h3>Circular Image</h3>
<img src="https://via.placeholder.com/150" alt="Sample Image" class="image2">
</div>
</body>
</html>
Explanation
1. Basic Styling (.image1):
● The image is resized to a width of 300px with a proportional height.
● It has a solid border, rounded corners, and a shadow for a 3D effect.
2. Circular Image (.image2):
● The image is made circular using border-radius: 50%.
● It has a colored border for emphasis.
Output: