SlideShare a Scribd company logo
Chapter – 7
Web Applications
HTML (Hyper Text Markup Language) – HTML is a document layout and
hyperlink specification language i.e. a language used to design the layout of
a document and to specify the hyperlinks.
Tag – A Tag is a HTML command that indicates how part of web page
should be displayed.
Attribute – An attribute is a special word used to specify additional
information to tag such as color, alignment etc.
HTML Document Structure
<HTML>
<HEAD>
<TITLE> Title of Page </TITLE>
</HEAD>
<BODY>
Contain actual text to be displayed and other tags
</BODY>
</HTML>
<HTML> Tag – It defines the document as an HTML document. This tag
tells the browser that the current document is an HTML document.
Syntax <HTML> ……………. </HTML>
<HEAD> tag – It defines the document headers including title. It does not
affect the appearance of the document.
Syntax <HEAD> ………………… </HEAD>
<TITLE> tag – Contain the title to be displayed in the title bar.
Syntax <TITLE> ………………… </TITLE>
<BODY> tag – This tag contain all the tags, attribute and actual text to be
displayed in the web page.
Syntax <BODY> ………………… </BODY>
HTML Elements – There are two types of element
1. Container elements – It is specified by pair of tags – Start tag and End
tag e.g. <TITLE> </TITLE> .
2. Empty elements – Require just a starting tag and not an ending tag
e.g. <BR> .
BASIC HTML TAGS
<BODY> tag – This tag contain all the tags, attribute and information to
be displayed in the web page.
Attributes of <BODY> tag are :
1. BGCOLOR : To change the background color.
2. BACKGROUND : Specify the path and filename of image that has
to be used as the background of the document.
3. TEXT : To sets the color of the text in the document.
<P> tag – To start a new paragraph.
Syntax <P Align = “alignment”> …………………………. </P>
Alignment cab be Left, Right and Center
<BR> tag – Insert a line break which implies that text following the tag
will be moved to next line.
Syntax <BR>
Horizontal Rules <HR> tag – This tag draw a horizontal line across the
whole page. We can use this tag to visually divide the information into
sections.
Attribute used with <HR> tag are :
1 ALIGN : To change the alignment of line. Default is center
alignment.
2. NOSHADE : Produce a solid horizontal rule that has no shading.
3. SIZE : Defines the thickness of the rule.
4. WIDTH : Sets the width of the rule.
5. COLOR : Sets the color of the horizontal rule.
Heading Styles :
HTML has six levels of headings, numbered 1 to 6. The highest level
heading is <H1> and lowest level is <H6>. Heading displayed in larger and
bolder face than normal text.
Syntax : <H> ……………………….. </H>
Text Styles :
BoldFace <B> tag – Displays the text in BOLDFACE style.
Syntax : <B> …………………. </B>
Italics <I> tag – Displays text in ITALICS.
Syntax : <I> …………………. </I>
Underline <U> tag – Displays text as underline.
Syntax : <U> ………………… </U>
Image <IMG> tag – It is used to insert an image in a web page.
Attributes of <IMG> tag are:
1 SRC : Gives the location of image to be inserted.
2. BORDER : Specifies the size of border.
3. ALIGN : Specifies the alignment of image.
4. WIDTH : Specifies the horizontal width of the image.
5. HEIGHT : Specifies the height of the image.
The <FONT> tag – It is used to specify font, size and color to the text.
The attributes are:
1 FACE : Sets the font to the specified font name
2 SIZE : Sets the size of text between 1 and 7 (7 is the largest).
The default size is 3.
3 COLOR : Sets the color of text
Example :
<FONT FACE=”Comic Sans MS” SIZE= 6 COLOR = RED >
Welcome to our home page.
</FONT>
LISTS – Lists help us to organize the contents of the web page in an
ordered and sequential manner.
HTML supports three types of lists:
 Unordered lists (bulleted lists)
 Ordered lists (numbered)
 Definition lists.
