HTML Unit1
HTML Unit1
INTRODUCTION
Web Basics:
What is Internet
Internet is a global network that connects billions of computers across
the world with each other and to the World Wide Web. It uses standard
internet protocol suite (TCP/IP) to connect billions of computer users
worldwide. It is set up by using cables such as optical fibers and other
wireless and networking technologies. At present, internet is the fastest
mean of sending or exchanging information and data between
computers across the world. It is believed that the internet was
developed by "Defense Advanced Projects Agency" (DARPA)
department of the United States. And, it was first connected in 1969.
What is an IP Address?
IP Address stands for Internet Protocol Address. Every PC/Local
machine is having an IP address and that IP address is provided by the
Internet Service Providers (ISPs). These are some sets of rules which
govern the flow of data whenever a device is connected to the Internet.
It differentiates computers, websites, and routers. Just like human
identification cards like Aadhaar cards, Pan cards, or any other unique
identification documents. Every laptop and desktop has its own unique
IP address for identification. It’s an important part of Internet technology.
An IP address is displayed as a set of four-digit like 192.154.3.29. Here
each number on the set ranges from 0 to 255. Hence, the total IP address
range from 0.0.0.0 to 255.255.255.255.
You can check the IP address of your laptop or desktop by clicking on
the Windows start menu -> then right-click and go to network -> in that
go to status and then Properties you can see the IP address. There are
four different types of IP addresses are available:
1. Static IP Address
2. Dynamic IP Address
3. Private IP Address
4. Public IP Address
World Wide Web (WWW)
The world wide web is a collection of all the web pages, and web
documents that you can see on the Internet by searching their URLs
(Uniform Resource Locator) on the Internet. For example,
www.geeksforgeeks.org is the URL of the GFG website, and all the
content of this site like webpages and all the web documents are stored
on the world wide Web. Or in other words, the world wide web is an
information retrieval service of the web. It provides users with a huge
array of documents that are connected to each other by means of
hypertext or hypermedia links. Here, hyperlinks are known as electronic
connections that link the related data so that users can easily access the
related information hypertext allows the user to pick a word or phrase
from text, and using this keyword or word or phrase can access other
documents that contain additional information related to that word or
keyword or phrase. World wide web is a project which is created by
Timothy Berner’s Lee in 1989, for researchers to work together
effectively at CERN. It is an organization, named World Wide Web
Consortium (W3C), which was developed for further development in the
web.
Uses of the Internet
Some of the important usages of the internet are:
WEB BROWSER
What is a Web Browser?
The web browser is an application software to explore www (World Wide
Web). It provides an interface between the server and the client and it
requests to the server for web documents and services. It works as a
compiler to render HTML which is used to design a webpage. Whenever
we search for anything on the internet, the browser loads a web page
written in HTML, including text, links, images, and other items such as
style sheets and JavaScript functions. Google Chrome, Microsoft Edge,
Mozilla Firefox, and Safari are examples of web browsers.
History of the Web Browsers
The first web browser World Wide Web was invented in the year of 1990
by Tim Berners-Lee. Later, it becomes Nexus. In the year of 1993, a new
browser Mosaic was invented by Mark Andreessen and their team. It was
the first browser to display text and images at a time on the device
screen. He also invents another browser Netscape in 1994. Next year
Microsoft launched a web browser Internet Explorer which was already
installed in the Windows operating system. After this many browsers
were invented with various features like Mozilla Firefox, Google Chrome,
Safari, Opera, etc.
How does a Web Browser Work?
A web browser helps us find information anywhere on the internet. It is
installed on the client computer and requests information from the web
server such a type of working model is called a client-server model.
Website Cookies
When we visited any website over the internet our web browser stores
information about us in small files called cookies. Cookies are designed
to remember stateful information about our browsing history. Some more
cookies are used to remember about us like our interests, our browsing
patterns, etc. Websites show us ads based on our interests’ using
cookies.
Some Popular Web Browsers
Here is a list of 7 popular web browsers:
1. Google Chrome:
Developed by Google, Chrome is one of the most widely-used web
browsers in the world, known for its speed and simplicity.
2. Mozilla Firefox:
Developed by the Mozilla Foundation, Firefox is an open-source browser
that is known for its privacy features and customization options.
3. Apple Safari:
Developed by Apple, Safari is the default browser on Mac and iOS
devices and is known for its speed and integration with other Apple
products.
4. Microsoft Edge:
Developed by Microsoft, Edge is the default browser on Windows 10 and
is known for its integration with other Microsoft products and services.
5. Tor Browser:
Developed by The Tor Project, Tor Browser is a web browser that is
designed for anonymous web browsing and is based on Mozilla Firefox.
6. Opera:
Developed by Opera Software, Opera is a web browser that is known for
its speed and built-in VPN feature.
7. Brave:
Developed by Brave Software, Brave is a web browser that is focused
on privacy and security and blocks third-party ads and trackers by
default.
The world wide web is a subset of The Internet is the superset of the world
the Internet. wide web.
The world wide web uses HTTP. The Internet uses IP Addresses.
World Wide Web Internet
WHAT IS WEBPAGE
A webpage is a document written in HTML and can be viewed on any web
browser. It is contained within the web server, which can be accessed by
entering the URL for that web page, and once it is loaded, it appears on
the user's web browser. Each webpage is linked with a unique URL; hence
two pages cannot have the same URL.
A webpage may contain text, links for other pages, graphics, videos,
etc. Moreover, it is mainly used to provide information to the user in text,
images, etc.
Let's understand some basic terms that are used with Webpage:
Since both Websites and Web pages are related to each other, some
users may use them interchangeably, but they are much different from
each other. The basic difference between them is that webpage is a
single web document, whereas a website is a collection of different
web pages. Here are some more differences between both of them:
WEBSITE WEBPAGE
A website is a collection of A webpage is a single hypertext
different web pages that are linked document.
together with hyperlinks.
The web browser requests the page on the internet. Once it is responded
to by the server, the browser interprets the markup tags and displays them
on the user's screen in the correct format.
The browser sends the request for a page or a file via an HTTP
request. The HTTP is the Hypertext Transfer Protocol, a network
protocol that allows transferring hypermedia documents over the internet
between a browser and server.
Once the request reaches the server, the HTTP server accepts the
request, finds the requested page, and sends it back to the browser
through the HTTP response. If a server is unable to find the requested
page, it returns a 404 response.
Elements of a Webpage
The main element of the webpage is a text file composed of HTML. Apart
from this, a webpage can also have the following elements:
o CSS: The CSS code is used to make the page more interactive and
control its look and feel.
o Scripts: The JavaScript code is included in a webpage to add
interactivity to the page and add more functionalities to it.
o Media: It is used to include media components such as audio,
video, and images.
o Static Webpage
o Dynamic Webpage
Static Webpage
Static webpages are those webpages that cannot be modified or altered
by the client. These are also known as stationary or flat web pages. They
are displayed on the client's browser in the same format and manner as
they are saved in the webserver. Users can only load the page and read
the information but cannot perform any change on the page.
HTML Basics
What is HTML?
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>My first paragraph. </p>
</body>
</html>
OUTPUT:
My first paragraph.
Tags Descriptions
Tags Descriptions
HTML Headings
The HTML heading tags are used to create headings for the content of a
webpage. These tags are typically placed inside the body tag. HTML
offers six heading tags, from <h1> to <h6>, each displaying the heading
in a different font size.
Syntax:
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
EXAMPLE:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
OUTPUT:
UNDERSTANGING TAGS
Example 1:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h2>Welcome To GeeksforGeeks</h2>
</body>
</html>
Output: