Professional Documents
Culture Documents
in
Internet: Internet is the network of network, linking different type of computers all over the
world.
Features of Internet
Advantages of Internet
Digital Marketing − We are making our websites and making business online.
Net Banking Services − Banking services such as payment, debit, credit, changing
our details, and scheduling payment are an integral part of secure payment.
Productive Collaboration − As we experienced, after the Covid pandemic, we have
worked from home and made things work better than ever before by connecting
through video conferencing and saving mobility.
Disadvantages of Internet
Wastage of time − considering today’s lifestyle, one prominent advantage of the
Internet is addiction. People are getting addicted to the internet, watching videos and
reels without realizing they are wasting so much of their time.
Cybercrime − It is increasing rapidly as more information is shared and getting
leaked.
Accessibility of pornographic content − It is accessible to even children since
there is complex information shared every day and it is hard to figure out the source
of these images and videos. This is a big concern regarding children and their minds,
parental security is necessary on mobile phones being used by children.
Identity theft − It is one major concern on a bigger level such as higher
organizations, government, and private sectors.
Increase in cyber-attacks in the banking sector and corporate sector −
Information is getting leaked, shared, and misused for harm, theft, privacy violation,
and harassment.
Fake Information or Misleading − People nowadays can easily manipulate any
information and reclaim it to be true this could mislead people and their reliability
towards information shared.
Internet Protocol: Internet Protocols are a set of rules that governs the communication and
exchange of data over the internet.
6. TELNET (Terminal Network): TELNET is a standard TCP/IP protocol used for virtual
terminal service given by ISO. This enables one local machine to connect with
another.
7. POP3 (Post Office Protocol 3): POP3 stands for Post Office Protocol version 3. This
protocol helps us to retrieve and manage emails from the mailbox on the receiver
mail server to the receiver’s computer.
WWW: The World Wide Web is commonly known as the web. The WWW was initiated by
CERN (European library for Nuclear Research) in 1989.
WWW can be defined as the collection of different websites around the world, containing
different information shared via local servers (or computers).
History:
It is a project created, by Timothy Berner Lee in 1989, for researchers to work together
effectively at CERN. is an organization, named the World Wide Web Consortium (W3C),
which was developed for further development of the web. This organization is directed by
Tim Berner’s Lee, aka the father of the web.
The Client-server model is a distributed application structure that partitions task or workload
between the providers of a resource or service, called servers, and service requesters
called clients.
In the client-server architecture, when the client computer sends a request for data to the
server through the internet, the server accepts the request and process and delivers the
data to the client.
Client
REQUEST RESPONSE
Server
Communicating on the internet involves various methods and platforms, each serving
different purposes. Here are some common ways people communicate online:
1. Email: Electronic mail is a widely used method for sending messages, documents, and
files. It's formal and commonly used for professional communication.
2. Social Media: Platforms like Facebook, Twitter, Instagram, and LinkedIn allow users to
share updates, photos, and connect with others. Social media is also used for messaging
and commenting on posts.
3. Instant Messaging (IM): Services like WhatsApp, Telegram, and Facebook Messenger
provide real-time text, voice, and video communication, allowing people to chat with friends,
family, or colleagues.
4. Video Calls: Applications like Zoom, Skype, and Google Meet enable face-to-face
communication over the internet, facilitating virtual meetings, interviews, and social
interactions.
5. Forums and Discussion Boards: Websites like Reddit, Quora, and various niche forums
provide platforms for discussions on specific topics. Users can ask questions, share
information, and engage in conversations.
6. Blogs and Microblogging: Platforms like WordPress, Medium, and Twitter enable users to
share thoughts, ideas, and updates. Microblogging focuses on short, concise posts.
7. Collaborative Platforms: Tools like Google Drive, Microsoft Teams, and Slack support
collaborative work by allowing users to share documents, collaborate on projects, and
communicate in real-time.
8. Online Chat Rooms: Websites and applications offer chat rooms where people with similar
interests can engage in discussions. These can be text-based or include multimedia
elements.
9. Gaming Platforms: Online gaming communities often have built-in chat systems that allow
players to communicate during gameplay. This can involve both text and voice chat.
10. Email Lists and Newsletters: Subscribing to email lists and newsletters keeps individuals
updated on specific topics, promotions, or events.
1. Obtaining an IP Address:
The client device needs to have a unique identifier on the internet, which is typically
done through obtaining an IP address.
If the client is connected to a home or office network, it might obtain a private IP
address from the local router using DHCP (Dynamic Host Configuration Protocol).
To communicate directly over the internet, the client may need a public IP address.
This can be obtained from the Internet Service Provider (ISP) or assigned
dynamically through technologies like DHCP or statically configured.
2. Configuring Network Settings:
Once the client has an IP address, it needs to configure its network settings to
ensure proper connectivity.
This includes setting up the IP address, subnet mask, default gateway, and DNS
(Domain Name System) servers.
The default gateway is the IP address of the router or gateway device that connects
the client to the internet.
World Wide Web: WWW can be defined as the collection of different websites around the
world, containing different information shared via local servers (or computers).
Web Browser: Web browser is a program that is used to access internet. Some commonly
used web browsers are Google chrome, Mozilla Firefox etc.
HTML: HTML stands for HyperText Markup Language. It is used to design web pages
using a markup language. HTML is a combination of Hypertext and Markup language.
Hypertext defines the link between web pages. A markup language is used to define
the text document within the tag which defines the structure of web pages.
Features of HTML:
It is easy to learn and easy to use.
It is platform-independent.
Images, videos, and audio can be added to a web page.
Hypertext can be added to the text.
It is a markup language.
Why learn HTML?
It is a simple markup language. Its implementation is easy.
It is used to create a website.
Advantages:
HTML is used to build websites.
It is supported by all browsers.
It can be integrated with other languages like CSS, JavaScript, etc.
Disadvantages:
HTML can only create static web pages. For dynamic web pages, other
languages have to be used.
A large amount of code has to be written to create a simple web page.
The security feature is not good.
HTML Tags: HTML tags are the keywords that are used to produce web pages
in various formats. Opening tags and closing tags are found in the majority of
tags.
Paired (Container) Tags: Paired tags come in pairs: an opening tag and a
closing tag. The opening tag marks the beginning of an element, and the
closing tag marks the end of that element.
Unpaired (Self-Closing) Tags: Unpaired tags are standalone tags that don't
have a separate closing tag.
HTML <head> Tag: The <head> tag in HTML is used to define the head portion
of the document which contains information related to the document.
The <head> tag contains other head elements such as <title>, <meta>, <link>,
<style> <link> etc.
The <head> element is a container.
HTML <body> Tag: The <body> tag in HTML is used to define the main
content present inside an HTML page.
BGCOLOR: Used to set the back ground colour for the document
Example:
<BODY BGCOLOR="yellow">
</BODY>
TEXT: used to set the color of the text of the document Example:
</BODY>
MARGINS: Set the left hand/right hand margin of the document LEFTMARGIN:
set the left hand margin of the document Example:
<BODY LEFTMARGIN="60">
of the page.
</BODY>
<BODY TOPMARGIN="60">
</BODY>
Style element: The HTML style attribute is used to add styles to an element,
such as color, font, size, and more.
Anchor Tag: In HTML (Hypertext Markup Language), the anchor tag <a> is
used to create hyperlinks. Hyperlinks are connections from one web page to
another, or to a different resource such as an image, a file, or another type of
document. The anchor tag defines a hyperlink and is typically used in
combination with the href attribute to specify the target URL or resource.
HYPERLINK
<HTML>
<BODY>
</BODY>
</HTML>
UNIT-II
Ordered List: The ordered lists are used for the items that have a specific
order or sequence. Each list item is numbered by default.
<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ol>
Ordered List
<HTML>
<BODY>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
</ol>
</BODY>
</HTML>
Unordered Lists: Unordered lists are used for items that do not have a specific
order. Each list item is typically marked with a bullet point by default.
<ul>
<li>Apples</li>
<li>Bananas</li>
<li>Oranges</li>
</ul>
UNORDERED LIST
<HTML>
<BODY>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
<li>Item 9</li>
<li>Item 10</li>
</ul>
</BODY>
</HTML>
Definition Lists: Definition lists are used for terms and their corresponding
definitions.
<dl>
<dt>HTML</dt>
<dd>Hypertext Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets</dd>
</dl>
DEFINATION LIST
<HTML>
<BODY>
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language is the standard markup language for
documents designed to be displayed in a web browser.</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets is a style sheet language used for describing the
presentation of a document written in HTML.</dd>
<dt>JavaScript</dt>
<dd>JavaScript is a high-level, interpreted programming language used to
make web pages interactive.</dd>
</dl>
</BODY>
</HTML>
An HTML table is defined with the “table” tag. Each table row is defined with the
“tr” tag. A table header is defined with the “th” tag. A table data/cell is defined
with the “td” tag.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Table</title>
</head>
<body>
<h2>Simple Table Example</h2>
<table border="1">
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td>Row 2, Column 3</td>
</tr>
<tr>
<td>Row 3, Column 1</td>
<td>Row 3, Column 2</td>
<td>Row 3, Column 3</td>
</tr>
</tbody>
</table>
</body>
</html>
COLSPAN
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table with Colspan</title>
</head>
<body>
<h2>Table with Colspan Example</h2>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th colspan="2">Details</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Age: 25</td>
<td>Occupation: Engineer</td>
</tr>
<tr>
<td>Mary</td>
<td colspan="2">No Details Available</td>
</tr>
<tr>
<td>Peter</td>
<td>Age: 30</td>
<td>Occupation: Teacher</td>
</tr>
</tbody>
</table>
</body>
</html>
ROW SPAN
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table with Rowspan</title>
</head>
<body>
<h2>Table with Rowspan Example</h2>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Occupation</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">John</td>
<td>25</td>
<td>Engineer</td>
</tr>
<tr>
<td>30</td>
<td>Doctor</td>
</tr>
<tr>
<td>Mary</td>
<td>40</td>
<td>Teacher</td>
</tr>
</tbody>
</table>
</body>
</html>
Row span and col span are attributes used in HTML tables to define the span of
a cell across multiple rows or columns, respectively. Here's the differentiation:
1. Row Span:
Row span determines how many rows a cell should span vertically.
It is defined using the "rowspan" attribute within the <td> or <th> tag.
When a cell has a row span, it extends vertically, covering multiple rows.
This attribute is used when a cell in a table should cover more than one
row.
Example: <td rowspan="2">Cell content</td> indicates that the cell
should span across two rows.
2. Col Span:
Col span determines how many columns a cell should span horizontally.
It is defined using the "colspan" attribute within the <td> or <th> tag.
When a cell has a col span, it extends horizontally, covering multiple
columns.
This attribute is used when a cell in a table should cover more than one
column.
Example: <td colspan="3">Cell content</td> indicates that the cell should
span across three columns.
The border attribute in HTML is used with the <table> element to specify
whether the table cells should have borders or not. It accepts a numerical value
indicating the width of the border in pixels.
<table border="1">
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
</tr>
</table>
Cellspacing in html
Cellspacing is an attribute used in HTML tables to specify the amount of space
between the cells. It defines the space, in pixels, between adjacent cells in a
table. This attribute can be added to the <table> tag to control the spacing
between cells in all rows and columns within the table.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table with Cell Spacing</title>
</head>
<body>
</body>
</html>
Cellpadding in html
Cellpadding is another attribute used in HTML tables, but it controls the space
between the cell content and the cell border. It specifies the amount of space, in
pixels, between the cell content and the cell border. This attribute can be added
to the <table> tag to control the padding inside all cells within the table.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table with Cell Padding</title>
</head>
<body>
</body>
</html>
Adding Graphics to Html Documents
The border attribute in the <img> tag in HTML specifies the width of the border
around an image.
The width and height attributes in HTML are used to specify the dimensions of
various elements such as images, tables, or other elements like <div> or
<iframe>. They define the width and height of the element in pixels.
<table align="center">
<!-- Table content -->
</table>
The alt attribute in HTML is used with the <img> element to provide alternative
text for an image, which is displayed if the image cannot be loaded or if the user
is using a screen reader.
...
In HTML, you can use an image as a hyperlink by wrapping the <img> tag
within an <a> tag.
<a href="destination.html">
</a>
Frames in HTML are a way to divide a web page into multiple sections, each
containing a separate HTML document. Each section, known as a frame, can
display its own content independently of the other frames on the page. Frames
are defined using the <frame> tag, and they are typically used within the
<frameset> tag.
The <frameset> tag is used to define the layout of the frames within the page. It
replaces the <body> tag in a traditional HTML document.
<!DOCTYPE html>
<html>
<head>
<title>Frames Example</title>
</head>
<frameset cols="25%, 75%">
<frame src="menu.html" name="menu">
<frame src="content.html" name="content">
</frameset>
</html>
The <frame> tag in HTML is used to define a single frame within a frameset.
Frames are used to divide a web page into multiple sections, each containing a
separate HTML document.
src: Specifies the URL of the HTML document to be displayed within the frame.
name: Provides a name or identifier for the frame, which can be used for
targeting purposes (e.g., in hyperlinks or form submissions).
longdesc: Specifies a URL that provides a long description of the content of
the frame.
marginwidth and marginheight: Specifies the width and height of the margins
around the frame content, respectively.
scrolling: Specifies whether scrollbars should appear if the content within the
frame exceeds the frame's dimensions. Possible values are "yes", "no", or
"auto".
frameborder: Specifies whether the frame should have a border. Possible
values are "0" (no border) or "1" (border).
noresize: Specifies whether the user can resize the frame. Possible values are
"no" (user cannot resize) or "yes" (user can resize).
sandbox: Specifies a sandboxing policy for the content within the frame,
restricting certain actions such as executing scripts or submitting forms.
<!DOCTYPE html>
<html>
<head>
<title>Frames Example</title>
</head>
<frameset cols="25%, 75%">
<frame src="menu.html" name="menu">
<frame src="content.html" name="content">
</frameset>
</html>
DHTML
DHTML stands for Dynamic Hypertext Markup Language. It's a term that was
popular in the late 1990s and early 2000s, referring to a combination of
technologies used to create interactive and dynamic websites.
DHTML typically involves the use of HTML (Hypertext Markup Language), CSS
(Cascading Style Sheets), and JavaScript to create dynamic effects and
interactivity on web pages. With DHTML, developers can manipulate the
content and presentation of a web page dynamically, in response to user
actions or other events, without needing to reload the entire page.
Style Tag
The <style> tag is an HTML element used to define internal CSS (Cascading
Style Sheets) within an HTML document. When you include CSS rules inside a
<style> tag, you can specify how HTML elements should be styled without
using an external CSS file.
<!DOCTYPE html>
<html>
<head>
<title>Internal CSS Example</title>
<style>
/* CSS rules defined within the <style> tag */
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
h1 {
color: blue;
}
p{
font-size: 16px;
}
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>