HTML –II [List, Tables & Forms]

Slides:



Advertisements
Similar presentations
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
Introducing Web Tables
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
HTML: Tables and Forms. Objectives Use tables to structure a webpage Use forms to collect user input –Method:Get, Post –Input –Select –Textarea.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
Session 2 Tables and forms in HTML Adapted by Sophie Peter from original document by Charlie Foulkes.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
Svetlin Nakov Telerik Corporation
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
ECA 228 Internet/Intranet Design I Tables. ECA 228 Internet/Intranet Design I Basic HTML Tables Created as a way to present rows and clumns of data.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
HTML Basics (Part-3).
Client-Side Internet and Web Programming
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
CS3220 Web and Internet Programming HTML Tables and Forms
Chapter 8 and 9.
Lists-Tables-Frames Unit - I.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
HTML HTML – Hyper Text Markup Language
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Tables Tables provide a means of organising the layout of data
Introduction to HTML.
Client-Side Internet and Web Programming
Chapter 5 - Introduction to XHTML: Part 2
H T M L A B E S X P I N D.
List, Tables,Frame and Forms
Табеле Табеле се представљају елементом TABLE.
HTML: Basic Tags & Form Tags
مقدمة عن الإنترنت وفهم لغة HTML
Using HTML Tables SWBAT: - create tables using HTML
CS3220 Web and Internet Programming HTML Tables and Forms
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Basic HTML.
The Internet 10/27/11 XHTML Forms
In this session, you will learn to:
CS205 Tables & Forms © 2012 D. J. Foreman.
CS205 Tables & Forms © 2008 D. J. Foreman.
CS205 Tables & Forms © 2004 D. J. Foreman.
HTML: Basic Tags & Form Tags
Presentation transcript:

HTML –II [List, Tables & Forms] Chapter 7: Inheritance in JAVA Chapter 9: Database ConnectivityChapter 7: Inheritance in JAVA Chapter 12: HTML –II [List, Tables & Forms] Informatics Practices Class XII By- Rajesh Kumar Mishra PGT (Comp.Sc.) KV No.1, AFS, Suratgarh (Raj.) e-mail : rkmalld@gmail.com Rajesh Kumar Mishra, PGT(CS) Rajesh Kr.Mishra, PGT(CS)Rajesh Kumar Mishra, PGT(CS) 1

Un Ordered List <UL> ….. </UL> Each list element is defined with <LI> tag. Attributes Value Description TYPE Disk Square Circle It specifies the type Bullet symbol. Default is Disk type. Example: <UL> <LI> Drink <UL Type=Square> <LI> Tea <LI> Coffee </UL> <LI> Fruits <LI> Apple <LI> Mango Drink Tea Coffee Fruits Apple Mango

Ordered List <OL> ….. </OL> Drink Tea Coffee Fruits Apple Attributes Value Description TYPE A or a I or i 1 It specifies capital/small A,B,C,D.. etc. It specifies capital/small Romans I,II,III etc. It specifies the number 1,2,3 etc. (Default) START Defines starting value of list. Example: <OL Type=A> <LI> Drink <OL> <LI> Tea <LI> Coffee </OL> <LI> Fruits <OL Type=I> <LI> Apple <LI> Mango Drink Tea Coffee Fruits Apple Mango

Definition List <DL> ….. </DL> <DT> is used to define Definition Term <DD> is used to define Definition Description. COMPACT attribute with <DL> may be used to display Definition Description and Term in a single line. (Short Definition) <DL> <DT> Computer <DD> Computer is an electronic device. <DT> Software <DD> Software is a set of Instructions. </DL> Computer Computer is an electronic device. Software Software is a set of Instructions.

Tables in HTML <Table> ….. </Table> Tables are useful to display data in tabular form. The following core tags are used to create a table. <Table>.. </Table> defines a table object. <TR>… </TR> defines a Table Row. <TD>…</TD> defines a Table Data (cell value) <TH> .. </TH> defines Column Header. <CAPTION> .. </CAPTION> Defines caption of table. Caption Student’s Details Table Row Column Header Name Age Class Ajay 14 9 Amit 12 7 Table Data

Simple Example Student’s Details Name Age Class Ajay 14 9 Amit 12 7 <Table> <Caption> <B>Student’s Details </B></Caption> <TR> <TH> Name</TH> <TH>Age</TH> <TH>Class></TH> </TR> <TD> Name</TD> <TD>Age</TD> <TD>Class></TD> </TABLE> Student’s Details Name Age Class Ajay 14 9 Amit 12 7

