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

Similar documents
Spring 2014 Interim. HTML forms

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

HTML Forms. By Jaroslav Mohapl

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

Structure Bars. Tag Bar

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

1 Form Basics CSC309

CSC Web Technologies, Spring HTML Review

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Creating and Building Websites

CSE 154 LECTURE 8: FORMS

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

HTML 5 Tables and Forms

Web Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun.

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

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

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

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

Deccansoft Software Services

Hyperlinks, Tables, Forms and Frameworks

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

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

HTML: Fragments, Frames, and Forms. Overview

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

OVERVIEW. How tables are structured. Table headers. Cell spanning (rows and columns) Table captions. Row and column groups

HTML Form. Kanida Sinmai

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

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

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

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

Advanced HTML Scripting WebGUI Users Conference

HTML and JavaScript: Forms and Validation

Enterprise Knowledge Platform Adding the Login Form to Any Web Page

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1

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

CPET 499/ITC 250 Web Systems. Topics

Table-Based Web Pages

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Programming of web-based systems Introduction to HTML5

16. HTML5, HTML Graphics, & HTML Media 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

HTML. HTML Evolution

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

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

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

HTML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Department of Computer Engineering Khon Kaen University

Advanced Web Programming C2. Basic Web Technologies

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

Creating a Web Page with HTML

Creating Web Pages Using HTML

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

!Accessibility Issues Found

Building Web Based Application using HTML

Chapter 3 HTML Multimedia and Inputs

Forms, CGI. Objectives

HTML and CSS COURSE SYLLABUS

HTML forms and the dynamic web

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

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

HTML Forms IT WS I - Lecture 11

HTML. MPRI : Web Data Management. Antoine Amarilli Friday, December 7th 1/28

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

INFS 2150 / 7150 Intro to Web Development / HTML Programming

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

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

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

Understanding this structure is pretty straightforward, but nonetheless crucial to working with HTML, CSS, and JavaScript.

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

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

c122sep2214.notebook September 22, 2014

COMS 359: Interactive Media

Session 10. Form Dataset. Lecture Objectives

Web Programming Week 2 Semester Byron Fisher 2018

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

Markup Language. Made up of elements Elements create a document tree

<page> 1 Document Summary Document Information <page> 2 Document Structure Text Formatting <page> 3 Links Images <page> 4

COMP519: Web Programming Lecture 4: HTML (Part 3)

QUICK REFERENCE GUIDE

Introducing Web Tables

HTML5, CSS3, JQUERY SYLLABUS

Designing UI. Mine mine-cetinkaya-rundel

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

Outline of Lecture 5. Course Content. Objectives of Lecture 6 CGI and HTML Forms

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

WCAG2-AA accessibility report for

WCAG2-AA accessibility report for

WCAG2-AA accessibility report for

WCAG2-AAA accessibility report for

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

Chapter 9 Table Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

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

Web Development & Design Foundations with HTML5

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Tables *Note: Nothing in Volcano!*

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

CE419 Web Programming. Session 3: HTML (contd.), CSS

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

1.264 Lecture 12. HTML Introduction to FrontPage

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

SilkTest 2009 R2. Rules for Object Recognition

Transcription:

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

2 Outline HTML Structures Tables Forms New HTML5 Elements Summary

HTML Tables

4 Tables Tables are created with <table> tag Each table is divided into rows <tr>, containing table data <td> <table border="1"> <tr> <td>hassan</td> <td>rohani</td> </tr> <tr> <td>barack</td> <td>obama</td> </tr> </table>

5 Headers and Captions Tables can have headers and captions <table border="1"> <caption>presidents</caption> <tr> <th>first Name</th> <th>last Name</th> </tr> <tr> <td>hassan</td> <td>rohani</td> </tr> <tr> <td>barack</td> <td>obama</td> </tr> </table>

6 Table Parts <table border="1"> <thead> <tr> <th>item</th> <th>price</th> </tr> </thead> <tbody> <tr> <td>notepad</td> <td>$100</td> </tr> </tbody> <tfoot> <tr> <td>total</td> <td>$100</td> </tr> </tfoot> </table>

