Web Technology Notes
Web Technology Notes
WEB TECHNOLOGY
1ST UNIT
Web development -
Web development refers to the creating, building, and maintaining of
websites. It includes aspects such as web design, web publishing, web
programming, and database management. It is the creation of an application
that works over the internet i.e. websites.
The word Web Development is made up of two words, that is:
1- Web: It refers to websites, web pages or anything that works over the
internet.
2- Development: It refers to building the application from scratch.
History of WWW-
1- WWW is created by Sir Tim Berners Lee in 1989 at CERN in Geneva.
2- In 1990, the first text only browsers were setup and CERN scientist could
access hypertext files and other information at CERN. HTML was based on
a subset of the standard generalized markup language (SGML). To transfer
HTML document to remote sites a new protocol was devised called HTTP
(Hyper Text Transfer Protocol).
3- In the fall of 1991, conference goes around the work started hearing
about the promise but sparks still were not flying.
4- In 1993, there are only about 50 websites worldwide. A browser that
allowed user to take advantage of the web's graphical capabilities was
developed at the National center for Super Computing application (NCSA).
NCSA called the browser Mosaic.
Web Application-
1- A web application (or web app) is application software that runs on a web
server, unlike computer-based software programs that are run locally on
the operating system (OS) of the device. Web applications are accessed by
the user through a web browser with an active network connection.
2- These applications are programmed using a client–server modeled
structure—the user ("client") is provided services through an off-site
server that is hosted by a third-party.
3- Examples of commonly-used web applications include: web-mail, online
retail sales, online banking, and online auctions.
Web design-
1- Web design refers to the design of websites that are displayed on the
internet. It usually refers to the user experience aspects of website
development rather than software development.
2- Web design used to be focused on designing websites for desktop
browsers; however, since the mid-2010s, design for mobile and tablet
browsers has become ever-increasingly important.
3- A web designer works on the appearance, layout, and, in some cases,
content of a website. Appearance, for instance, relates to the colors,
font, and images used. Layout refers to how information is structured
and categorized.
4- A good web design is easy to use, aesthetically pleasing, and suits the
user group and brand of the website. Many WebPages are designed with
a focus on simplicity, so that no extraneous information and functionality
that might distract or confuse users appears.
5- As the keystone of a web designer’s output is a site that wins and fosters
the trust of the target audience, removing as many potential points of
user frustration as possible is a critical consideration.
Web hosting-
1- A Web host is an organization that sells or leases memory space on its
servers. Web hosting is typically done in a data center, which provides
services to clients that enable them to publish websites on the Internet.
2- A Web host can also provide data center space and an Internet
connection for servers owned by others. The service provided by a Web
host is called Web hosting.
Html introduction-
HTML is an acronym which stands for Hyper Text Markup Language which is
used for creating web pages and web applications. Let's see what is meant by
Hypertext Markup Language, and Web page.
Hyper Text- HyperText simply means "Text within Text." A text has a link
within it, is a hypertext. Whenever you click on a link which brings you to a new
webpage, you have clicked on a hypertext. Hypertext is a way to link two or
more web pages (HTML documents) with each other.
Web Page- A web page is a document which is commonly written in HTML and
translated by a web browser. A web page can be identified by entering an URL.
A Web page can be of the static or dynamic type. With the help of HTML only,
we can create static web pages.
Hence, HTML is a markup language which is used for creating attractive web
pages with the help of styling, and which looks in a nice format on a web
browser. An HTML document is made of many HTML tags and each HTML tag
contains different content.
Example-
1. <!DOCTYPE>
2. <html>
3. <head>
4. <title>Web page title</title>
5. </head>
6. <body>
7. <h1>Write Your First Heading</h1>
8. <p>Write Your First Paragraph.</p>
9. </body>
10.</html>
Syntax
<tag> content </tag>
Example-
<!DOCTYPE html>
<html>
<head>
<title>Div tag</title>
<style>
div {
color: white;
margin: 2px;
font-size: 25px;
}
.div1 {
background-color: rgb(142, 142, 245);
}
.div2 {
background-color: #9af19a;
}
.div3 {
background-color: rgb(232, 232, 137)
}
.div0 {
background-color: #009900;
}
</style>
</head>
<body>
<div class="div1"> div tag </div>
<div class="div2"> div tag </div>
<div class="div3"> div tag </div>
<div class="div0"> div tag </div>
</body>
</html
Output-
Example-
<!DOCTYPE html>
<html>
<head>
<title>span tag</title>
</head>
<body>
<p>
<span style="background-color:lightgreen">
GeeksforGeeks
</span>
is A Computer Science Portal where you can
<span style="color:blue;">
Publish
</span> your own
<span style="background-color:lightblue">
articles
</span>
and share your knowledge with the world!!
</p>
</body>
</html
Output-
Html List-
An HTML list is a record of related information used to display the data or any
information on web pages in the Ordered or Unordered form.
Example-
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h2>Welcome To GeeksforGeeks Learning</h2>
<h5>List of available courses</h5>
<ul>
<li>Data Structures & Algorithm</li>
<li>Web Technology</li>
<li>Aptitude & Logical Reasoning</li>
<li>Programming Languages </li>
</ul>
<h5>Data Structures topics</h5>
<ol>
<li>Array</li>
<li>Linked List</li>
<li>Stacks</li>
<li>Queues</li>
<li>Trees</li>
<li>Graphs</li>
</ol>
</body>
</html>
Output-
Syntax:
<ul> list of items </ul>
Attribute: This tag contains two attributes which are listed below:
compact: It will render the list smaller.
type: It specifies which kind of marker is used in the list.
Example-
<!DOCTYPE html>
<html>
<body>
<h2>Grocery list</h2>
<ul>
<li>Bread</li>
<li>Eggs</li>
<li>Milk</li>
<li>Coffee</li>
</ul>
</body>
</html
Output-
HTML Ordered List-
In an ordered list, all list items are marked with numbers by default. An
ordered list starts with the <ol> tag. Each list item starts with the “li” tag.
Syntax:
<ol>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
</ol>
Attributes:
compact: It defines the list should be compacted (compact attribute is not
supported in HTML5. Use CSS instead.).
reversed: It defines that the order will be descending.
start: It defines from which number or alphabet the order will start.
type: It defines which type(1, A, a, I, and i) of the order you want in your list
of numeric, alphabetic, or roman numbers.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML ol tag</title>
</head>
<body>
<h1 style="color: green">GeeksforGeeks</h1>
<h3>HTML ol tag</h3>
<p>reversed attribute</p>
<ol reversed>
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
</ol>
<p>start attribute</p>
<ol start="5">
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
</ol>
<p>type attribute</p>
<ol type="i">
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
</ol>
</body>
</html>
Output-
Example-
<!DOCTYPE html>
<html>
<body>
<h2>A Description List</h2>
<dl>
<dt>Coffee</dt>
<dd>- 500 gms</dd>
<dt>Milk</dt>
<dd>- 1 ltr Tetra Pack</dd>
</dl>
</body>
</html
Output -
Syntax :
<img src="" alt="" width="" height="">
Example-
<!DOCTYPE html>
<html>
<img src=
"https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png"
width="420" height="100"
alt="Geeksforgeeks.org">
</body>
</html>
Output-