Web Application Developement-Unit 1 - 123444
Web Application Developement-Unit 1 - 123444
APPLICATION
DEVELOPEMEN
T
I-Year I-sem
R2023
UNIT 1-Introduction to Web Design
• WWW was created by Sir Tim Berners Lee in 1989 at CERN in Geneva.
• In 1990 , the first text only browsers were set up and CERN scientists
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 documents to remote sites a new
protocol was devised called HTTP (Hyper Text Transfer Protocol).
• In the fall of 1991, conferences around the world started
hearing about the promise but sparks still were not
flying.
• In 1993, there were only about 50 websites worldwide.
•A browser that allowed users 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 Browser
Definition
The first web browser was invented in 1990 by Sir Tim Berners-Lee. It was called
WorldWideWeb (no spaces) and was later renamed Nexus.
In 1993, browser software was further innovated by Marc Andreessen with the release of
Mosaic (later Netscape)
Microsoft responded with its Internet Explorer in 1995, also heavily influenced by Mosaic,
initiating the industry's first browser war.
January 1998 was also the month that Netscape started the open source Mozilla project.
Google's Chrome, the most recent major entrant to the browser market, first released
in September 2008.
How Browser
Work?
The browser main functionality is to present the web resource you
choose, by requesting it from the server and displaying it on the
browser window.
The resource is usually an HTML document, but may also be a PDF,
image,
or other type.
The location of the resource is specified by the user using a URI
(Uniform resource Identifier).
As You Write URL and hit GO button browser program sends a
request (Could I have the web page please?) to a web server program
running on the remote computer.
How Browser Cont
d.
Work?
If server was able to locate the web page, it sends the HTML file to
the web browser.
The browser picks up all the information coming in from the server
and does its best to display the web page.
A typical web page not only has text but also images and these are
separate
files that need to be transferred from the server to the browser.
The browser-server communication goes on till all the files
have been transferred to the browser.
After that Browser-server connection is disconnected and Web
Add-
Ons?
1st Browser
made
To remove confusion It
3
was later renamed as
Nexus.
Templates
Your own sub
headline
Templates Templates
What after
WorldWideWeb(Nexus)
Mozilla is
formed…
1
Netscape starts the open
source
Mozilla project.
It was produced to
2 build a competitive
open source browser.
Browser war
Intensifies
What is HTML?
•HTML stands for Hyper Text Markup Language
•HTML is the standard markup language for creating Web pages
•HTML describes the structure of a Web page
•HTML consists of a series of elements
•HTML elements tell the browser how to display the content
•HTML elements label pieces of content such as "this is a
heading", "this is a paragraph", "this is a link", etc.
What is HTML5?
HTML5 is the newest version of HTML, only recently gaining partial support by the
makers of web browsers.
It incorporates all features from earlier versions of HTML, including the stricter
XHTML.
It adds a diverse set of new tools for the web developer to use.
</body>
</html>
• The <!DOCTYPE html> declaration defines that this document is an HTML5
document
•The <head> element contains meta information about the HTML page
•The <title> element specifies a title for the HTML page (which is shown in
the browser's title bar or in the page's tab)
•The <body> element defines the document's body, and is a container for all
the visible contents, such as headings, paragraphs, images, hyperlinks,
tables, lists, etc.
What is CSS?
•CSS stands for Cascading Style Sheets
•CSS describes how HTML elements are to be displayed on screen, paper, or in other
media
•CSS saves a lot of work. It can control the layout of multiple web pages all at once
<!DOCTYPE html>
<html>
<body>
</body>
</html>
Internal CSS
An internal CSS is used to define a style for a single HTML page.
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
External CSS
An external style sheet is used to define the style for many HTML pages.
To use an external style sheet, add a link to it in the <head> section of each HTML page:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css"
>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
The external style sheet can be written in any text
editor. The file must not contain any HTML code, and
must be saved with a .css extension.
Here is what the "styles.css" file looks like:
"styles.css":
body {
background-color: powderblue;
}
h1 {
color: blue;
}
p {
color: red;
}
CSS Colors, Fonts and Sizes
Here, we will demonstrate some commonly used CSS properties. You
will learn more about them later.
The CSS color property defines the text color to be used.
The CSS font-family property defines the font to be used.
The CSS font-size property defines the text size to be used.
HTML Table -
Colspan
<!DOCTYPE html> <table style="width:100%">
<html> <tr>
<head> <th
<style> colspan="2">Name</th>
table, th, td { <th>Age</th>
border: 1px solid black; </tr>
border-collapse: collapse; <tr>
} <td>Jill</td>
</style> <td>Smith</td>
</head> <td>43</td>
<body> </tr>
<tr>
<h2>Cell that spans two <td>Eve</td>
columns</h2> <td>Jackson</td>
<p>To make a cell span more <td>57</td>
than one column, use the </tr>
colspan attribute.</p> </table>
Cell that spans two columns
To make a cell span more than one column, use the colspan
attribute.
Name Age
Jill Smith 43
Eve Jackson 57
HTML Table -
Rowspan
<!DOCTYPE html> table style="width:100%">
<html> <tr>
<head> <th>Name</th>
<style> <td>Jill</td>
table, th, td { </tr>
border: 1px solid black; <tr>
border-collapse: collapse; <th
} rowspan="2">Phone</th>
</style> <td>555-1234</td>
</head> </tr>
<body> <tr>
<td>555-8745</td>
<h2>Cell that spans two rows</h2> </tr>
<p>To make a cell span more than </table>
one row, use the rowspan </body>
attribute.</p> </html>
Cell that spans two rows
To make a cell span more than one row, use the rowspan attribute.
Name Jill
555-1234
Phone
555-8745
FRAMES
<!DOCTYPE html>
<html>
<head>
<title>Frame tag</title>
</head>
<frameset
cols="25%,50%,25%">
<frame src="list.html" >
<frame
src="onlinebus.html">
<frame src="font.html">
</frameset>