Module I
Module I
CSE505
Introduction to Web Technologies
– Introduction to PHP
1
31-Aug-25
Session Plan
• HTML
References
• Web Developers Site found online at http://www.w3schools.com/
• GeeksForGeeks: https://www.geeksforgeeks.org/html-tutorial/
2
31-Aug-25
Course Pre-Requisites
• The participants should have the knowledge of any programming
language
Web Server
Understands HTTP Protocol
It intercepts HTTP request from the client
Built on similar architecture as a classic client -server architecture
Offers different HTTP services like GET, POST etc.
Uses thread pools to service multiple concurrent requests
3
31-Aug-25
3. Cannot Resolve
DNS Server Locally? Resolve
(Local Network) from other DNS
The
Internet
Web Server
(Internet)
1. User Invokes URL
http://my.mydomain.com/ my.mydomain.com
test.html 202.68.33.47
Web Browser
PC
Database
Server
Server
Internet
Database
Server
Server
Database
Intranet
Desktop
(intranet)
4
31-Aug-25
Web Services
XML, DTD, Schema, XML DOM, SOAP, WSDL
• Both HTML and JavaScript are used for creating web interface for dynamic
contents(enterprise applications).
10
10
5
31-Aug-25
Expectations
11
11
12
12
6
31-Aug-25
What is HTML?
13
13
Start tag
14
14
7
31-Aug-25
15
</HTML>
An HTML file can be created by using a simple text editor viz
notepad, textpad, etc.,
HTML file must have an extension htm or html.
16
16
8
31-Aug-25
17
17
– <TITLE>Indicates the title of the document that is used as the window caption
– <LINK> specifies the relationship between the current document and other
documents.
18
9
31-Aug-25
• Ex: .
1. To have your page automatically reloaded every X seconds
<META HTTP-EQUIV=“REFRESH” CONTENT=X >
2.To have a different page automatically loaded after X seconds
<META HTTP-EQUIV=“REFRESH” CONTENT=“X; URL= http://address/file.html”>
3.To specify an expiration date for the page so that it will be reloaded after a certain date.
<META HTTP-EQUIV="Expires" CONTENT="Mon, 23 Sep 2024 01:21:00 GMT">
Meta Tags
19
19
5.To specify a description of your page for certain search services to use
<META HTTP-EQUIV="Description" CONTENT=“Describe your site here....”
(this is concept is heavily used to implement SEO to improve the page ranking,
although sometimes it can be misused to add content as META which are not offered
as services but still used to improve the ranking.)
• <LINK> element is used in linking external CSS which will be discussed in later
chapters.
20
20
10
31-Aug-25
– Colors are defined using a hexadecimal notation for the combination of Red, Green, and Blue
color values (RGB).
• #FF0000
• #0000FF
• #E2D974
21
21
<html>
<head>
<title>Amity University Gwalior</title>
</head>
<body bgcolor="Sky Blue">
<h1>Welcome To Introduction to Web Technologies</h1>
</body>
</html>
22
22
11
31-Aug-25
<html>
<head>
<title>Amity University Gwalior</title>
</head>
<body background="about-1.jpg">
<h1> Welcome To AUMP</h1>
</body>
</html>
23
23
<html>
<head>
<title>Amity University Gwalior</title>
</head>
<body text="Green">
<h1> Welcome To AUMP</h1>
</body>
</html>
24
24
12
31-Aug-25
<html>
<head>
<title>Global Education Center</title>
</head>
<body Bgcolor=“blue" link=“Green" vlink=“Yellow">
<h1><a href=“http://sparsh/v1">Welcome To Sparsh</a></h1>
</body>
</html>
25
25
26
26
13
31-Aug-25
27
FALSE
28
14
31-Aug-25
29
<html>
<head>
<Title>Inline and Block Level</Title>
</head>
<h1><u>Generic Courses</u></h1>
<h4><i>RDBMS</i><i>OOP</i><b>SE-IQS</b></h4>
<h1><u>Os&DB Course</u></h1>
<h4><p>HTML</p><p>Oracle</p><p>C++</p><p>Perl</p
> </h4>
</html>
30
30
15
31-Aug-25
Linking Pages
• Used to link text with other documents
• <A></A>
– HREF
– NAME (bookmarks inside the page)
– TITLE (balloon help in IE)
– TARGET (Define where the linked document will be opened)
31
31
• A relative link is created when the destination href value is relative to the
location of the current webpage
32
32
16
31-Aug-25
Lists
• UnOrdered Lists - Bullets appear
<UL> </UL> tag
<LI> tag
– TYPE attributes specifies the type of bullet
– TYPE = “disc” | “circle” | ”square”
unord_list.html (unord_list.html.HTM)
33
33
Lists
• Ordered Lists - serial numbers appear
<OL> </OL> tag
<LI> tag
– TYPE attribute controls the numbering scheme
• TYPE = 1 | A | a | I | i
ord_list.html (ord_list.html.HTM)
34
34
17
31-Aug-25
Lists
• Definition List - defines a definition list
<DL> </DL> tag
<DT> - Definition Term
<DD> - Definition Data
<dl>
<dt>Java</dt>
<dd>An Object Oriented Language</dd>
<dt>HTML</dt>
<dd>A Markup Language</dd>
</dl>
O/P: Java
An Object Oriented Language
HTML
A Markup Language def_list.html (def_list.html.HTM)
35
35
36
18
31-Aug-25
Tables
37
37
38
38
19
31-Aug-25
39
39
Creating tables 2
<TABLE WIDTH="100%" BORDER=1 BGCOLOR=gray>
<TR ALIGN=CENTER >
<TD COLSPAN=2>This cell spans 2 columns!</TD>
<TD> Cell </TD></TR>
<TR ALIGN=CENTER >
<TD ROWSPAN=3>This cell spans 3 rows!!</TD>
<TD> Cell </TD>
<TD> Cell </TD></TR>
<TR ALIGN=CENTER >
<TD> Cell </TD>
<TD> Cell </TD></TR>
<TR ALIGN=CENTER >
<TD> Cell </TD>
<TD> Cell </TD> tab2.html (tab2.html.HTM)
</TR></TABLE>
This cell spans 2 columns! Cell
Cell Cell
This cell spans 3 rows!! Cell Cell
Cell Cell
40
20
31-Aug-25
41
42
42
21
31-Aug-25
43
43
44
44
22
31-Aug-25
Images as link
Embed a demo
45
45
46
23
31-Aug-25
47
Forms
48
48
24
31-Aug-25
Forms Example
49
49
Forms Example
50
50
25
31-Aug-25
Forms
• Can be designed using <FORM></FORM> tag
<FORM NAME=“form1” ACTION="abc.asp" METHOD=GET>
</FORM>
51
51
• All elements should be named by setting a unique value to the name attribute.
• The value attribute is used to set a default value for the control.
52
52
26
31-Aug-25
– MAXLENGTH specifies max number of characters that can be entered to the control.
53
53
Form Demo
<html>
<body>
<form action=" ">
Username <input type="text" size=20 name="user"/></br>
Password <input type="password" size=20 name=“pwd"/>
</form>
<p><b>Note:</b> In password fields, the browser displays asterisks
or bullets instead of characters.</p>
</body>
</html>
54
54
27
31-Aug-25
Text Area
• Multiline text input
– <TEXTAREA NAME=“feedback” ROWS=“3” COLS=“40”>
Default text goes here
</TEXTAREA>
• ROWS is the number of rows displayed.
• COLS is the no of characters per line.
• Default text is optional
• Dose not have VALUE and MAXLENGTH attributes.
• The default text is to be put into <TEXTAREA> </TEXTAREA> tags
55
55
56
56
28
31-Aug-25
Check Box
57
Radio Buttons
<INPUT TYPE="radio" NAME="output" VALUE="screen“ checked> Screen
<INPUT TYPE="radio" NAME="output" VALUE="printer">Printer
58
58
29
31-Aug-25
59
59
60
60
30
31-Aug-25
Buttons
The Submit button
– Sends the form contents to the server when clicked
– By default only submit button can invoke the action page and send data to
server.
– <Input Type=Submit Name=cmdSubmit Value =“Submit”>
• The Reset button
– Resets all the form controls to the default state.
– <Input Type=Reset Name=cmdReset Value="Reset">.
• A button
– No predetermined action like submit or reset.
– Script should be written to make it work. (this will be covered in later
chapters)
– <Input Type=Button Name=cmdAdd Value=“Click Me">.
61
61
Form example
62
62
31
31-Aug-25
63
Frames
• Divides a browser window into number of panes.
• Each frame may contain a different document.
• <FRAMESET> element defines a set of frames.
– Should preclude the <BODY> element.
– <FRAMESET> </FRAMESET>
• ROWS
• COLS
• <FRAME > element defines an individual frame
– NAME = “frame name”
– SRC=“url”
– SCROLLING = auto / yes / no
– NORESIZE
64
64
32
31-Aug-25
Frames Demo
<html>
<frameset cols="50%,*">
<frame name="frame1" src="block_inline_level_1.html">
<frame name="frame2" src="html_structure.html">
</frameset>
</html>
65
65
Adding Frames
<HTML>
<!--comment: Two cols with 30% and 70% each -->
<FRAMESET COLS=“30%,*">
<!-- Comment: * is indicating the remaining space (here 70%) -->
<FRAME SRC=“Frame1.htm">
<FRAME SRC=“Frame2.htm">
</FRAMESET>
<HTML>
<!-- Comment: no need to use the <BODY> tag at all -->
66
66
33
31-Aug-25
Nesting Frames
<HTML>
<FRAMESET COLS="40%,*">
<FRAMESET ROWS="35%,*">
<FRAME SRC="Cell1.htm">
<FRAME SRC="Cell2.htm">
</FRAMESET>
<FRAME SRC="Cell3.htm">
</FRAMESET>
</HTML>
67
67
Frame targeting
• Ensure frame naming
<FRAMESET COLS="*, 20%">
<FRAME NAME="Frame1” SRC="Cell_1.htm">
<FRAME NAME="Frame2” SRC="Cell_2.htm">
</FRAMESET>
• Set the TARGET attribute for one hyperlink. Here the target value is case sensitive.
<A HREF="file.htm" TARGET="Frame1">Link Text</A>
<A HREF="file.htm" TARGET="_top">Link Text</A>
• If the TARGET attribute is specified in the <A> tag then that target will be used.
68
68
34
31-Aug-25
69
69
• Floating Frames
• Floating frames are scrollable areas that appear in a HTML document. Unlike regular
frames they cannot be resized.
• Not attached to the sides of the browser.
– Acts similar to an embedded object.
– Occurs within the <BODY> . inframe.html (inframe.html.HTM)
– <IFRAME> </IFRAME> tag.
– <IFRAME SRC="bot.html" WIDTH=“450” HEIGHT=“400”></IFRAME>
70
70
35
31-Aug-25
71
71
Summary
• HTML structure
• Different elements and attributes
• Creating tables
• Images as links and Image maps
• Interaction with the client using forms.
• Working with Frame and Framesets
• Working with Inline Frames.
72
72
36
31-Aug-25
73
73
• Paragraphs
– <P> </P> - used to create paragraphs.
• Line Breaks
– <BR> - to insert returns or blank lines in the document.
– e.g. :<P>This <BR> is a para<BR>graph with line breaks</P>
• Horizontal Lines
– <HR> - used to draw a horizontal line across the web page.
– e.g: <HR ALIGN = “right” WIDTH = “50%” NOSHADE >
74
74
37
31-Aug-25
75
75
mailto : Link
• mailto links allow people to send email directly from a web page.
• When the user clicks on the mailto link it opens in the Email client installed on the system.
(eg : Outlook Express)
• Eg: <A href="mailto:someone@gwa.amity.edu">Send a Mail</a>
• Mail can be sent to additional recipients either as carbon copies (cc) or blind carbon copies
(bcc).
• <a href="mailto:one@gwa.amity.edu?cc=oneelse@gwa.amity.edu">Email Us</a>
• The subject and body can be added to the email using body and subject parameters. Each
parameter should be separated using ‘&’.
• Eg:<a href="mailto:someone@gwa.amity.edu?CC=me@gwa.amity.edu&
Subject=Please Try&Body=Hi%20All%20%0DI How are you">this link</a> email.html (email.html.HTM)
• To create spaces between words you will have to use hex code - for example '%20' between
each word, and to create new lines will mean adding '%0D'.
76
76
38