Ordered Lists <OL> tag – It displays a numbered list. Each list item is
started by a number or a letter.
Attributes of <OL> tag are:
1 START : Specifies the starting number of the list.
2. TYPE : Defines the type of numbering sequence used for the
list items.
“1” for counting numbers (1,2,……)
“A” for uppercase letters.
“a” for lowercase letters.
“I” for uppercase Roman numerals.
“i" for lowercase Roman numerals.
<OL TYPE=”1” START=3>
<LI> CDs
<LI> DVDs
<LI> Hard Disks
</OL>
Unordered Lists <UL> tag – It displays a bulleted list.
Attributes of <UL> tag are:
1 TYPE : Defines the type of bullet used for list item.
The value can be :
CIRCLE – hollow bullet.
DISC – solid round bullet.
SQUARE – a square bullet.
Example :
<UL>
<LI> CDs
<LI> DVDs
<LI> Hard Disks
</UL>
Definition Lists <DL> tag– Definition lists consists of two parts:
1. Definition term – appears after the tag <DT>
2. Definition description – appears after the tag <DD>
Example
<DL>
<DT> Keyboard
<DD> An input device
<DT> Printer
<DD> An output device
</DL>
Output:
Keyboard
An input device
Printer
An output device
List Item <LI> tag – It is used inside <OL> and <UL> tag to define list
items. Each list item has to be preceded by <LI> tag.
Syntax : <LI> List Item Name
Tables – It is used to display data in organized manner (rows and
columns).
<TABLE> tag – This tag started by <TABLE> and ended by </TABLE>
tag.
Attribute of <TABLE> tag are:
1. ALIGN : To specify the alignment of table in relation to
the window screen. It can be set to LEFT,
CENTER, or RIGHT.
2. BGCOLOR : Sets the background color for the table.
3. BORDER : Sets the border thickness around the table.
4. VALIGN : Controls the vertical alignment of cell
contents. It can be TOP, MIDDLE or BOTTOM.
5. WIDTH : Sets the WIDTH of table in relation to window
screen.
6 CELLPADDING : Controls the distance between data and
boundaries of the cell.
7. CELLSPACING : Controls the spacing between adjacent cells.
TABLE ROW <TR> tag – Describe the row in a table.
Attribute of <TR> tag are:
1. ALIGN : Controls the alignment of text to left, right or
center. Default is left.
2. VALIGN : Controls the vertical alignment of text in a
row. It can be top, bottom or middle.
3. BGCOLOR : Sets the background color of the table row.
TABLE DATA <TD> tag – It is used to specify text in a cell of the table.
TABLE HEADING <TH> tag – It is used to define header row. The
content of header row is automatically centered and appears in boldface.
FORMS in HTML – Forms is used to make a web page interactive. From
allows the user to enter some data and this data can then sent to a web
server or to another web page.
<FORM> tag – It is used to create a form on a web page.
Attributes of <FORM> tag are:
1. NAME : Specifies the name of the form.
2. ACTION : Specifies the URL where the form data is sent when
the form is submitted.
3. METHOD : Specifies how the form data is submitted.
<INPUT> tag – It is used to provide an input field in a form where the
user can enter the data. An input filed may be a textfield, a checkbox, a
radiobutton and more.
Attributes of <INPUT> tag are:
1 TYPE : Determines the field type to take input. Field type may be
radio, checkbox button and more.
2. NAME : Specifies the name of the field.
3. VALUE : Specifies the text to be displayed on the field.
Different filed types :
S.No. Field Type : Use
1. TEXT : To provide a single line text input field
to enter text.
2. PASSWORD : To provide a single line text input field
to enter password.
3. RADIO : To provide a radio button.
4. CHECKBOX : To provide a check box.
5. SUBMIT : To provide a button on the form. When
it is clicked , the form is submitted to
the destination.
6. RESET : To provide a button on the form. When
it is clicked, the input fields are reset to
their default state.
XML (eXtensible Markup Language) – XML is also a markup language
like HTML. It is used to describe the data. XML has nothing to do with
presentation of data in the browser.
Difference between XML and HTML
1. HTML is used to display data and to focus on formatting data, whereas
XML is used to describe data and focus on what data is.
2. HTML tags are predefined, whereas XML tags are not predefined. We
create our own tags.
3. HTML tags are not case sensitive, whereas XML tags are case
sensitive.
Features of XML
1. It allows user to create his own tags and document structure.
2. XML can be used to store data.
3. It can be used to share data between two entirely different platforms.
4. XML is free. It can be written with a simple text editor.

More Related Content

What's hot

