Professional Documents
Culture Documents
2
Please read this disclaimer before proceeding:
This document is confidential and intended solely for the educational purpose of
RMK Group of Educational Institutions. If you have received this document through
email in error, please notify the system manager. This document contains
proprietary information and is intended only to the respective group / learning
community as intended. If you are not the addressee you should not disseminate,
distribute or copy through e-mail. Please notify the sender immediately by e-mail if
you have received this document by mistake and delete this document from your
system. If you are not the intended recipient you are notified that disclosing,
copying, distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
22CS102
SOFTWARE DEVELOPMENT PRACTICES
4
1. CONTENTS
Page
S. No. Contents
No
1 Contents 5
2 Course Objectives 6
3 Pre requisites 7
4 Syllabus 8
5 Course outcomes 11
7 Lecture Plan 13
9 Lecture Notes 17
10 Assignments 80
12 Part B Questions 85
16 Assessment Schedule 89
5
2. COURSE OBJECTIVES
6
3. PRE REQUISITES
6
4. Syllabus
SOFTWARE DEVELOPMENT PRACTICES L T P C
22CS102 (Theory Course with Laboratory Component) 3 0 2 4
(Common to All Branches)
OBJECTIVES:
The Course will enable learners to:
To discuss the essence of agile development methods.
To set up and create a GitHub repository.
To create interactive websites using HTML
To design interactive websites using CSS.
To develop dynamic web page using Java script.
UNIT I AGILE SOFTWARE DEVELOPMENT AND Git and GitHub 15
Software Engineering Practices – Waterfall Model - Agility – Agile Process – Extreme
Programming - Agile Process Models – Adaptive Software Development – Scrum – Dynamic
Systems Development Method – Crystal – Feature Driven Development – Lean Software
Development – Agile Modeling – Agile Unified Process – Tool set for Agile Process.
Introduction to Git –Setting up a Git Repository - Recording Changes to the Repository -
Viewing the Commit History - Undoing Things - Working with Remotes -Tagging - Git Aliases -
Git Branching - Branches in a Nutshell - Basic Branching and Merging - Branch Management -
Branching Workflows - Remote Branches - Rebasing.
Introduction to GitHub – Set up and Configuration - Contribution to Projects, Maintaining a
Project – Scripting GitHub.
List of Exercise/Experiments:
1. Form a Team, Decide on a project:
a) Create a repository in GitHub for the team.
b) Choose and follow a Git workflow
Each team member can create a StudentName.txt file with contents about
themselves and the team project
Each team member can create a branch, commit the file with a proper
commit message and push the branch to remote GitHub repository.
Team members can now create a Pull request to merge the branch to
master branch or main development branch.
The Pull request can have two reviewers, one peer team member and one
faculty. Reviewers can give at least one comment for Pull Request
updating.
Once pull request is reviewed and merged, the master or main
development branch will have files created by all team members.
2. Create a web page with at least three links to different web pages. Each of the web
pages is to be designed by a team member. Follow Git workflow, pull request and peer
reviews.
3. Form a Team, Decide on a project:
c) Create a repository in GitHub for the team.
d) Choose and follow a Git workflow
Each team member can create a StudentName.txt file with contents about
themselves and the team project
Each team member can create a branch, commit the file with a proper
commit message and push the branch to remote GitHub repository.
Team members can now create a Pull request to merge the branch to
master branch or main development branch.
The Pull request can have two reviewers, one peer team member
and one faculty. Reviewers can give at least one comment for Pull
Request updation.
Once pull request is reviewed and merged, the master or main
development branch will have files created by all team members.
4. Create a web page with at least three links to different web pages. Each of the web
pages is to be designed by a team member. Follow Git workflow, pull request and
peer reviews.
UNIT II HTML 15
Introduction – Web Basics – Multitier Application Architecture – Cline-Side Scripting versus
Server-side Scripting – HTML5 – Headings – Linking – Images – Special Characters and
Horizontal Rules – Lists – Tables – Forms – Internal Linking – meta Elements – Form input
Types – input and datalist Elements – Page-Structure Elements.
List of Exercise/Experiments:
1. Create web pages using the following:
Tables and Lists
Image map
Forms and Form elements
Frames
UNIT III CSS 15
Inline Styles – Embedded Style Sheets – Conflicting Styles – Linking External Style Sheets –
Positioning Elements – Backgrounds – Element Dimensions – Box Model and Text Flow –
Media Types and Media Queries – Drop-Down Menus – Text Shadows – Rounded Corners –
Colour – Box Shadows – Linear Gradients – Radial Gradients – Multiple Background Images
– Image Borders – Animations – Transitions and Transformations – Flexible Box Layout
Module – Multicolumn Layout.
List of Exercise/Experiments:
Apply Cascading style sheets for the web pages created.
UNIT IV JAVASCRIPT BASICS 15
Introduction to Scripting – Obtaining user input – Memory Concepts – Arithmetic – Decision
Making: Equality and Relational Operators – JavaScript Control Statements – Functions –
Program Modules – Programmer-defined functions – Scope rules – functions
– Recursion – Arrays – Declaring and Allocating Arrays – References and Reference
Parameters – Passing Arrays to Functions – Multidimensional arrays.
List of Exercise/Experiments:
Form Validation (Date, Email, User name, Password and Number validation) using
JavaScript.
UNIT V JAVASCRIPT OBJECTS 15
Objects – Math, String, and Date, Boolean and Number, document Object – Using JSON to
Represent objects – DOM: Objects and Collections – Event Handling.
List of Exercise/Experiments:
Implement Event Handling in the web pages.
Mini Projects-Develop any one of the following web applications (not limited to one) using above
technologies.
a. Online assessment system
b. Ticket reservation system
c. Online shopping
d. Student management system
e. Student result management system
f. Library management
g. Hospital management
h. Attendance management system
i. Examination automation system
j. Web based chat application
TOTAL: 75 PERIODS
OUTCOMES:
Upon completion of the course, the students will be able to:
CO1: Apply agile development methods in software development practices.
CO2: Set up and create a GitHub repository.
CO3: Develop static and dynamic webpages using HTML.
CO4: Design interactive personal or professional webpages using CSS.
CO5: Develop web pages using Java script with event-handling mechanism.
TEXT BOOKS:
1. Roger S. Pressman, “Software Engineering: A Practitioner‘s Approach”, McGraw Hill
International Edition, Nineth Edition, 2020.
2. Scott Chacon, Ben Straub, “Pro GIT”, Apress Publisher, 3rd Edition, 2014.
3. Deitel and Deitel and Nieto, “Internet and World Wide Web - How to Program”, Pearson, 5th
Edition, 2018.
REFERENCES:
1. Roman Pichler, “Agile Product Management with Scrum Creating Products that Customers
Love”, Pearson Education, 1 st Edition, 2010.
2. Jeffrey C and Jackson, “Web Technologies A Computer Science Perspective”, Pearson
Education, 2011.
3. Stephen Wynkoop and John Burke, “Running a Perfect Website”, QUE, 2nd Edition, 1999.
4. Chris Bates, “Web Programming – Building Intranet Applications”, 3rd Edition, Wiley
Publications, 2009.
5. Gopalan N.P. and Akilandeswari J., “Web Technology”, Second Edition, Prentice Hall of India,
2014.
6. https://infyspringboard.onwingspan.com/web/en/app/toc/
lex_auth_013382690411003904735_shared/overview
7. https://infyspringboard.onwingspan.com/web/en/app/
toc/lex_auth_0130944214274703362099_shared/overview
LIST OF EQUIPMENTS:
1. Systems with either Netbeans or Eclipse
2. Java/JSP/ISP Webserver/Apache
3. Tomcat / MySQL / Dreamweaver or
4. Equivalent/ Eclipse, WAMP/XAMP
5. Course Outcomes
K6 Evaluation
K5 Synthesis
K4 Analysis
K3 Application
K2 Comprehension
K1 Knowledge
11
6. CO-PO/PSO Mapping
CO1 1 3 3 3 1 1 1 - - 2 1 2 1 - - -
CO2 2 3 2 3 1 2 1 - - 2 1 2 1 - - -
CO3 3 3 3 3 1 2 1 - 1 2 1 2 1 - - -
CO4 4 3 3 3 1 2 1 - - 2 1 2 1 - - -
CO5 5 3 3 3 1 2 1 - 1 2 1 2 1 - - -
CO 3 3 3 1 2 1 - 1 2 1 2 1 - - -
11/15/202 12
2
7. LECTURE PLAN : UNIT – II
HTML
UNIT – I I HTML
Delivery Remark
Highest Resources
Propose Actual Cognitive
S. d Lectur Level Mode of Delivery
Topic CO LU Outcomes
No Lecture e Date
Date
26.10.2023 26.10.2023
1 MD1, MD4,
Introduction K1 T1 Introduction
MD5
27.09.2023 Web Basics 27.09.2023 Web Basics
2 MD1, MD4,
Multitier Application K3 T1 Multitier Application
MD5
Architecture Architecture
29.09.2023 Client Side Scripting 29.09.2023 MD1, MD4, Client Side Scripting
3
versus Server- MD5 versus Server-
side Scripting K3 T1 side Scripting
13 12.10.2023 Form input Types 12.10.2023 K3 MD1, MD4, Form input Types
MD5
T1
14 13.10.2023 Input and datalist 13.10.2023 K3 MD1, MD4, Input and datalist
Elements MD5 T1 Elements
15 14.10.2023 Page 14.10.2023 K3 MD1, MD4, Page
Structure Elements. MD5 T1 Structure
Elements.
13
• ASSESSMENT COMPONENTS MODE OF DELIVERY
• AC 1. Unit Test MD 1. Oral presentation
• AC 2. Assignment MD 2. Tutorial
• AC 3. Course Seminar MD 3. Seminar
• AC 4. Course Quiz MD 4. Hands On
• AC 5. Case Study MD 5. Videos
• AC 6. Record Work MD 6. Field Visit
• AC 7. Lab / Mini Project
• AC 8. Lab Model Exam
• AC 9. Project Review
8. ACTIVITY BASED LEARNING – UNIT II
Create your own mind map diagram for all the html tags and
components.
11
Lecture Notes
UNIT II - HTML
Introduction – Web Basics – Multitier Application Architecture – Client-Side Scripting versus Server-side
Scripting – HTML5 – Headings – Linking – Images – Special Characters and Horizontal Rules – Lists –
Tables – Forms – Internal Linking – meta Elements – Form input Types – input and datalist Elements –
Page-Structure Elements.
List of Exercise/Experiments:
1. Create web pages using the following:
Tables and Lists
Image map
Forms and Form elements
Frames
9. LECTURE NOTES
2.1 INTRODUCTION
HTML stands for HyperText Markup Language and it is used to design web pages using
a markup language.
HTML is the combination of Hypertext and Markup language.
Hypertext defines the link between web pages.
A markup language is used to define the text document within the tag which defines the
structure of web pages.
This language is used to annotate (make notes for the computer) text so that a machine
can understand it and manipulate text accordingly.
HTML uses predefined tags and elements which tell the browser how to properly display the
content.
Remember to include closing tags.
If omitted, the browser applies the effect of the opening tag until the end of the page.
The basic structure of an HTML page is laid out below. It contains the essential building-
block elements (i.e. doctype declaration, HTML, head, title, and body elements) upon which all
web pages are created.
<!DOCTYPE html>: This is the document type declaration (not technically a tag). It declares a
document as being an HTML document. The doctype declaration is not case-sensitive.
<html>: This is called the HTML root element. All other elements are contained within it.
<head>: The head tag contains the “behind the scenes” elements for a webpage. Elements
within the head aren’t visible on the front-end of a webpage.
HTML elements used inside the <head> element include:
<style>-This html tag allows us to insert styling into our webpages and make them appealing
to look at with the help of CSS.
<title>-The title is what is displayed on the top of your browser when you visit a website and
contains title of the webpage that you are viewing.
<base>-It specifies the base URL for all relative URL’s in a document.
<noscript>– Defines a section of HTML that is inserted when the scripting has been turned off
in the users browser.
<script>-This tag is used to add functionality in the website with the help of JavaScript.
<link>– The ‘link’ tag is used to tie together HTML, CSS and JavaScript. It is self closing.
<body>: The body tag is used to enclose all the visible content of a webpage. In other words,
the body content is what the browser will show on the front-end.
An HTML document can be created using any text editor. Save the text file using .html or .htm.
Once saved as an HTML document, the file can be opened as a web page in the browser.
EXAMPLE
<html>
<head>
<title>Demo Web Page</title>
</head>
<body>
<h1>WELCOME TO RMK GROUP OF INSTITUTION</h1>
<p>CSE Department </p>
</body>
</html>
OUTPUT:
4. Features of HTML
1. It is easy to learn and easy to use.
2. It is platform-independent.
3. Images, videos, and audio can be added to a web page.
4. Hypertext can be added to the text.
5. It is a markup language.
5. Why learn HTML?
1. It is a simple markup language. Its implementation is easy.
2. It is used to create a website.
3. Helps in developing fundamentals about web programming.
4. Boost professional career.
6. Advantages
1. HTML is used to build websites.
2. It is supported by all browsers.
3. It can be integrated with other languages like CSS, JavaScript, etc.
7. Disadvantages
1. HTML can only create static web pages. For dynamic web pages, other languages
have to be used.
2. A large amount of code has to be written to create a simple web page.
3. The security feature is not good.
2.2 WEB BASICS
The Internet consists of clients and servers.
For example:
The web page you are reading right now is actually a computer file that is on the
College of Engineering’s web server.
The computer you are using to view this page is the client computer. The client and the
server are connected by what is called the Hypertext Transfer Protocol or HTTP for short.
Both computers must understand this protocol to communicate with each other.
This is done by the programs that are used.
On the client side it is your browser and on the server side it is one of many types of web
server programs.
We use the Apache web server, for example, HTTP uses the Uniform Resource Locator, or
URL, to communicate between the client and the server. This URL tells the server which
web page it needs to send to the client, and so the URL is basically an address on the web.
If you look at the top of your browser you will see that the URL for this web page is:
http://www.engr.colostate.edu/ets/web-basics
The address can be broken down like this:
http://
This tells the server that the client is requesting a web page. The client can also request
other things from the server.
www.engr.colostate.edu
This is the host that the client computer wishes to connect to. It is basically the “name” of
the computer that the web pages are stored in.
ets/web-basics
This is the path to the specific web page the client computer wants to see.
It is basically a listing of the directories on the server computer where the file is stored.
So this web page (webbasics.html) is in a directory called “web” that is within a directory
called “how” that is in turn within a directory called “ens'' that resides at the root of the
web server.
Another important protocol that is used to communicate between clients and servers is
Hypertext Markup Language, or HTML.
This is the language that is used to actually create the web pages. It tells your browser how
to display the content of the computer file on your browse window.
The server computer then sends out the web file that was requested.
The web file is sent to the computers mentioned in step number 3. These are not
necessarily the same physical computers as before, but the tasks that they perform will be
the same.
An N-Tier Application program is one that is distributed among three or more separate
computers in a distributed network
Three Categories of N-Tier Application
1. User Interface programming in the user’s computer
2. Business logic in a more centralized computer
3. Required data in a computer that manages a database
This architecture model provides Software Developers to create reusable application with
maximum flexibility
1. MakeMyTrip.com
2. Salesforce enterprise application
3. Indian Railways – IRCTC
4. Amazon.com
The components located at network computers coordinate and communicate their actions
only by passing messages.
It is a collection of multiple systems situated at different nodes but appears to the user as a
single system
The web needs three components to function: client, database, and server.
The client-side scripting may significantly reduce server demand.
It is intended to be utilized as a scripting language with a web browser as the host
program.
2. SERVER SIDE:
Server-side scripting is a programming technique for creating code that may run software
on the server side.
In other words, server-side scripting is any scripting method that may operate on a web
server.
At the server end, actions such as website customization, dynamic changes in website
content, response creation to user requests, database access, and many more are carried
out.
Primary Function The main function of this The main purpose of this
scripting is to manipulate scripting is to give the
and grant access to the requested output to the end-
requested database. user.
Doctype declarations are not HTML tags and belong at the very top of a document.
The <!DOCTYPE> declaration should always be included at the top of the HTML
document,before the <html> tag.
The doctype declaration is case insensitive. Therefore the following DOCTYPEs are also valid:
<!DOCTYPE html>
<!DOCTYPE HTML>
<!doctype html>
<!Doctype Html>
HTML 5 Doctype:
<!DOCTYPE html>
2. HTML Tags
HTML Tag is a markup - inserted into an HTML document to provide information about a unit
of content.
<element_name>...content...</element_name>
There are some HTML elements that don't have a closing tag or any contents. These are
called void elements.
HTML provides six headings, called heading elements, for specifying the relative importance
of information.
When you place the text within the heading tags <h1>.........</h1>, it is displayed on the
browser in the bold format and size of the text depends on the number of heading.
Heading element <h1> is considered the most significant heading and is typically rendered in
a larger font than the other five headings.
Each successive heading element (i.e., <h2>, <h3>, etc.) is typically rendered in a
progressively smaller font.
Example
<!DOCTYPE html>
<html>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
Output
Each HTML heading has a default size.
However, you can specify the size for any heading with the style attribute, using the CSS font-
size property:
Example
<!DOCTYPE html>
<html>
<body>
<h1 style="font-size:60px;">Heading 1</h1>
</body>
</html>
Output
2.7 LINKS
The Web is based on hyperlinks. HTML links are hyperlinks. A hyperlink is a text or an image
you can click on, and jump to another document.
Example
<!DOCTYPE html>
<html>
<body>
<h1>HTML Links</h1>
<a href="https://www.google.com/">Google!</a>
<p><a >href="http://www.rmkec.ac.in/">Visit RMK Group of Insitution.com!</a></p>
</body>
</html>
Output
HTML Links
Google!
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Image as link</title>
</head>
<body>
The following image works as a link:<br>
<a href="https://www.qries.com/">
<img src="https://www.qries.com/images/banner_logo.png" alt="Qries"
width="150" height="70">
</a>
</body>
</html>
Output
2.7.4 Link to an Email Address
Use mailto: inside the href attribute to create a link that opens the user's email program (to
let them send a new email):
Example
<!DOCTYPE html>
<html>
<body>
<h2>Link to an Email Address</h2>
<p>To create a link that opens in the user's email program (to let them send a new email),
use mailto: inside the href attribute:</p>
Lession.4
Introduction of Lession.1
This is sub topic.1
This is sub topic.2
This is sub topic.3
This is sub topic.4
Introduction of Lession.2
This is sub topic.1
This is sub topic.2
This is sub topic.3
This is sub topic.4
Introduction of Lession.3
Introduction of Lession.4
This is sub topic.1
This is sub topic.2
This is sub topic.3
This is sub topic.4
2.8 IMAGES
Images can improve the design and the appearance of a web page.
HTML img tag is used to display image on the web page.
HTML img tag is an empty tag that contains attributes only, closing tags are not used in HTML
image element.
The three most popular image formats used by web developers are Graphics Interchange
Format (GIF), Joint Photographic Experts Group (JPEG) and Portable Network Graphics (PNG)
images.
Syntax
<img src="url" alt="alternate text">
Example
<!DOCTYPE html>
<html>
<body>
<h2>HTML Image</h2>
<img src="pic_trulli.jpg" alt="Trulli" width="500" height="333">
</body>
</html>
Output
If a browser cannot find an image, it will display the value of the alt attribute:
Example
<!DOCTYPE html>
<html>
<body>
<p>If a browser cannot find the image, it will display the alternate text:</p>
<img src="wrongname.gif" alt="Flowers in Chania">
</body>
</html>
Output:
The src and alt are important attributes of HTML img tag. All attributes of the HTML image
tag are given below.
1) src:
It instructs the browser where to look for the image on the server.
The location of the image may be on the same directory or another server.
2) alt:
The alt attribute defines an alternate text for the image, if it can't be displayed.
The value of the alt attribute describes the image in words.
3) width:
It is an optional attribute which is used to specify the width to display the image.
4) height
Symbols that are not present on your keyboard can also be added by using entities.
Many mathematical, technical, and currency symbols, are not present on a normal keyboard.
To add such symbols to an HTML page, you can use the entity name or the entity number (a
decimal or a hexadecimal reference) for the symbol.
Example
<!DOCTYPE html>
<html>
<body>
<h1>Mathematical Symbol Example</h1>
<h2>The for-all symbol: ∀</h2>
</body>
</html>
Output
Mathematical Symbol Example
The for-all symbol: ∀
Example
<!DOCTYPE html>
<html>
<body>
<h1>Mathematical Symbol Example</h1>
<h2>The partial differential symbol: ∂</h2>
</body>
</html>
Output
Mathematical Symbol Example
The partial differential symbol: ∂
2.11 LISTS
HTML Lists are used to specify lists of information. All lists may contain one or more list
elements. There are three different types of HTML lists:
We can use ordered list to represent items either in numerical order format or alphabetical
order format, or any format where an order is emphasized.
There can be different types of numbered list:
Numeric Number (1, 2, 3)
Capital Roman Number (I II III)
Small Roman Number (i ii iii)
Capital Alphabet (A B C)
Small Alphabet (a b c)
To represent different ordered lists, there are 5 types of attributes in <ol> tag
Type Description
Type "1" This is the default type. In this type, the list items are numbered with numbers.
Type "I" In this type, the list items are numbered with upper case roman numbers.
Type "i" In this type, the list items are numbered with lower case roman numbers.
Type In this type, the list items are numbered with upper case letters.
"A"
Type "a" In this type, the list items are numbered with lower case letters.
Example
<!DOCTYPE html>
<html>
<body>
<h2>An ordered HTML list</h2>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</html>
Output
An ordered HTML list
Coffee
Tea
Milk
2. HTML Unordered List or Bulleted List
It displays elements in bulleted format .
We can use an unordered list where we do not need to display items in any particular order.
The HTML ul tag is used for the unordered list.
Type Description
Type "disc" This is the default style. In this style, the list items are marked with
bullets.
Type "circle" In this style, the list items are marked with circles.
Type "square" In this style, the list items are marked with squares.
Type "none" In this style, the list items are not marked.
Example
<!DOCTYPE html>
<html>
<body>
<h2>An unordered HTML list</h2>
<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>
<h2>A Description List</h2>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</body>
</html>
Output
A Description List
Coffee
Milk
Example
<!DOCTYPE html>
<html>
<head>
<title>Nested list</title>
</head>
<body>
<p>List of Indian States with thier capital</p>
<ol>
<li>Delhi
<ul>
<li>NewDelhi</li>
</ul>
</li>
<li>Haryana
<ul>
<li>Chandigarh</li>
</ul>
</li>
<li>Gujarat
<ul>
<li>Gandhinagar</li>
</ul>
</li>
<li>Rajasthan
<ul>
<li>Jaipur</li>
</ul>
</li>
<li>Maharashtra
<ul>
<li>Mumbai</li>
</ul>
</li>
<li>Uttarpradesh
<ul>
<li>Lucknow</li></ul>
</li>
</ol>
</body>
</html>
2.12 TABLES
HTML table tag is used to display data in tabular form (row * column).
There can be many columns in a row.
We can create a table to display data in tabular form, using <table> element, with the help of
<tr> , <td>, and <th> elements.
In Each table, table row is defined by <tr> tag, table header is defined by <th>, and table
data is defined by <td> tags.
HTML tables are used to manage the layout of the page e.g. header section, navigation bar,
body content, footer section etc.
But it is recommended to use the div tag over the table to manage the layout of the page.
2.12.1 HTML Table Tags
Tag Description
<col> It is used with <colgroup> element to specify column properties for each
column.
Here, the border is an attribute of <table> tag and it is used to put a border across all the
cells.
If you do not need a border, then you can use border = "0".
2.12.3 Table Heading
Table heading can be defined using <th> tag.
This tag will be put to replace <td> tag, which is used to represent actual data cell.
Normally you will put your top row as table heading as shown below, otherwise you can use
<th> element in any row.
Headings, which are defined in <th> tag are centered and bold by default.
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML Table Header</title>
</head>
<body>
<table border = "1">
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Ramesh Raman</td>
<td>5000</td>
</tr>
<tr>
<td>Shabbir Hussein</td>
<td>7000</td>
</tr>
</table>
</body>
</html>
Output
HTML tables can have cells that span over multiple rows and/or columns.
To make a cell span over multiple columns, use the colspan attribute:
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<h2>Cell that spans two columns</h2>
<p>To make a cell span more than one column, use the colspan attribute.</p>
<table style="width:100%">
<tr>
<th colspan="2">Name</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>43</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>57</td>
</tr>
</table>
</body>
</html>
Output
To make a cell span over multiple rows, use the rowspan attribute.
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<th>Name</th>
<td>naira</td>
</tr>
<tr>
<th rowspan="2">Phone</th>
<td>555-1234</td>
</tr>
<tr>
<td>555-8745</td>
</tr>
</table>
</body>
</html>
Output
2.13 FORMS
An HTML form is used to collect user input.
The user input is most often sent to a server for processing.
The <form> Element
Forms are generally used when you want to collect data from the user.
For example, a user wants to buy a bag online, so he/she has to first enter their shipping
address in the address form and then add their payment details in the payment form to place
an order.
syntax
<form>
<!--form elements-->
</form>
1. Form elements
These are the following HTML <form> elements:
<label>: It defines a label for <form> elements.
<input>: It is used to get input data from the form in various types such as text, password,
email, etc by changing its type.
<button>: It defines a clickable button to control other elements or execute a functionality.
<select>: It is used to create a drop-down list.
<textarea>: It is used to input long text content.
<fieldset>: It is used to draw a box around other form elements and group the related data.
<legend>: It defines captions for fieldset elements.
<datalist>: It is used to specify pre-defined list options for input controls.
<output>: It displays the output of performed calculations.
<option>: It is used to define options in a drop-down list.
<optgroup>: It is used to define group-related options in a drop-down list.
2.13.1.1 The <input> Element
The HTML <input> element is the most used form element.
An <input> element can be displayed in many ways, depending on the type attribute.
Here are some examples:
Type Description
The <input type="text"> defines a single-line input field for text input.
Example
A form with input fields for text:
<form>
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname">
</form>
Output
Value Description
Example
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="John Doe">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
</body>
</html>
1. Attributes
<form>
<label for="favcolor">Select your favorite color:</label>
<input type="color" id="favcolor" name="favcolor">
</form>
Output:
<form>
<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday">
</form>
Output
Example
<form>
<label for="email">Enter your email:</label>
<input type="email" id="email" name="email">
</form>
Output:
Example
<form>
<label for="fname">First name: </label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name: </label>
<input type="text" id="lname" name="lname"><br><br>
<input type="image" src="img_submit.gif" alt="Submit" width="48" height="48">
</form>
Output:
In HTML there are some semantic elements that can be used to define different parts of a
web page:
<article>
<aside>
<details>
<figcaption>
<figure>
<footer>
<header>
<main>
<mark>
<nav>
<section>
<summary>
<time>
News items
Contact information
Example
<!DOCTYPE html>
<html>
<body>
<section>
<h1>WWF</h1>
<p>The World Wide Fund for Nature (WWF) is an international organization working on
issues regarding the conservation, research and restoration of the environment, formerly
named the World Wildlife Fund. WWF was founded in 1961.</p>
</section>
<section>
<h1>WWF's Panda symbol</h1>
<p>The Panda has become the symbol of WWF. </p>
</section>
</body>
</html>
Output
WWF
The World Wide Fund for Nature (WWF) is an international organization working on issues
regarding the conservation, research and restoration of the environment, formerly named the
World Wildlife Fund. WWF was founded in 1961.
Blog posts
User comments
Product cards
Newspaper articles
Example
Three articles with independent, self-contained content:
<article>
<h2>Google Chrome</h2>
<p>Google Chrome is a web browser developed by Google, released in 2008. Chrome is the
world's most popular web browser today!</p>
</article>
<article>
<h2>Mozilla Firefox</h2>
<p>Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the
second most popular web browser since January, 2018.</p>
</article>
<article>
<h2>Microsoft Edge</h2>
<p>Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft
Edge replace Internet Explorer.</p>
</article>
Output
Google Chrome
Google Chrome is a web browser developed by Google, released in 2008. Chrome is the
world's most popular web browser today!
Mozilla Firefox
Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the
second most popular web browser since January, 2018.
Microsoft Edge
Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge
replace Internet Explorer.
2.15.2 HTML <header> Element
The <header> element represents a container for introductory content or a set of
navigational links.
A <header> element typically contains:
one or more heading elements (<h1> - <h6>)
logo or icon
authorship information
Note: You can have several <header> elements in one HTML document. However, <header>
cannot be placed within a <footer>, <address> or another <header> element.
Example
A header for an <article>:
<article>
<header>
<h1>What Does WWF Do?</h1>
<p>WWF's mission:</p>
</header>
<p>WWF's mission is to stop the degradation of our planet's natural environment,
and build a future in which humans live in harmony with nature.</p>
</article>
Output
What Does WWF Do?
WWF's mission:
WWF's mission is to stop the degradation of our planet's natural environment, and build a
future in which humans live in harmony with nature.
authorship information
copyright information
contact information
sitemap
</aside>
</body>
</html>
Output
The <figcaption> tag defines a caption for a <figure> element. The <figcaption> element
can be placed as the first or as the last child of a <figure> element.
The <img> element defines the actual image/illustration.
Example
<!DOCTYPE html>
<html>
<body>
<h2>Places to Visit</h2>
<figure>
<img src="pic_trulli.jpg" alt="Trulli" style="width:100%">
<figcaption>Fig.1 - Trulli, Puglia, Italy.</figcaption>
</figure>
</body>
</html>
Output
10. ASSIGNMENT : UNIT – II
(CO3 , K3)
https://infyspringboard.onwingspan.com/web/en/app/
toc/lex_auth_0130944214274703362099_shared/overview
UNIT II – PART A – QUESTION AND ANSWERS
Frameset Doctype
6. What are some of the advantages of HTML5 over its previous versions? CO3 K3
Some advantages of HTML5 are:-
It has Multimedia Support.
It has the capabilities to store offline data using SQL databases and application cache.
Javascript can be run in the background.
HTML5 also allows users to draw various shapes like rectangles, circles, triangles, etc.
Included new Semantic tags and form control tags.
7. What is the difference between <figure> tag and <img> tag? CO3 K3
The <figure> tag specifies the self-contained content, like diagrams, images, code snippets,
etc. <figure> tag is used to semantically organize the contents of an image like image, image
caption, etc., whereas the <img> tag is used to embed the picture in the HTML5 document.
11. What type of audio files can be played using HTML5? CO3 K3
HTML5 supports the following three types of audio file formats:
Mp3
WAV
Ogg
12. Explain new input types provided by HTML5 for forms? CO3 K3
Date - Only select date by using type = "date"
HTML5 HTML
HTML5 has high-level video and audio High-level video and audio support is not a part
support. of the version and specifications in the previous
HTML.
Doctype declaration is simple and easy. Doctype declaration is long and complicated..
Allows drag and drop effect. Does not allow drag and drop effect.
Attributes of Async, charset, and ping These attributes are not available in HTML.
are available.
HTML5 supports javascript to run in the Does not support javascript to run within the
background. web browser.
14. What is <!DOCTYPE>? What are the different types of <!DOCTYPE> that are
available? CO3 K3
The <!DOCTYPE> declaration provides instruction to the web browser to understand what
information it should display, and the need to start with <!DOCTYPE> declaration. In HTML5,
DOCTYPE declaration is very short, and case-insensitive, and <!DOCTYPE html> is written at
the top of every HTML5 page.
For Example
<title> This is my Browser </title>
An Html5 tag is a set of characters that develop a formatted command for a web page. These
formatted commands communicate and send the instruction to the Browser.
COURSERA
https://www.coursera.org/learn/html
https://www.coursera.org/learn/html-css-javascript-for-web-
developers
https://www.coursera.org/projects/introduction-to-html
https://www.coursera.org/professional-certificates/meta-front-end-
developer
https://www.coursera.org/professional-certificates/ibm-full-stack-
cloud-developer
UDEMY
https://www.udemy.com/course/hmtl5-training/
https://www.udemy.com/course/learn-html5-programming-from-
scratch/
https://www.udemy.com/course/takethefirststep/
NPTEL
https://onlinecourses.swayam2.ac.in/aic20_sp11/preview
14. REAL TIME APPLICATIONS : UNIT – II
15. CONTENT BEYOND SYLLABUS : UNIT – II
What is XML?
Why XML?
● You can communicate between two platforms which are generally very difficult.
TEXT BOOKS
1.Roger S. Pressman, “Software Engineering: A Practitioner‘s Approach”, McGraw Hill
International Edition, Nineth Edition, 2020.
2. Scott Chacon, Ben Straub, “Pro GIT”, Apress Publisher, 3rd Edition, 2014.
3.Deitel and Deitel and Nieto, “Internet and World Wide Web - How to Program”, Pearson, 5th
Edition, 2018.
REFERENCE BOOKS
1 Roman Pichler, “Agile Product Management with Scrum Creating Products that Customers
Love”, Pearson Education, 1 st Edition, 2010.