Svetlin Nakov Telerik Corporation www.telerik.com.

Slides:



Advertisements
Similar presentations
Tables Tables provide a means of organising the layout of data
Advertisements

Using HTML Tables Presenting Information & Layout Control.
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.
Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Svetlin Nakov Telerik Corporation
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Images, Tables, lists, blocks, layout, forms, iframes
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
17/10/11. 2  The form element ( ) is used to include a number of form elements together so that they can be referenced by some other code in order to.
HTML and XHTML Controlling the Display Of Web Content.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
Computing Concepts Advanced HTML: Tables and Forms.
HTML TABLES Cyndi Hageman. Tables   Attributes Name or id – used to identify the table Border = set this to determine if there is a border and the size.
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.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Table, Forms, Metatags and Frames.
Session 2 Tables and forms in HTML Adapted by Sophie Peter from original document by Charlie Foulkes.
Svetlin Nakov Telerik Corporation
Doncho Minkov Technical Trainer Telerik School Academy.
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.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
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.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
Identifies the Structure Table Row Column 1 Table Heading Column 2.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
Svetlin Nakov Telerik Corporation
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
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.
 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
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.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
Tables, Rows, Columns, Cells, Header, Footer, Colspan, Rowspan
HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Introduction to XHTML/HTML5 (part 2) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web How To Program (multiple versions) 1.
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 Structure II (Form) WEEK 2.2. Contents Table Form.
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
Working with Tables: Module A: Table Basics
>> HTML: Tables.
HTML –II [List, Tables & Forms]
CS3220 Web and Internet Programming HTML Tables and Forms
Web Design and Development
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 5 Introduction to XHTML: Part 2
Chapter 5 - Introduction to XHTML: Part 2
CS3220 Web and Internet Programming HTML Tables and Forms
Lesson 5: HTML Tables.
Presentation transcript:

Svetlin Nakov Telerik Corporation

1. HTML Tables  Nested Tables  Cells Width  Cell Spacing and Padding  Column and Row Span 2

2. HTML Forms  Form Fields  Form Controls  Text field  Text area  Select  Radio button  Checkbox  Button  Image button 3

 Tables represent tabular data  A table consists of one or several rows  Each row has one or more columns  Tables comprised of several core tags: : begin / end the table : create a table row : create tabular data (cell)  Tables are losing favor to and, with the CSS revolution 5

 Start and end of a table  Start and end of a row  Start and end of a cell in a row

7 Lecture 1 Lecture 1 Lecture 2 Lecture 2 Lecture 2 - Demos Lecture 2 - Demos </table>

Lecture 1 Lecture 1 Lecture 2 Lecture 2 Lecture 2 - Demos Lecture 2 - Demos </table> 8

Live Demo

 Tables rows split into three sections: heading, body and footer, each containing table rows  Divides the table into semantic sections  Table sections:  denotes table heading  denotes collection of table rows that contain the very data  denotes table footer but comes BEFORE the tag 10

11 <table><thead> Column heading Column Column heading Column heading heading </thead><tfoot> Column footer Column Column footer Column footer footer </tfoot><tbody> Cell 1 Cell 2 Cell 1 Cell 2 Cell 3 Cell 4 Cell 3 Cell 4 </tbody></table> First comes the header Then comes the footer Last comes the body (data)

<table><thead> Column heading Column Column heading Column heading heading </thead><tfoot> Column footer Column Column footer Column footer footer </tfoot><tbody> Cell 1 Cell 2 Cell 1 Cell 2 Cell 3 Cell 4 Cell 3 Cell 4 </tbody></table> 12 table-full.html Although the footer is before the data in the code, it is displayed last

 Table data “cells” ( ) can contain nested tables (tables within tables): 13 Contact: Contact: First Name First Name Last Name Last Name </table> nested-tables.html

Live Demo

 Tables and cells can have width attribute  Width can be given in pixels or percentages 15 Left Left Center Center Right Right </table> table-width.html

Live Demo

 cellpadding  Defines the empty space around the cell contents  cellspacing  Defines the empty space between the cells  Tables have two important attributes: 17 cellcell cellcell cell cell cell cell

18 <html> Table Cells Table Cells <table cellspacing="15" cellpadding="0" <table cellspacing="15" cellpadding="0" bgcolor="red"> bgcolor="red"> First First Second Second <table cellspacing="0" cellpadding="10" <table cellspacing="0" cellpadding="10" bgcolor="yellow" border="1"> bgcolor="yellow" border="1"> First Second First Second </html> table-cells.html