HTML
HTMLHTML
HTML
ARJUN
 
HTML (HyperText Markup Language)
HTML (HyperText Markup Language)HTML (HyperText Markup Language)
HTML (HyperText Markup Language)
Amber Bhaumik
 

What's hot (20)

Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Project excel
Project excelProject excel
Project excel
 
HTML
HTML HTML
HTML
 
HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
HTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al BasetHTML [Basic] --by Abdulla-al Baset
HTML [Basic] --by Abdulla-al Baset
 
TIK RIBBON GROUP MS.EXCEL 2007 BILINGUAL
TIK RIBBON GROUP MS.EXCEL 2007 BILINGUALTIK RIBBON GROUP MS.EXCEL 2007 BILINGUAL
TIK RIBBON GROUP MS.EXCEL 2007 BILINGUAL
 
html
htmlhtml
html
 
HTML5 with PHP.ini
HTML5 with PHP.iniHTML5 with PHP.ini
HTML5 with PHP.ini
 
HTML
HTMLHTML
HTML
 
Html basics
Html basicsHtml basics
Html basics
 
HTML Training Part1
HTML Training Part1HTML Training Part1
HTML Training Part1
 
web technology
web technologyweb technology
web technology
 
Lectuer html1
Lectuer  html1Lectuer  html1
Lectuer html1
 
Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)Class 10th FIT Practical File(HTML)
Class 10th FIT Practical File(HTML)
 
Xhtml
XhtmlXhtml
Xhtml
 
Html introduction Part-2
Html introduction Part-2Html introduction Part-2
Html introduction Part-2
 
CSS - LinkedIn
CSS - LinkedInCSS - LinkedIn
CSS - LinkedIn
 
HTML (HyperText Markup Language)
HTML (HyperText Markup Language)HTML (HyperText Markup Language)
HTML (HyperText Markup Language)
 
How to create a html webpage using notepad
How to create a html webpage using notepadHow to create a html webpage using notepad
How to create a html webpage using notepad
 

Similar to Chapter7 web application

vtu HTML+Course+Slide cse notes and .pdf
vtu HTML+Course+Slide cse notes and .pdfvtu HTML+Course+Slide cse notes and .pdf
vtu HTML+Course+Slide cse notes and .pdf
NaveenBhajantri1
 
Displaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSLDisplaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSL
Bình Trọng Án
 
Html, xml and java script
Html, xml and java scriptHtml, xml and java script
Html, xml and java script
Rajeev Uppala
 

Similar to Chapter7 web application (20)

html tutorial
html tutorialhtml tutorial
html tutorial
 
Html Basic Tags
Html Basic TagsHtml Basic Tags
Html Basic Tags
 
Html
HtmlHtml
Html
 
Unit 1 (part-1, basic tags)
Unit 1 (part-1, basic tags)Unit 1 (part-1, basic tags)
Unit 1 (part-1, basic tags)
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
WEB DESIGNING.pdf
WEB DESIGNING.pdfWEB DESIGNING.pdf
WEB DESIGNING.pdf
 
Web designing
Web designingWeb designing
Web designing
 
vtu HTML+Course+Slide cse notes and .pdf
vtu HTML+Course+Slide cse notes and .pdfvtu HTML+Course+Slide cse notes and .pdf
vtu HTML+Course+Slide cse notes and .pdf
 
Unit 1-HTML Final.ppt
Unit 1-HTML Final.pptUnit 1-HTML Final.ppt
Unit 1-HTML Final.ppt
 
PPT-203105353-1.pdf
PPT-203105353-1.pdfPPT-203105353-1.pdf
PPT-203105353-1.pdf
 
chapter-17-web-designing2.pdf
chapter-17-web-designing2.pdfchapter-17-web-designing2.pdf
chapter-17-web-designing2.pdf
 
Html presentation
Html presentationHtml presentation
Html presentation
 
HTML CSS.pdf
HTML CSS.pdfHTML CSS.pdf
HTML CSS.pdf
 
Html
HtmlHtml
Html
 
Displaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSLDisplaying XML Documents Using CSS and XSL
Displaying XML Documents Using CSS and XSL
 
Html, xml and java script
Html, xml and java scriptHtml, xml and java script
Html, xml and java script
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
Chapter 2 Final.pptx
Chapter 2 Final.pptxChapter 2 Final.pptx
Chapter 2 Final.pptx
 
