Row and Column Spans. Homework. Column and Row Span Example (2) Column and Row Span Example. tables: Live Demo. like the following using forms:

Similar documents
Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics

HTML Forms. By Jaroslav Mohapl

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

CSC Web Technologies, Spring HTML Review

HTML: Fragments, Frames, and Forms. Overview

Creating and Building Websites

Spring 2014 Interim. HTML forms

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

CHAPTER 6: CREATING A WEB FORM CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity

Summary 4/5. (contains info about the html)

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

core programming HTML Forms Sending Data to Server-Side Programs Marty Hall, Larry Brown

Creating a Web Page with HTML

1 Form Basics CSC309

Web Site Design and Development Lecture 23. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.

HTML Form. Kanida Sinmai

HTML Forms IT WS I - Lecture 11

COMS 359: Interactive Media

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

HTML and JavaScript: Forms and Validation

Hyperlinks, Tables, Forms and Frameworks

CSE 154 LECTURE 8: FORMS

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

ITEC447 Web Projects CHAPTER 9 FORMS 1

Web Forms. Survey or poll Contact us Sign up for an newsletter Register for an event

COMP1000 Mid-Session Test 2017s1

Form Processing in PHP

HTML Element A pair of tags and the content these include are known as an element

Advanced HTML Scripting WebGUI Users Conference

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Lesson 3. Form By Raymond Tsang. Certificate Programme in Cyber Security

Building Web Based Application using HTML

Chapter 3 HTML Multimedia and Inputs

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

Website Development with HTML5, CSS and Bootstrap

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