19 <html> Table Cells Table Cells <table cellspacing="15" cellpadding="0" <table cellspacing="15" cellpadding="0" bgcolor="red"> bgcolor="red"> First First Second Second <table cellspacing="0" cellpadding="10" <table cellspacing="0" cellpadding="10" bgcolor="yellow" border="1"> bgcolor="yellow" border="1"> First Second First Second </html> table-cells.html

Live Demo

 rowspan  Defines how many rows the cell occupies  colspan  Defines how many columns the cell occupies  Table cells have two important attributes: 21 cell[1,1]cell[1,2] cell[2,1] colspan="1"colspan="1" colspan="2" cell[1,1]cell[1,2] cell[2,1] rowspan="2"rowspan="1" rowspan="1"

22 <html> Colspan and Rowspan Colspan and Rowspan <table cellspacing="0" cellpadding="10" <table cellspacing="0" cellpadding="10" border="1"> border="1"> Cell[1,1] Cell[1,1] Cell[2,1] Cell[2,1] Cell[1,2] Cell[1,2] Cell[2,2] Cell[2,2] Cell[3,2] Cell[3,2] Cell[1,3] Cell[1,3] Cell[2,3] Cell[2,3] </html> table-colspan-rowspan.html

<html> Colspan and Rowspan Colspan and Rowspan <table cellspacing="0" cellpadding="10" <table cellspacing="0" cellpadding="10" border="1"> border="1"> Cell[1,1] Cell[1,1] Cell[2,1] Cell[2,1] Cell[1,2] Cell[1,2] Cell[2,2] Cell[2,2] Cell[3,2] Cell[3,2] Cell[1,3] Cell[1,3] Cell[2,3] Cell[2,3] </html> 23 table-colspan-rowspan.html Cell[2,3]Cell[1,3] Cell[3,2] Cell[2,2] Cell[1,2] Cell[2,1]Cell[1,1]

Entering User Data from a Web Page

 Forms are the primary method for gathering data from site visitors  Create a form block with  Example: 25 <form></form>......</form> The "action" attribute tells where the form data should be sent The “method" attribute tells how the form data should be sent – via GET or POST request

 Text fields are single-line entry fields:  Text areas can contain multiple lines of text:  Hidden fields contain data not shown to user:  Often used by JavaScript code 26 This is a multi-line text field This is a multi-line text field

 Create a checkbox:  Create a radio button:  Radio buttons can be grouped, allowing only one to be selected from a group: 27

 Pull down menu (drop-down list):  Submit button: 28 <option value="Value 1" <option value="Value 1" selected="selected">Male selected="selected">Male Female Female Other Other </select>

 Reset button – clears the form  Image button – acts like submit but image is displayed instead of button  Ordinary button – used for JavaScript, no default action 29

 Password input – acts like normal text field but hides the text with * signs  Multiple select field – code is like drop down but displays list of items to select 30 <option value="Value 1" <option value="Value 1" selected="selected">keyboard selected="selected">keyboard mouse mouse speakers speakers </select>

31 Degree: Degree: Bachelor of Art Bachelor of Art Bachelor of Science Bachelor of Science Master of Master of Business Administration Business Administration First Name: First Name: Last Name: Last Name: Student ID: Student ID: form.html

32 Gender: Gender: <input name="gender" type="radio" value="Male" <input name="gender" type="radio" value="Male" checked="true" /> Male checked="true" /> Male Female Female <textarea name="terms" cols="30" rows="4" <textarea name="terms" cols="30" rows="4" readonly="true">TERMS AND CONDITIONS readonly="true">TERMS AND CONDITIONS By clicking the Send Form button you agree to submit this form. By clicking the Send Form button you agree to submit this form. </form> form.html (continuation)

Gender: Gender: <input name="gender" type="radio" value="Male" <input name="gender" type="radio" value="Male" checked="true" /> Male checked="true" /> Male Female Female <textarea name="terms" cols="30" rows="4" <textarea name="terms" cols="30" rows="4" readonly="true">TERMS AND CONDITIONS readonly="true">TERMS AND CONDITIONS By clicking the Send Form button you agree to submit this form. By clicking the Send Form button you agree to submit this form. </form> form.html (continuation) 33

, and, and

 Frames provide a way to show multiple HTML documents in a single Web page  The page is split into multiple parts horizontally or vertically 35 <html> Frames Example Frames Example </html> frames.html

 Embedded frames provide a way to show one Web site inside another Web site: 36 <html> IFrame Example IFrame Example </html> iframe-demo.html

Questions?