Professional Documents
Culture Documents
ON
TO
SUBMITTED BY:
HUNEET SINGH
00890201816
(2016-2019)
1
TABLE OF CONTENT
2 Certificate 6
3 Acknowledgement 7
4 Introduction to HTML 8
11 HTML Table 18
2
15 Q. Write the coding for inserting the table of27
production and sales table.
3
web page for Online Shopping.
29 Q. Write the code in HTML to design a 50-53
web page for Commercial Bank
DECLARATION
4
I hereby declare that the project work submitted to the Guru Gobind
Singh Indraprastha University is record of an original work done by
me under the guidance of Mrs. Harneet Kaur, faculty member , Sri
Guru Tegh Bahadur Institute Of Management And Informational
Technology.
…………………………
CERTIFICATE
5
This is to certify that HUNEET SINGH, student of Sri Guru Tegh
Bahadur Institute Of Management And Informational Technology
of course BBA B&I Batch (2018) , has completed his file work title
“Computer Application 2 Project File on HTML“ under my guidance
and supervision . This work is genuine and authentic.
……………………………..
Signature of guide
……………………………..
ACKNOWLEDGEMENT
6
I offer my sincere thanks and humble regards to Sri Guru Tegh
Bahadur Institute of Management and Information Technology ,
Guru Gobind Singh Indraprastha University, Delhi for imparting us
very valuable professional training in BBA (B&I). I pay my gratitude
and sincere regards to Mrs. Harneet Kaur, my project guide, for giving
me the cream of her knowledge. I am thankful to her as she gave her
moral support and guided me in different matters regarding the topic. I
am also thankful to her as she has been a constant source of advice,
motivation and inspiration. She was very kind and patient while
suggesting the outlines of the project and correcting my doubts
……………………..
Signature of Scholar
Enrollment No.:00890201816
Introduction to HTML
7
Hypertext Markup Language (HTML) is the standard markup
language for creating web pages and web applications. With Cascading
Style Sheets (CSS) and JavaScript, it forms a triad of cornerstone
technologies for the World Wide Web. Web browsers receive HTML
documents from a web server or from local storage and render them into
multimedia web pages. HTML describes the structure of a web page
semantically and originally included cues for the appearance of the
document.
HTML elements are the building blocks of HTML pages. With HTML
constructs, images and other objects, such as interactive forms, may be
embedded into the rendered page. It provides a means to create
structured documents by denoting structural semantics for text such as
headings, paragraphs, lists, links, quotes and other items. HTML
elements are delineated by tags, written using angle brackets. Tags such
as <img /> and <input /> introduce content into the page directly. Others
such as <p>...</p> surround and provide information about document
text and may include other tags as sub-elements. Browsers do not
display the HTML tags, but use them to interpret the content of the page.
Uses of HTML
8
Hypertext Markup Language (HTML) is the standard markup language
for creating web pages and web applications. With Cascading Style
Sheets (CSS) and JavaScript it forms a triad of cornerstone technologies
for the World Wide Web.
HTML elements are the building blocks of HTML pages. With HTML
constructs, images and other objects, such as interactive forms, may be
embedded into the rendered page. It provides a means to create
structured documents by denoting structural semantics for text such as
headings, paragraphs, lists, links, quotes and other items. HTML
elements are delineated by tags, written using angle brackets. Tags such
as <img /> and <input /> introduce content into the page directly. Others
such as <p>...</p> surround and provide information about document
text and may include other tags as sub-elements. Browsers do not
display the HTML tags, but use them to interpret the content of the page.
9
1. Text and all places where it is used, i.e. paragraphs, headings,
quotes, etc.
2. Multimedia: images, audio, and video,
3. The so-called canvas, which allows you to "draw" on the Web
page using JavaScript code.
Tags of HTML
Tag Description
<body> Defines the document's body
<b> Defines bold text
<br> Defines a single line break
<center> Defines centered text
Specifies column properties for each column within a
<col>
<colgroup> element
Specifies a group of one or more columns in a table
<colgroup>
for formatting
<font> Defines font, color, and size for text
<frame> Defines a window (a frame) in a frameset
<frameset> Defines a set of frames
<h1> to <h6> Defines HTML headings
<head> Defines information about the document
<height> Returns the height of an ImageData object
<hr> Defines a thematic change in the content
<html> Defines the root of an HTML document
<img> Defines an image
10
<input> Defines an input control
<li> Defines a list item
<ol> Defines an ordered list
<table> Defines a table
<td> Defines a cell in a table
<th> Defines a header cell in a table
<title> Defines a title for the document
<tr> Defines a row in a table
<ul> Defines an unordered list
<width> Specifies the width of the element
Elements of HTML
An HTML element is defined by a starting tag. If the element contains
other content, it ends with a closing tag, where the element name is
preceded by a forward slash as shown below with few tags −
11
closed, such as <img.../>, <hr /> and <br /> elements. These are known
as void elements.
Example
<html>
<head>
<title>Nested Elements Example</title>
</head>
<body>
<h1>This is <i>italic</i> heading</h1>
<p>This is <u>underlined</u> paragraph</p>
</body>
</html>
12
1. head. The head element contains title and meta data of a web
document.
2. body. The body element contains the information that you want to
display on a web page.
* To make your web pages compatible with HTML 4, you need to add a
document type declaration (DTD) before the HTML element. Many web
authoring software add DTD and basic tags automatically when you
create a new web page.
In a web page, the first tag (specifically, <html>) indicates the markup
language that is being used for the document. The <head> tag contains
information about the web page. Lastly, the content appears in the
<body> tag. The following illustration provides a summary.
13
Summary of Basic HTML Tags
There are three types of lists. The first two are bulleted and numbered
lists. Needless to say, those on high who name such things couldn't
simply call them "Bulleted" or "Numbered", but "Unordered" and
"Ordered".
14
UL – Unordered lists:
Example:
Apples
Oranges
Bananas
UL Code:
<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>
OL – Ordered Lists:
Example:
1. Breakfast
2. Lunch
3. Dinner
OL Code:
<ol>
<li>List item 1</li>
<li>List item 2</li>
</ol>
Fruit
o Oranges
o Bananas
Vegetables:
15
1. Peas
2. Corn
Be careful to close tags in the reverse order they were opened, and with
lists it can get confusing. The trick is to indent your code. Take a look at
this page's source code and you will see what I mean.
16
don't have a closing tag. They end within the same tag.
Examples:
<html> is a container tag, it has it's closing tag as </html>. Other
examples are <body>, <head>, <p> etc. These are called container
tags because they contain something, within the two tags.
2. Empty Tags - Empty tags in HTML are DOM Element Nodes that
never have end tags, and more importantly, they can only have
“attribute”, they can never have :
HTML Table
An HTML table is defined with the <table> tag.
17
Each table row is defined with the <tr> tag. A table header is defined
with the <th> tag. By default, table headings are bold and centered. A
table data/cell is defined with the <td> tag.
HTML Frames
18
HTML frames are used to divide your browser window into multiple
sections where each section can load a separate HTML document. A
collection of frames in the browser window is known as a frameset. The
window is divided into frames in a similar way the tables are organized:
into rows and columns.
Disadvantages of Frames
There are few drawbacks with using frames, so it's never recommended
to use frames in your webpages −
Some smaller devices cannot cope with frames often because their
screen is not big enough to be divided up.
The browser's back button might not work as the user hopes.
There are still few browsers that do not support frame technology.
Creating Frames
One of the most popular uses of frames is to place navigation bars in one
frame and then load main pages into a separate frame.
19
Let's see following example where a test.htm file has following code −
< html>
<html>
<head>
<title>HTML Target Frames</title>
</head>
<frameset cols = "200, *">
<frame src = "/html/menu.htm" name = "menu_page" />
<frame src = "/html/main.htm" name = "main_page" />
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>
Here, we have created two columns to fill with two frames. The first
frame is 200 pixels wide and will contain the navigation menu bar
implemented by menu.htm file. The second column fills in remaining
space and will contain the main part of the page and it is implemented
by main.htm file. For all the three links available in menu bar, we have
mentioned target frame as main_page, so whenever you click any of the
links in menu bar, available link will open in main page.
20
<html>
<body bgcolor = "#4a7d49">
<a href = "http://www.google.com" target =
"main_page">Google</a>
<br />
<br />
<a href = "http://www.microsoft.com" target =
"main_page">Microsoft</a>
<br />
<br />
<a href = "http://news.bbc.co.uk" target = "main_page">BBC
News</a>
</body>
</html>
21
<html>
<body bgcolor = "#b5dcb3">
<h3>This is main page and content from any link will be displayed
here.</h3>
<p>So now click any link and see the result.</p>
</body>
</html>
HTML Forms
22
The <input> Element
Type Description
<input type="text"> Defines a one-line text input field
Defines a radio button (for selecting one of many
<input type="radio">
choices)
<input
Defines a submit button (for submitting the form)
type="submit">
Text Input
Example
<form>
Firstname:<br>
<input type="text" name="firstname"><br>
Last name:<br>
<input type="text" name="lastname">
</form>
23
First name:
Last name:
Example
<form>
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
</form>
Male
Female
Other
24
The form-handler is typically a server page with a script for processing
input data.
Example
<form action="/action_page.php">
First name:<br>
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
</form>
First name:
Mickey
Last name:
Mouse
25
Q. Write the coding for inserting the table of production and sales table.
26
Q.
Write
the
code of
hypertext reference.
27
Q. Write the code for making a frame.
28
Q. Write the code in HTML to demonstrate the use of order and un-order list.
29
Q. Write the code in HTML to change background Web Page.
30
Q. Write the code in HTML to demonstrate various formatting style
31
and insert an image in web page.
32
Q. Write the code for inserting the frame divided in 3 parts.
33
Q. Write the code in HTML to design a Sign Up Form.
34
Q. Write the code in HTML to design a web page for Purchase Order Form.
35
Q. Write the code in HTML to design a web page for Food Corner
36
Q. Write the code in HTML to design a web page for Online Reservation.
37
38
39
40
Q. Write the code in HTML to design a web page for various
Insurance Business.
41
42
43
44
45
Q. Write the code in HTML to design a web page for Online Shopping.
46
47
48
49
Q. Write the code in HTML to design a web page for Commercial Bank.
50
51
52
53