CSS Review. Objec(ves. Iden(fy the Errors. Fixed CSS. CSS Organiza(on

Outline. Introducing Form. Introducing Forms 2/21/2013 INTRODUCTION TO WEB DEVELOPMENT AND HTML

Web Designing Course

HTML 5 Tables and Forms

BOOTSTRAP FORMS. Wrap labels and controls in a <div> with class.form-group. This is needed for optimum spacing.

A website is a way to present your content to the world, using HTML to present that content and make it look good

Table Basics. The structure of an table

HTML Forms. CITS3403 Agile Web Development. 2018, Semester 1

HTML. HTML Evolution

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Joomla 2.5 Flexi Contact Component Configuration

HTML crashcourse. general structure tables forms textfield textarea selectbox listbox hidden field checkbox radiobuttons submit button

Forms 4/3/2018. Two way communication. Sending Data from Client to Server. One way communication:

Information and Communication Technology (ICT) CBSE Board Question Paper 2018 Solution

Accessibility of EPiServer s Sample Templates

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Dreamweaver: Web Forms

Hyper- Any time any where go to any web pages. Text- Simple Text. Markup- What will you do

Forms, CGI. Objectives

Enterprise Knowledge Platform Adding the Login Form to Any Web Page

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

Last &me: Javascript (forms and func&ons)

IEEM 230. PHP Basics, Part IV. Objectives of the lab:

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

Web Development and HTML. Shan-Hung Wu CS, NTHU

Creating Forms. Speaker: Ray Ryon

c122sep2914.notebook September 29, 2014

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

Chapter 4 Sending Data to Your Application

Lecture (03) from static HTML to

Forms, CGI. HTML forms. Form example. Form example...

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Introducing Web Tables

Collecting Information with Forms

Dynamic Form Processing Tool Version 5.0 November 2014

jquery - Other Selectors In jquery the selectors are defined inside the $(" ") jquery wrapper also you have to use single quotes jquery wrapper.

Forms, CGI. Cristian Bogdan 2D2052 / 2D1335 F5 1

This program is a self-contained web server and interface for MediaPortal TV Engine edition.

Creating Web Pages Using HTML

CPET 499/ITC 250 Web Systems. Topics

Networking and Internet

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

Dynamic HTML becomes HTML5. HTML Forms and Server Processing. Form Submission to Web Server. DHTML - Mouse Events. CMST385: Slide Set 8: Forms

Introduction to DHTML

By Ryan Stevenson. Guidebook #2 HTML

DAY 2. Creating Forms

CST272 Getting Started Page 1

HTML WORKSHEET Explain HTML HEAD Tag Title Tag BASEFONT Tag

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Chapter 4 Notes. Creating Tables in a Website

IEEE Wordpress Theme Documentation

WEBD 236 Web Information Systems Programming

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code.

Deccansoft Software Services

Chapter 2. List, Tables,Frame and Forms

Transcription:

table-colspan colspan-rowspan.html <table cellspacing="0"> <tr class="1"> <td>cell[1,1]</td> <td colspan="2">cell[2,1]</td> </tr> <tr class="2"> <td>cell[1,2]</td> <td rowspan="2">cell[2,2]</td> <td>cell[3,2]</td></tr> <tr class="3"> <td>cell[1,3]</td> <td>cell[2,3]</td>< /tr> </table> Column and Row Span Example table-colspan colspan-rowspan.html Column and Row Span Example (2) <table cellspacing="0"> <tr class="1"> <td>cell[1,1]</td> <td colspan="2">cell[2,1]</td> </tr> <tr class="2"> Cell[1,1] Cell[2,1] <td>cell[1,2]</td> <td rowspan="2">cell[2,2]</td> <td>cell[3,2]</td></tr> Cell[1,2] Cell[3,2] <tr class="3"> <td>cell[1,3]</td> Cell[2,2] <td>cell[2,3]</td>< Cell[1,3] Cell[2,3] /tr> </table> 66 67 Homework Row and Column Spans 1. Create Web Pages like the following using tables: 2. Create a Web Page like the following using forms: 69

Homework (3) 3. Create a CalculatorCalculator-like table. You should use a HTML 5 form for the Calculator Buttons for all the numbers and operators (+, -, etc.) HTML Forms and Frames Textbox for the result Do not make the same styles as the example 70 Table of Contents Table of Contents HTML Forms HTML Frames Form Fields and Fieldsets Frame and noframe tags Text Boxes iframe tag Buttons Checkboxes and Radio Buttons Select Fields Hidden Fields Sliders and Spinboxes Validation Fields 72 73

HTML Forms Entering User Data from a Web Page What are HTML Forms? The primary method for gathering data from site visitors HTML Forms can contain Text fields for the user to type Buttons for interactions like "Register", "Login" Login", "Search" Search" Menus, Sliders,, etc Check Google, Yahoo, Facebook Google search field is a simple Text field 75 How to Create a HTML Form? Create a form block with <form></form> Example: <form name="myform" method="post" action="path/to/some-script.php"> script.php">... </form> The "method" attribute tells how the form data should be sent via GET or POST request The "action" attribute tells where the form data should be sent Single-line line text input fields: Multi-line line text input fields (textarea( textarea): Text Fields <input type="text" name="firstname" value="this is a text field" /> <textarea name="comments">this is a multi-line line text field</textarea> Password input a text field which masks the entered text with * signs <input type="password" name="pass" /> 76 77

Buttons Reset button brings the form to its initial state <input type="reset" name="resetbtn" value="reset the form" /> Submit button: <input type="submit" value="apply Now" /> Image button acts like submit but image is displayed and click coordinates are sent <input type="image" src="submit.gif" name="submitbtn" alt="submit" /> Ordinary button no default action, used with JS <input type="button" value="click me" /> 78 Checkboxes: Radio buttons: Checkboxes and Radio Buttons <input type="checkbox" name="fruit" value="apple" /> <input type="radio" name="title" value="mr." /> Radio buttons can be grouped, allowing only one to be selected from a group: <input type="radio" name="city city" " value="lom" /> <input type="radio" name="city city" " value="ruse" /> 79 Dropdown menus: <select name="gender"> <option value="value 1" selected="selected">male</option> <option value="value 2">Female</option> <option value="value 3">Other</option> </select> Multiple-choice menus Select Fields <select name="products" multiple="multiple"> <option value="value 1" selected="selected">keyboard</option> <option value="value 2">mouse</option> </select> 80 Hidden fields contain invisible data <input type="hidden" name="account" value="this is a hidden text field" /> Hidden Fields Not shown to the user Used by JavaScript and server-side sidecode ViewState, SessionState in ASP.NET 81

Labels Labels are used to associate an explanatory text to a form field using the field's ID <label for="fn">first Name</label> <input type="text" id="fn" /> Clicking on a label focuses its associated field Checkboxes are toggled Radio buttons are checked Labels are Both a usability and accessibility feature Required in to pass accessibility validation 82 Fieldsets Fieldsets are used to enclose a group of related form fields: <form method="post" action="form.aspx"> <fieldset> <legend>client Details</legend> <input type="text" id="name" /> <input type="text" id="phone" /> </fieldset> <fieldset> <legend>order Details</legend> <input type="text" id="quantity" /> <textarea cols="40" rows="10" id="remarks"></textarea> </fieldset> </form> The <legend> is the fieldset's title 83 HTML Forms Inputs Fields Sliders and Spinboxes Lets Make It Spin 8

Range and Spinbox Restricts users to enter only numbers Additional attributes min, max and step and value Can become Spinbox or Slider,, depending on the input type Sliders and Spinboxes <input type="range" min="0" max="100" /> <input type="number" min="0" max="100" /> Have some differences on different browsers Sliders and Spinboxes do not work on Firefox Shown as regular textboxes 86 Autocomplete Field Attributes from HTML 5 The browser stores the previously typed values Brings them back on a later visit Autofocus The field becomes on focus on page load <input type="text" name="firstname" autofocus="autofocus" /> Required The field is required to be filled/selected 88 Input Fields with Validation Email provides a simple validation for email Can be passed a pattern for validation In a mobile device brings the email keyboard <input type="email" required="true" pattern="[^ @]*@[^ @].[^ @]"/> URL has validation for url In a mobile device brings the url keyboard <input type="url" required="true" /> Telephone Brings the numeric keyboard <input type="tel" required="true" /> 89

HTML Forms Validation Tab Index 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 9 0 <input type="text" name="second" tabindex="10" /> <input type="text" name="first" tabindex="5" /> 91 Tab Index HTML Frames <frameset>, <frame> and <iframe>

HTML Frames 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 <noframes> element is used to provide content for non-compatible agents. 94 <html> HTML Frames Demo <head><title>frames Example</title></head> <frameset cols="180px,*,150px"> <frame src="left.html" /> <frame src="middle.html" /> <frame src="right.html" /> </frameset> </html> frames.html Note the target attribute applied to the <a> elements in the left frame. 95 Inline Frames: <iframe> Inline frames provide a way to show one website inside another website: iframe-demo.html <iframe name="iframegoogle" width="600" height="400" src="http://www.google.com" frameborder="yes" scrolling="yes"></iframe> Semantic Web How to Use HTML Elements Properly? 96

Web Page HTML, CSS and JavaScript The Semantic HTML HTML5 Semantic Tags Other Semantics Table of Contents