HTML TABLES
HTML TABLESHTML TABLES
HTML TABLES
 

Recently uploaded

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Salient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptxSalient features of Environment protection Act 1986.pptx
Salient features of Environment protection Act 1986.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 

Chapter7 web application

  • 1. Chapter – 7 Web Applications HTML (Hyper Text Markup Language) – HTML is a document layout and hyperlink specification language i.e. a language used to design the layout of a document and to specify the hyperlinks. Tag – A Tag is a HTML command that indicates how part of web page should be displayed. Attribute – An attribute is a special word used to specify additional information to tag such as color, alignment etc. HTML Document Structure <HTML> <HEAD> <TITLE> Title of Page </TITLE> </HEAD> <BODY> Contain actual text to be displayed and other tags </BODY> </HTML> <HTML> Tag – It defines the document as an HTML document. This tag tells the browser that the current document is an HTML document. Syntax <HTML> ……………. </HTML> <HEAD> tag – It defines the document headers including title. It does not affect the appearance of the document. Syntax <HEAD> ………………… </HEAD> <TITLE> tag – Contain the title to be displayed in the title bar. Syntax <TITLE> ………………… </TITLE> <BODY> tag – This tag contain all the tags, attribute and actual text to be displayed in the web page. Syntax <BODY> ………………… </BODY> HTML Elements – There are two types of element
  • 2. 1. Container elements – It is specified by pair of tags – Start tag and End tag e.g. <TITLE> </TITLE> . 2. Empty elements – Require just a starting tag and not an ending tag e.g. <BR> . BASIC HTML TAGS <BODY> tag – This tag contain all the tags, attribute and information to be displayed in the web page. Attributes of <BODY> tag are : 1. BGCOLOR : To change the background color. 2. BACKGROUND : Specify the path and filename of image that has to be used as the background of the document. 3. TEXT : To sets the color of the text in the document. <P> tag – To start a new paragraph. Syntax <P Align = “alignment”> …………………………. </P> Alignment cab be Left, Right and Center <BR> tag – Insert a line break which implies that text following the tag will be moved to next line. Syntax <BR> Horizontal Rules <HR> tag – This tag draw a horizontal line across the whole page. We can use this tag to visually divide the information into sections. Attribute used with <HR> tag are : 1 ALIGN : To change the alignment of line. Default is center alignment. 2. NOSHADE : Produce a solid horizontal rule that has no shading. 3. SIZE : Defines the thickness of the rule. 4. WIDTH : Sets the width of the rule. 5. COLOR : Sets the color of the horizontal rule.
  • 3. Heading Styles : HTML has six levels of headings, numbered 1 to 6. The highest level heading is <H1> and lowest level is <H6>. Heading displayed in larger and bolder face than normal text. Syntax : <H> ……………………….. </H> Text Styles : BoldFace <B> tag – Displays the text in BOLDFACE style. Syntax : <B> …………………. </B> Italics <I> tag – Displays text in ITALICS. Syntax : <I> …………………. </I> Underline <U> tag – Displays text as underline. Syntax : <U> ………………… </U> Image <IMG> tag – It is used to insert an image in a web page. Attributes of <IMG> tag are: 1 SRC : Gives the location of image to be inserted. 2. BORDER : Specifies the size of border. 3. ALIGN : Specifies the alignment of image. 4. WIDTH : Specifies the horizontal width of the image. 5. HEIGHT : Specifies the height of the image. The <FONT> tag – It is used to specify font, size and color to the text. The attributes are: 1 FACE : Sets the font to the specified font name 2 SIZE : Sets the size of text between 1 and 7 (7 is the largest). The default size is 3. 3 COLOR : Sets the color of text Example : <FONT FACE=”Comic Sans MS” SIZE= 6 COLOR = RED > Welcome to our home page.
  • 4. </FONT> LISTS – Lists help us to organize the contents of the web page in an ordered and sequential manner. HTML supports three types of lists:  Unordered lists (bulleted lists)  Ordered lists (numbered)  Definition lists. Ordered Lists <OL> tag – It displays a numbered list. Each list item is started by a number or a letter. Attributes of <OL> tag are: 1 START : Specifies the starting number of the list. 2. TYPE : Defines the type of numbering sequence used for the list items. “1” for counting numbers (1,2,……) “A” for uppercase letters. “a” for lowercase letters. “I” for uppercase Roman numerals. “i" for lowercase Roman numerals. <OL TYPE=”1” START=3> <LI> CDs <LI> DVDs <LI> Hard Disks </OL> Unordered Lists <UL> tag – It displays a bulleted list. Attributes of <UL> tag are: 1 TYPE : Defines the type of bullet used for list item. The value can be : CIRCLE – hollow bullet.
  • 5. DISC – solid round bullet. SQUARE – a square bullet. Example : <UL> <LI> CDs <LI> DVDs <LI> Hard Disks </UL> Definition Lists <DL> tag– Definition lists consists of two parts: 1. Definition term – appears after the tag <DT> 2. Definition description – appears after the tag <DD> Example <DL> <DT> Keyboard <DD> An input device <DT> Printer <DD> An output device </DL> Output: Keyboard An input device Printer An output device List Item <LI> tag – It is used inside <OL> and <UL> tag to define list items. Each list item has to be preceded by <LI> tag. Syntax : <LI> List Item Name
  • 6. Tables – It is used to display data in organized manner (rows and columns). <TABLE> tag – This tag started by <TABLE> and ended by </TABLE> tag. Attribute of <TABLE> tag are: 1. ALIGN : To specify the alignment of table in relation to the window screen. It can be set to LEFT, CENTER, or RIGHT. 2. BGCOLOR : Sets the background color for the table. 3. BORDER : Sets the border thickness around the table. 4. VALIGN : Controls the vertical alignment of cell contents. It can be TOP, MIDDLE or BOTTOM. 5. WIDTH : Sets the WIDTH of table in relation to window screen. 6 CELLPADDING : Controls the distance between data and boundaries of the cell. 7. CELLSPACING : Controls the spacing between adjacent cells. TABLE ROW <TR> tag – Describe the row in a table. Attribute of <TR> tag are: 1. ALIGN : Controls the alignment of text to left, right or center. Default is left. 2. VALIGN : Controls the vertical alignment of text in a row. It can be top, bottom or middle. 3. BGCOLOR : Sets the background color of the table row. TABLE DATA <TD> tag – It is used to specify text in a cell of the table. TABLE HEADING <TH> tag – It is used to define header row. The content of header row is automatically centered and appears in boldface.
  • 7. FORMS in HTML – Forms is used to make a web page interactive. From allows the user to enter some data and this data can then sent to a web server or to another web page. <FORM> tag – It is used to create a form on a web page. Attributes of <FORM> tag are: 1. NAME : Specifies the name of the form. 2. ACTION : Specifies the URL where the form data is sent when the form is submitted. 3. METHOD : Specifies how the form data is submitted. <INPUT> tag – It is used to provide an input field in a form where the user can enter the data. An input filed may be a textfield, a checkbox, a radiobutton and more. Attributes of <INPUT> tag are: 1 TYPE : Determines the field type to take input. Field type may be radio, checkbox button and more. 2. NAME : Specifies the name of the field. 3. VALUE : Specifies the text to be displayed on the field. Different filed types : S.No. Field Type : Use 1. TEXT : To provide a single line text input field to enter text. 2. PASSWORD : To provide a single line text input field to enter password. 3. RADIO : To provide a radio button. 4. CHECKBOX : To provide a check box. 5. SUBMIT : To provide a button on the form. When it is clicked , the form is submitted to the destination. 6. RESET : To provide a button on the form. When
  • 8. it is clicked, the input fields are reset to their default state. XML (eXtensible Markup Language) – XML is also a markup language like HTML. It is used to describe the data. XML has nothing to do with presentation of data in the browser. Difference between XML and HTML 1. HTML is used to display data and to focus on formatting data, whereas XML is used to describe data and focus on what data is. 2. HTML tags are predefined, whereas XML tags are not predefined. We create our own tags. 3. HTML tags are not case sensitive, whereas XML tags are case sensitive. Features of XML 1. It allows user to create his own tags and document structure. 2. XML can be used to store data. 3. It can be used to share data between two entirely different platforms. 4. XML is free. It can be written with a simple text editor.