Attributes in <Table> Tag Value Description Background Color Specifies the background image file (.jpg, .gif etc.) Bgcolor Specifies the background color. Border Defines the outline border size (0 – no border) Bordercolor Specifies the color of border. Frame Above, Below, Box, Hsides, Vsides etc. Specifies the portion of border will display. Used with Border attribute. Rules All, Cols, Rows, None Specifies the inside border edges to be displayed. Cellspacing Space between cells. Cellpadding Space between the cell border and cell data. Height Defines the height of table in pixel. Width Defines the width of table in pixel. Align Left, Right, Center Specifies the alignment of table across the page. Example: <Table Bgcolor=“Red” Border=3 Rules =“All” Align= center>

Attributes in <TD> Tag Value Description Background Color Specifies the background image file (.jpg, .gif etc.) for a cell. Bgcolor Specifies the background color for a cell. Rowspan Defines the Span of a cell in respect rows. Colspan Defines the span of cell in respect of columns. Width Defines the width of cell in pixel or % of table. Align Left, Right, Center Specifies the alignment of data in the cell. Valign Top, Middle, Bottom Defines Vertical Alignment, when rowspan of a cell is more than one row. <Table > <TR> <TD> Item1</TD><TD RowSpan=2 Valign=“Middle” >Item2<TD>Item3</TD> </TR> <TD>Item4</TD><TD>Item5</TD> </TABLE> Item1 Item2 Item3 Item4 Item5

Forms in HTML Forms are means to collect information/data from the Site-visitor or client. <FORM> … </Form> is used to define a form in <BODY> section of HTML page. Form contains some GUI controls to interact with users. Some of important controls are- Buttons Submit Button Reset Buttons Push Buttons Check Boxes Radio Buttons Combo Boxes (Menus) Password field Text Input (Text Field, Text Area etc.)

Creating Forms <FORM> ….. </FORM> This Tag can be used in <BODY> section to create a form. It may contains many other input controls. Commonly used Attributes are- Attributes Value Description Name String Specifies the name of the form Action Script or URL It specifies the Script or email-ID or URL which will receive data. Method Get Post Form Sends the information to specified URL. Sends the data in HTTP environment. Opens a new form as per specified URL. Example: <Form Method=Get Action=“www.google.com”> Commonly used method is- <Form Method=Post Action=“mailto:abc@yahoo.com”>

Adding Input Controls on the Form This Tag defines various input controls to get input from the user. Attributes Value Description Type Text Radio Checkbox Password Submit Reset Button Defines a Text Box. Defines a Radio Button. Defines a Check Box Creates a Password input box. Creates a Submit Button. Creates a Reset Buttons. Creates a push buttons. Name String It specifies the user given name of the input control. String/Val Specifies the initial value for the control. Size value Specifies the size of control. Example: <INPUT Type=“Text” Name=“St_name”> <INPUT Type=“Button” Name=“MyButton” Value=“OK”>

Adding Input Controls on the Form <SELECT>… </SELECT> This Tag creates a Drop-down Option menu from which user may select an option. <SELECT Name=“name” Size=“Value> <OPTION Value=“Value” [Selected]> Prompt </OPTION> ………………………………………………… </SELECT> Example <SELECT Name=“Stream”> <OPTION Value=“Science” > Science </OPTION> <OPTION Value=“Commerce”> Commerce </OPTION> <OPTION Value=“Arts” > Arts </OPTION> </SELECT>

Sample Form -Putting all together <html> <head><title> My page </title> </Head> <body> <H1> <U>Enquiry Form </u></h1> <Form method=Post action= "maoilto:rkmalld@gmail.com"> <b>Name </b> <Input type=Text name="st_name"><br> <b>Sex </b> <Input type=Radio name="sex" value="Male"> Male <Input type=Radio name="sex" value="Female"> Female<Br> </b>Email </B><Input type=Text Name ="email“> <br> Stream <SELECT name="stream"> <Option value="Science"> Science </Option> <Option value="Commerce"> Commerce </OPTION> <Option value="Arts"> Arts </Option> </SELECT> <Br> Comment<Br> <TextAREA name="comment" Rows=5 cols=50> </TEXTAREA><br> <INPUT Type=Submit Value ="Send"> <INPUT Type=Reset Value ="Clear"> </Form> </body> </html>

Sample Form