Svetlin Nakov Telerik Corporation www.telerik.com.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to XHTML Programming the World Wide Web Fourth edition.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Slice and Dice: From PSD Image to XHTML+CSS Svetlin Nakov Telerik Corporation
HTML Tags and Their Functions
Tables Tables provide a means of organising the layout of data
XP Tutorial 4New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
Chapter 3 – Web Design Tables & Page Layout
Introduction to HTML Part 2
1 Tables and Lists. 2 Are Tables still needed? Tables were once used to help structure and style our pages CSS now replaces most of the old uses for tables.
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?
Creating Tables in a Web Site
Microsoft Access.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
Benchmark Series Microsoft Excel 2013 Level 2
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Sample Service Screenshots Enterprise Cloud Service 11.3.
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Collin College Credit Exam
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Dr. Alexandra I. Cristea HTML Dr. Alexandra I. Cristea
Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
PSSA Preparation.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Essential Cell Biology
Chapter 13 Web Page Design Studio
Images, Tables, lists, blocks, layout, forms, iframes
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
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.
Computing Concepts Advanced HTML: Tables and Forms.
Svetlin Nakov Telerik Corporation
Doncho Minkov Technical Trainer Telerik School Academy.
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.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
HTML Web Programming.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
Svetlin Nakov Telerik Corporation
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
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.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
 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.
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
Svetlin Nakov Telerik Corporation
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
FORMS. Forms are used to receive information from the web surfer, such as: their name, address, credit card, etc. Form fields are objects that allow.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
HTML Forms Forms, Controls, Fields, Inputs, Submission, Validation SoftUni Team Technical Trainers Software University
Tables, Rows, Columns, Cells, Header, Footer, Colspan, Rowspan
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.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
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.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
TNPW1 Ing. Jiří Štěpánek.  ordered list  (list item)  unordered list  (list item)
Creating and Processing Web Forms
Objectives Design a form Create a form Create text fields
CS3220 Web and Internet Programming HTML Tables and Forms
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
CS3220 Web and Internet Programming HTML Tables and Forms
Presentation transcript:

Svetlin Nakov Telerik Corporation

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

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

Tables represent tabular data Tables represent tabular data A table consists of one or several rows A table consists of one or several rows Each row has one or more columns 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 comprised of several core tags: : begin / end the table : create a table row : create tabular data (cell) Tables should not be used for layout. Use CSS floats and positioning styles instead Tables should not be used for layout. Use CSS floats and positioning styles instead 5

Start and end of a table Start and end of a table Start and end of a row Start and end of a row Start and end of a cell in 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

Table rows split into three semantic sections: header, body and footer Table rows split into three semantic sections: header, body and footer denotes table header and contains elements, instead of elements denotes table header and contains elements, instead of elements denotes collection of table rows that contain the very data denotes collection of table rows that contain the very data denotes table footer but comes BEFORE the tag denotes table footer but comes BEFORE the tag and define columns (most often used to set column widths) and define columns (most often used to set column widths) 10

11 <table><colgroup> </colgroup><thead> Column 1 Column 2 Column 1 Column 2 </thead><tfoot> Footer 1 Footer 2 Footer 1 Footer 2 </tfoot><tbody> Cell 1.1 Cell 1.2 Cell 1.1 Cell 1.2 Cell 2.1 Cell 2.2 Cell 2.1 Cell 2.2 </tbody></table> header footer Last comes the body (data) th columns

<table><colgroup> </colgroup><thead> Column 1 Column 2 Column 1 Column 2 </thead><tfoot> Footer 1 Footer 2 Footer 1 Footer 2 </tfoot><tbody> Cell 1.1 Cell 1.2 Cell 1.1 Cell 1.2 Cell 2.1 Cell 2.2 Cell 2.1 Cell 2.2 </tbody></table> 12 table-full.html Although the footer is before the data in the code, it is displayed last By default, header text is bold and centered.

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

Live Demo

cellpadding cellpadding Defines the empty space around the cell content Defines the empty space around the cell content cellspacing cellspacing Defines the empty space between cells Defines the empty space between cells Tables have two important attributes: Tables have two important attributes: 15 cellcell cellcell cell cell cell cell

16 <html> Table Cells Table Cells First First Second Second First Second First Second </html> table-cells.html

17 <html> Table Cells Table Cells First First Second Second First Second First Second </html> table-cells.html

Live Demo

rowspan rowspan Defines how many rows the cell occupies Defines how many rows the cell occupies colspan colspan Defines how many columns the cell occupies Defines how many columns the cell occupies Table cells have two important attributes: Table cells have two important attributes: 19 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"

