Doncho Minkov Technical Trainer Telerik School Academy.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
Advertisements

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?
Tutorial 6 Creating a Web Form
Images, Tables, lists, blocks, layout, forms, iframes
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
SE-2840 Dr. Mark L. Hornick 1 HTML input elements and forms.
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.
Computing Concepts Advanced HTML: Tables and Forms.
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
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.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Svetlin Nakov Telerik Corporation
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
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.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
 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.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
HTML - Forms By Joaquin Vila, Ph.D.. Form Tag The FORM tag specifies a fill-out form within an HTML document. More than one fill-out form can be in a.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
76 © 1998, 1999, 2000 David T. Gray, Howard Duncan, Jane Kernan Frames When displaying information in a browser, it is sometimes useful to divide the display.
Svetlin Nakov Telerik Corporation
The past, the present, the future Telerik School Academy HTML, CSS and JavaScript.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
HTML Forms Forms, Controls, Fields, Inputs, Submission, Validation SoftUni Team Technical Trainers Software University
Forms Overview, Query string, Submitting arrays, PHP & HTML, Input types, Redirecting the user Mario Peshev Technical Trainer Software.
HTML Forms.
Tables, Rows, Columns, Cells, Header, Footer, Colspan, Rowspan
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 Web Engineering Forms Lecture 05. FORMS Its how HTML does interactivity. There are quite new feature in HTML5. But the fundamental idea does not change.
2.4. Choose and configure HTML5 tags to organize content and forms Choose and configure HTML5 tags for input and validation. Building the User Interface.
Tutorial 6 Creating a Web Form
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
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.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
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
Unit I: Collecting Data with Forms
CS3220 Web and Internet Programming HTML Tables and Forms
Presentation transcript:

Doncho Minkov Technical Trainer Telerik School Academy

 HTML Tables  Simple Tables  Complete HTML 5 Tables  Data cells and Header cells  Nested Tables  Complex tables  Cells Width  Cell Spacing and Padding  Column and Row Span 2

 HTML Forms  Form Fields and Fieldsets  Text boxes  Buttons  Checkboxes and Radio Buttons  Select fields  Hidden fields  Sliders and Spinboxes  Validation fields 3

 HTML Frames  Frame and Noframe tags  IFrames 4

 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 should not be used for layout. Use CSS floats and positioning styles instead 6

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

Live Demo

 Two kinds of cells in HTML 5 tables  Data cells – containing the table data  Header cells – used for the column names or some more important cells in a table  Why two kinds of cells?  Used to semantically separate the cells <tr> Full name Mark Full name Mark </tr><tr> Doncho Minkov Very good 5 Doncho Minkov Very good 5 </tr><tr> Georgi Georgiev Exellent 6 Georgi Georgiev Exellent 6 </tr>

Live Demo 10

With Header, Footer and Body 11

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

13 <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> 14 table-full.html Although the footer is before the data in the code, it is displayed last

Live Demo 15

Tables in Tables in Tables in Tables… 16

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

Live Demo

With Padding, Spacing and Stuff

 cellpadding  Defines the empty space around the cell content  cellspacing  Defines the empty space between cells  Tables have two attributes related to space 20 cellcell cellcell cell cell cell cell

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

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

Live Demo

How to make a two-cells column? Or row?

 rowspan  Defines how many rows the cell occupies  colspan  Defines how many columns the cell occupies  Cells have two attributes related to merging 25 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"

26 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> 27 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]

Live Demo 28

Entering User Data from a Web Page

 The primary method for gathering data from site visitors  HTML 5 Forms can contain  Text fields for the user to type  Buttons for interactions like "Register", "Login", "Search"  Menus, Sliders, etc…  Check Google, Yahoo, Facebook  Google search field is a simple Text field 30

 Create a form block with  Example: 31 <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:  Multi-line text input fields (textarea):  Password input – a text field which masks the entered text with * signs 32 This is a multi-line text field This is a multi-line text field

 Reset button – brings the form to its initial state  Submit button:  Image button – acts like submit but image is displayed and click coordinates are sent  Ordinary button – no default action, used with JS 33

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

 Dropdown menus:  Multiple-choice menus 35 <option value="Value 1" <option value="Value 1" selected="selected">Male selected="selected">Male Female Female Other Other </select> <option value="Value 1" <option value="Value 1" selected="selected">keyboard selected="selected">keyboard mouse mouse </select>

 Hidden fields contain invisible data  Not shown to the user  Used by JavaScript and server-side code  ViewState, SessionState, etc.. 36

 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)  Labels are both a usability and accessibility feature and are required in order to pass accessibility validation. 37 First Name First Name

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

Live Demo 39

Lets make it spin

 Restricts users to enter only numbers  Additional attributes min, max and step and value  Can become Spinbox or Slider, depending on the input type  Have some differences on different browsers  Sliders and Spinboxes do not work on Firefox  Shown as regular textboxes 41

Live Demo 42

 Autocomplete  The browser stores the previously typed values  Brings them back on a later visit on the same page  Autofocus  The field becomes on focus on page load  Required  The field is required to be filled/selected 43

 – provides a simple validation for  Can be passed a pattern for validation  On a mobile device brings the keyboard  URL – has validation for url  On a mobile device brings the url keyboard  Telephone  Brings the numbers keyboard 44

Live Demo 45

 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  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 46

Live Demo 47

, and, and

 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  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.)  A element is used to provide content for non-compatible agents. 49

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

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

Questions?

53 1. Create Web Pages like the following using tables: 2. Create a Web Page like the following using forms:

3. Create a Web form that looks like this sample: 54

4. Create a Calculator-like table. You should use a HTML 5 form for the Calculator  Buttons for all the numbers and operators (+, -, etc.)  Textbox for the result  Do not make the same styles as the example. 55

5. Create the following using tables and forms: 56

6. Construct the following Grid component:  Try to make a HTML page, that looks just like the example  Not required to style for the homework 57

7. Create the following HTML 5 Page  Hint: Use Fieldsets and Nested tables 58