web_tech_unit1
web_tech_unit1
Internet is different from the World Wide Web as the World Wide Web is a network of computers and
servers created by connecting them through the internet. So, the internet is the backbone of the web as
it provides the technical infrastructure to establish the WWW and acts as a medium to transmit
information from one computer to another computer. It uses web browsers to display the information
on the client, which it fetches from web servers.
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.
ome common definitions given in the past include −
Internet-Based Services
Some of the basic services available to Internet users are −
Email − A fast, easy, and inexpensive way to communicate with other Internet users around the world.
Telnet − Allows a user to log into a remote computer as though it were a local system.
FTP − Allows a user to transfer virtually every kind of file that can be stored on a computer from one
thousands of topics.
World Wide Web (WWW) − A hypertext interface to Internet information resources.
What is WWW?
WWW stands for World Wide Web. A technical definition of the World Wide Web is − All the
resources and users on the Internet that are using the Hypertext Transfer Protocol (HTTP).
A broader definition comes from the organization that Web inventor Tim Berners-Lee helped found, the
World Wide Web Consortium (W3C): The World Wide Web is the universe of network-accessible
information, an embodiment of human knowledge.
In simple terms, The World Wide Web is a way of exchanging information between computers on the
Internet, tying them together into a vast collection of interactive multimedia resources.
What is HTTP?
HTTP stands for Hypertext Transfer Protocol. This is the protocol being used to transfer hypertext
documents that makes the World Wide Web possible.
A standard web address such as Yahoo.com is called a URL and here the prefix http indicates its
protocol
What is URL?
URL stands for Uniform Resource Locator, and is used to specify addresses on the World Wide Web. A
URL is the fundamental network identification for any resource connected to the web (e.g., hypertext
pages, images, and sound files).
protocol://hostname/other_information
The protocol specifies how information is transferred from a link. The protocol used for web resources is
HyperText Transfer Protocol (HTTP). Other protocols compatible with most web browsers include
FTP, telnet, newsgroups, and Gopher.
The protocol is followed by a colon, two slashes, and then the domain name. The domain name is the
computer on which the resource is located.
Links to particular files or subdirectories may be further specified after the domain name. The directory
names are separated by single forward slashes.
What is Website?
Currently you are on our website Tutorialspoint.com which is a collection of various pages written in
HTML markup language. This is a location on the web where people can find tutorials on latest
technologies. Similarly, there are millions of websites available on the web.
Each page available on the website is called a web page and first page of any website is called home
page for that site.
When you register a Web address, also known as a domain name, such as tutorialspoint.com you have to
specify the IP address of the Web server that will host the site.
What is ISP?
ISP stands for Internet Service Provider. They are the companies who provide you service in terms of
internet connection to connect to the internet.
You will buy space on a Web Server from any Internet Service Provider. This space will be used to host
your Website.
What is HTML?
HTML stands for Hyper Text Markup Language. This is the language in which we write web pages for
any Website. Even the page you are reading right now is written in HTML.
This is a subset of Standard Generalized Mark-Up Language (SGML) for electronic publishing, the
specific standard used for the World Wide Web.
What is Hyperlink?
A hyperlink or simply a link is a selectable element in an electronic document that serves as an access
point to other electronic resources. Typically, you click the hyperlink to access the linked resource.
Familiar hyperlinks include buttons, icons, image maps, and clickable text links.
What is DNS?
DNS stands for Domain Name System. When someone types in your domain name, www.example.com,
your browser will ask the Domain Name System to find the IP that hosts your site. When you register
your domain name, your IP address should be put in a DNS along with your domain name. Without
doing it your domain name will not be functioning properly.
What is W3C?
W3C stands for World Wide Web Consortium which is an international consortium of companies
involved with the Internet and the Web.
The W3C was founded in 1994 by Tim Berners-Lee, the original architect of the World Wide Web. The
organization's purpose is to develop open standards so that the Web evolves in a single direction
rather than being splintered among competing factions. The W3C is the chief standards body for
HTTP and HTML.
A server is a large computer that stores websites. It also has an IP address. A place where a large number
of servers are stored is called a data centre. The server accepts requests send by the client through a
browser over a network (internet) and responds accordingly.
To access the internet we need a domain name, which represents an IP address number, i.e., each IP
address has been assigned a domain name. For example, youtube.com, facebook.com, paypal.com are
used to represent the IP addresses. Domain names are created as it is difficult for a person to
remember a long string of numbers. However, internet does not understand the domain name, it
understands the IP address, so when you enter the domain name in the browser search bar, the internet
has to get the IP addresses of this domain name from a huge phone book, which is known
as DNS (Domain Name Server).
For example, if you have a person's name, you can find his phone number in a phone book by searching
his name. The internet uses the DNS server in the same way to find the IP address of the domain
name. DNS servers are managed by ISPs or similar organizations.
Now after understanding the basics, let us see how internet works?
When you turn on your computer and type a domain name in the browser search bar, your browser sends
a request to the DNS server to get the corresponding IP address. After getting the IP address, the
browser forwards the request to the respective server.
Once the server gets the request to provide information about a particular website, the data starts
flowing. The data is transferred through the optical fiber cables in digital format or in the form of light
pulses. As the servers are placed at distant places, the data may have to travel thousands of miles
through optical fiber cable to reach your computer.
The optical fiber is connected to a router, which converts the light signals into electrical signals. These
electrical signals are transmitted to your laptop using an Ethernet cable. Thus, you receive the desired
information through the internet, which is actually a cable that connects you with the server.
Furthermore, if you are using wireless internet using wifi or mobile data, the signals from the optical
cable are first sent to a cell tower and from where it reaches to your cell phone in the form of
electromagnetic waves.
The internet is managed by ICANN (Internet Corporation for Assigned Names and Numbers) located in
the USA. It manages IP addresses assignment, domain name registration, etc.
The data transfer is very fast on the internet. The moment you press enter you get the information from a
server located thousands of miles away from you. The reason for this speed is that the data is sent in
the binary form (0, 1), and these zeros and ones are divided into small pieces called packets, which
can be sent at high speed.
o Instant messaging, video conferencing, Internet Relay Chat (IRC), Internet telephony, and email are
all examples of electronic communication. These all are used through the Internet.
o Access to online degree programs, courses, and workshops for education and self-improvement.
o Searching for jobs: To advertise available positions, submit job applications, and hire candidates
identified on social networking sites like LinkedIn, both employers and applicants use the Internet.
o Online gaming
o Research
o TCP/IP Network Model: The most popular protocols for linking networks are Transmission Control
Protocol (TCP) and Internet Protocol (IP). Any communication is split up into a number of packets
that are sent from source to destination.
o File Transfer Protocol: With the help of FTP (File Transfer Protocol), a user can transfer documents,
text files, multimedia files, program files, etc., from one device to another.
o Hypertext Transfer Protocol: It is used to move a hypertext between two or more computers or
other devices. Links can be made using HTML tags and can take the form of text or graphics.
When the hypertext transfer protocol (HTTP) was developed in 1989, it enabled different computer
platforms to connect to the same Internet sites, which dramatically improved communications over
the network. The Mosaic Web browser was developed in 1993.
Over the years of its existence, the Internet has remained a constant growth and development. For
instance, IPv6 was created to provide for a significant future rise in the number of IP addresses that
could be used. In a related development, the Internet of Things (IoT) refers to the rapidly developing
environment where nearly any entity or device can be given a unique identifier (UID) and the
capability to communicate data automatically over the Internet.
country, etc. You can find restaurants, malls, or any other service near your location.
o Online Shopping: It allows you to shop online such as you can be clothes, shoes, book movie tickets,
o Online Banking: It allows you to use internet banking in which you can check your balance, receive
access. Today, many companies allow their employees to work from home.
o Entertainment: You can listen to online music, watch videos or movies, play online games.
o Cloud computing: It enables you to connect your computers and internet-enabled devices to cloud
email if required.
o Dial-Up: Users must connect their phone line to a computer system in such connections in order to
access the Internet connection. The user is unable to make or receive calls using the tier home phone
service while connected.
o Broadband: Today's most popular high-speed internet connection, broadband is offered either by
you are, you can connect to the Internet anywhere because connectivity is made possible by radio
waves. Several instances of wireless connections are provided below:
o Wi-Fi: Without the use of cables, Wi-Fi or wireless fidelity enables high-speed internet connectivity.
o Mobile Phones: In modern times, all smart phones include an Internet connectivity option that can be
availed using Internet packs and coupons. These don't require a wire or external connection as well.
o Satellite: Satellites are utilized for wireless Internet connectivity in areas Where broadband
the public files on the web servers are ordinary text files, much like the files used by
word-processing software.
To allow Web browser software to read them, the text must be formatted according to a
generally accepted standard.
The standard used on the web is Hypertext markup language (HTML).
The public files on the web servers are ordinary text files, much like the files used by
word-processing software.
To allow Web browser software to read them, the text must be formatted according to a
generally accepted standard.
The standard used on the web is Hypertext markup language (HTML).
Document Body
Text Formatting
Text styles
Document Head
There are up to six levels of headers that can be used in your document, h1 through h6.
Header 1 is the largest header and they get progressively smaller through header 6.
Document Body
The <body> element contains all the contents of an HTML document, such as text, hyperlinks,
images, tables, lists, etc.
Titles and
Footers
The <title> element defines the title of the document, and is required in all
HTML/XHTML documents.
The <title> element:
Authorship information
Copyright information
Contact information
Sitemap
related documents
Text Formatting
HTML also defines special elements for defining text with a special meaning.
HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
Some HTML tags are not closed, for example br and hr.
<br> Tag: br stands for break line, it breaks the line of the code.
<hr> Tag: hr stands for Horizontal Rule. This tag is used to put a line across the webpage.
table, tr, td, th, tbody, thead, tfoot, col, colgroup and caption
Form, input, text area, select, option, opt group, button, label, field set and legend
Document pages are usually divided into sections and subsections, which need to beemphasized.
Html provides certain Heading styles and Horizontal rules, Which helps break text into
logical sections with visual appeal.
o Heading style:<h1>,<h2>,…
o Drawing line or Horizontal rule: <hr>
Text styles
Bold <B>
Italic <I>
Underline <U>
Center <center>
Setting the style of an HTML element, can be done with the style attribute.
<tagname style="property:value;">
HTML lists allow web developers to group a set of related items in lists.
Example
Item
Item
Item
Item
1. First item
2. Second item
3. Third item
4. Fourth item
Unordered HTML
List
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items will be marked with bullets (small black circles) by default:
EXAMPLE
<!DOCTYPE html>
<html>
<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html> OUTPUT
An unordered HTML list
Coffee
Tea
milk
EXAMPLE
<!DOCTYPE html>
<html>
<body>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</html>
OUTPT
An ordered HTML list
1. Coffee
2. Tea
3. Milk
The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag
describes each term:
<!DOCTYPE html>
<html>
<body>
<dl>
<dt>Coffee</dt>
<dt>Milk</dt>
</dl>
</body>
</html>
OUTPUT
A Description List
Coffee
- black hot drink
Milk
- white cold drink
Tag Description
HTML Tables
HTML tables allow web developers to arrange data into rows and columns.
Each table row is defined with a <tr> tag. Each table header is defined with a <th> tag. Each
table data/cell is defined with a <td> tag.
<!DOCTYPE html>
<html>
<body>
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
<td>80</td>
</tr>
</table>
</body>
</html>
OUTPT
Basic HTML Table
Jill Smith 50
Eve Jackson 94
John Doe 80
When you move the mouse over a link, the mouse arrow will turn into a little hand. HTML Links
- Syntax
The HTML <a> tag defines a hyperlink. It has the following syntax:
The most important attribute of the <a> element is the href attribute, which indicates the link's destination.
The link text is the part that will be visible to the reader.
Clicking on the link text, will send the reader to the specified URL address.
Example
<!DOCTYPE html>
<html>
<body>
<h1>HTML Links</h1>
</body>
</htm>Output
HTML Links
Visit W3Schools.com!
By default, the linked page will be displayed in the current browser window. To change this, you
must specify another target for the link.
Example
<!DOCTYPE html>
<html>
<body>
<p>If target="_blank", the link will open in a new browser window or tab.</p>
</body>
</html>
Output
Example2
<!DOCTYPE html>
<html>
<body>
<h2>Image as a Link</h2>
</body>
</html>
Output
Image as a Link
HTML Images
Images can improve the design and the appearance of a web page.
Images are not technically inserted into a web page; images are linked to web pages. The
<img> tag creates a holding space for the referenced image.
The <img> tag is empty, it contains attributes only, and does not have a closing tag. The <img> tag
Syntax
<img src="url" alt="alternatetext">
The required src attribute specifies the path (URL) to the image.
Note: When a web page loads; it is the browser, at that moment, that gets the image from a web server and
inserts it into the page. Therefore, make sure that the image actually stays in the same spot in relation to
the web page, otherwise your visitors will get a broken link icon. The broken link icon and the alt text
are shown if the browser cannot find the image.
Example
<!DOCTYPE html>
<html>
<body>
<h2>HTML Image</h2>
</body>
</html>
Output
HTML Image
FRAME TAG
HTML <frame> tag define the particular area within an HTML file where another HTML web page can
be displayed.
A <frame> tag is used with <frameset>, and it divides a webpage into multiple sections or frames, and
each frame can contain different web pages.
Syntax
< frame src = "URL" >
Display Block
Usage Frames
Example 1
<html>
<head>
<title>Frame tag</title>
</head>
<frameset cols="25%,50%,25%">
<frame src="frame1.html" >
<frame src="frame2.html">
<frame src="frame3.html">
</frameset>
</html>
Output:
Frame1.html
<html>
<head>
<style>
div{
background-color: #7fffd4;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is first frame</h2>
</div>
</body>
</html>
Frame2.html
<html>
<head>
<style>
div{
background-color: #2f4f4f;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is Second frame</h2>
</div>
</body>
</html>
Frame3.html
<html>
<head>
<style>
div{
background-color: #c1ffc1;
height: 500px;
}
</style>
</head>
<body>
<div>
<h2>This is Third frame</h2>
</div>
</body> </html>