20 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] </table> table-colspan-rowspan.html

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] </table> 21 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 Forms are the primary method for gathering data from site visitors Create a form block with Create a form block with Example: Example: 23 <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

Single-line text input fields: Single-line text input fields: Multi-line textarea fields: Multi-line textarea fields: Hidden fields contain data not shown to the user: Hidden fields contain data not shown to the user: Often used by JavaScript code Often used by JavaScript code 24 This is a multi-line text field This is a multi-line text field

Fieldsets are used to enclose a group of related form fields: Fieldsets are used to enclose a group of related form fields: The is the fieldset's title. The is the fieldset's title. 25 Client Details Client Details Order Details Order Details </form>

Checkboxes: Checkboxes: Radio buttons: Radio buttons: Radio buttons can be grouped, allowing only one to be selected from a group: Radio buttons can be grouped, allowing only one to be selected from a group: 26

Dropdown menus: Dropdown menus: Submit button: Submit button: 27 <option value="Value 1" <option value="Value 1" selected="selected">Male selected="selected">Male Female Female Other Other </select>

Reset button – brings the form to its initial state Reset button – brings the form to its initial state Image button – acts like submit but image is displayed and click coordinates are sent Image button – acts like submit but image is displayed and click coordinates are sent Ordinary button – used for Javascript, no default action Ordinary button – used for Javascript, no default action 28

Password input – a text field which masks the entered text with * signs Password input – a text field which masks the entered text with * signs Multiple select field – displays the list of items in multiple lines, instead of one Multiple select field – displays the list of items in multiple lines, instead of one 29 <option value="Value 1" <option value="Value 1" selected="selected">keyboard selected="selected">keyboard mouse mouse speakers speakers </select>

File input – a field used for uploading files File input – a field used for uploading files When used, it requires the form element to have a specific attribute: When used, it requires the form element to have a specific attribute: </form>

Form labels are used to associate an explanatory text to a form field using the field's ID. Form labels are used to associate an explanatory text to a form field using the field's ID. Clicking on a label focuses its associated field (checkboxes are toggled, radio buttons are checked) Clicking on a label focuses its associated field (checkboxes are toggled, radio buttons are checked) Labels are both a usability and accessibility feature and are required in order to pass accessibility validation. Labels are both a usability and accessibility feature and are required in order to pass accessibility validation. 31 First Name First Name

32 Academic information Academic information Degree Degree Bachelor of Art Bachelor of Art Bachelor of Science Bachelor of Science Master of Master of Business Administration Business Administration Student ID Student ID Personal Details Personal Details First Name First Name Last Name Last Name form.html

33 Gender: Gender: Male Male Female Female <textarea name="terms" cols="30" rows="4" <textarea name="terms" cols="30" rows="4" readonly="readonly">TERMS AND CONDITIONS... readonly="readonly">TERMS AND CONDITIONS... </form> form.html (continued)

34

The tabindex HTML attribute controls the order in which form fields and hyperlinks are focused when repeatedly pressing the TAB key The tabindex HTML attribute controls the order in which form fields and hyperlinks are focused when repeatedly pressing the TAB key tabindex="0" (zero) - "natural" order tabindex="0" (zero) - "natural" order If X > Y, then elements with tabindex="X" are iterated before elements with tabindex="Y" If X > Y, then elements with tabindex="X" are iterated before elements with tabindex="Y" Elements with negative tabindex are skipped, however, this is not defined in the standard Elements with negative tabindex are skipped, however, this is not defined in the standard 35

, and, and

Frames provide a way to show multiple HTML documents in a single Web page Frames provide a way to show multiple HTML documents in a single Web page The page can be split into separate views (frames) horizontally and vertically The page can be split into separate views (frames) horizontally and vertically Frames were popular in the early ages of HTML development, but now their usage is rejected Frames were popular in the early ages of HTML development, but now their usage is rejected Frames are not supported by all user agents (browsers, search engines, etc.) Frames are not supported by all user agents (browsers, search engines, etc.) A element is used to provide content for non-compatible agents. A element is used to provide content for non-compatible agents. 37

38 <html> Frames Example Frames Example </html> frames.html Note the target attribute applied to the elements in the left frame. Note the target attribute applied to the elements in the left frame.

Inline frames provide a way to show one website inside another website: Inline frames provide a way to show one website inside another website: 39 iframe-demo.html

Questions?

41 6. Create Web Pages like the following using tables: 7. Create a Web Page like the following using forms:

8. Create a Web form that looks like this sample: 42 See the image Sample-form.png