7 Column Groups <table border="1"> <colgroup> <col style="background-color: yellow" /> <col style="background-color: lightgray" /> </colgroup> <tr> <th>first Name</th> <th>last Name</th> </tr> <tr> <td>hassan</td> <td>rohani</td> </tr> <tr> <td>barack</td> <td>obama</td> </tr> </table>

HTML Forms

9 Forms HTML forms are used to get user input Form elements include: Text Fields Buttons Menus Checkboxes Radio Buttons

10 Form Definition Forms are defined using <form> tag <form> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> </form>

11 Form Action Submit button is used to send data to server The form tag attributes: action: a URL to which the information is sent method: HTTP method for sending data (get or post) <form action="get-form.py" method="get"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="submit"> </form>

12 Form Inputs The <input> tag is multipurpose Input type is specified using type attribute text, password, checkbox, radio, button, submit, They should all have name attribute Their initial state can be set by value attribute They can be disabled by disabled attribute

13 Checkboxes <input type="checkbox"...> The name attribute names the checkbox The value attribute specifies the value bound to name if checkbox is submitted (default = on) The checked attribute indicates a pre-checked checkbox <form action="" method="get"> <input type="checkbox" name="device" value="iphone">iphone<br> <input type="checkbox" name="device" value="ipad">ipad<br> <input type="submit" value="submit"> </form>

14 Radio Buttons <input type="radio"...> Used to select one of many options Radio buttons with same name form a group of mutually exclusive options <form action="" method="get"> <input type="radio" name="device" value="iphone">iphone<br> <input type="radio" name="device" value="ipad">ipad<br> <input type="submit" value="submit"> </form>

15 Text Boxes <input type="text"...> The size attribute specifies the width in characters The maxlength attribute specifies the maximum number of characters Your Full Name: <input type="text" name="fullname" size="30" maxlength="50">

16 Passwords <input type="password"...> Identical to a text box, but text typed into the box is not readable on browser Useful for submitting sensitive information, like passwords, but not secure at all Password: <input type="password" name="pass">

17 Hidden Objects <input type="hidden"...> Represents a hidden input, invisible to the user Useful for sending hidden data to server, or keeping track of data as user traverses a collection of pages <input type="hidden" name="id" value="a84re">

18 Buttons <input type="submit"...> A button that submits the form to the server <input type="reset"...> A button that resets all form fields to their default state <input type="button"...> A button that does nothing!

19 Button Tag The <button> tag can be alternatively used to create buttons The type attribute specifies the type of button can be button, submit, reset Inside button element you can put text or image this is the main difference with input buttons <button type="button">click Here!</button>

20 Text Areas The <textarea> is used for multiline text input The rows and cols attributes specify the number of rows and columns <textarea rows="30" cols="50" name="text"> This is the text that you will see and can edit in the area. </textarea>

21 Menus The <select> tag is used to create menus Each option is enclosed in an option tag The size attribute determines how many options to be displayed at once <select name="device"> <option value="iphone">iphone</option> <option value="ipad">ipad</option> <option value="imac">imac</option> </select>

22 Labels The <label> tag defines a label for an input element The for attribute of the label must be equal to the id attribute of the input element <input type="checkbox" name="iphone" id="iphone"> <label for="iphone">i like iphone</label><br> <input type="checkbox" name="ipad" id="ipad"> <label for="ipad">i like ipad</label>

HTML5 New Elements

24 HTML5 Main Features 2D graphics with <canvas> and <svg> New media elements Support for local storage Drag and drop support New content-specific elements New form controls, like calendar and data list

25 New Media Elements <audio> <video> <source> <embed> <track> Defines sound content Defines a video or movie Defines multiple media resources for <video> and <audio> Defines a container for an external application or interactive content (a plug-in) Defines text tracks for <video> and <audio>

26 New Input Elements date number range color search email url

27 New Semantic Elements <header> <nav> <section> <article> <aside> <figure> <footer>

28 Summary HTML5 has introduces lots of new features: 2D drawing Media playback Input controllers Web storage Semantic, HTML5 is still a work in progress Some features are not yet supported by major browsers

29 References W3Schools http://www.w3schools.com/html Internet Programming by Pat Morin http://cg.scs.carleton.ca/~morin/teaching/2405/