Interaction between browser and server. HTML (Hyper Text Markup Language)



Similar documents
HTML Basics(w3schools.com, 2013)

Introduction to HTML

XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari

Introduction to XHTML. 2010, Robert K. Moniot 1

Short notes on webpage programming languages

ICT 6012: Web Programming

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

WEB DESIGN LAB PART- A HTML LABORATORY MANUAL FOR 3 RD SEM IS AND CS ( )

HTML, CSS, XML, and XSL

So we're set? Have your text-editor ready. Be sure you use NotePad, NOT Word or even WordPad. Great, let's get going.

CSE 3. Marking Up with HTML. Tags for Bold, Italic, and underline. Structuring Documents. An HTML Web Page File

Accessibility in e-learning. Accessible Content Authoring Practices

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

CGI Programming. What is CGI?

Basic HTML Vocabulary Rules

Internet Technologies

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

Further web design: HTML forms

Formatting Text in Blackboard

Website Planning Checklist

XHTML Forms. Form syntax. Selection widgets. Submission method. Submission action. Radio buttons

HTML Forms and CONTROLS

Introduction to Web Design Curriculum Sample

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

CS412 Interactive Lab Creating a Simple Web Form

JISIS and Web Technologies

Making Content Editable. Create re-usable templates with total control over the sections you can (and more importantly can't) change.

HTML Forms. Pat Morin COMP 2405

The Web Web page Links 16-3

HTML5 and CSS3 The Future of the Web Programming HTML. Sergio Luján Mora

LAB MANUAL CS (22): Web Technology

HTML. A computer network is a collection of computers linked through cables or wireless means.

How to Create an HTML Page

07 Forms. 1 About Forms. 2 The FORM Tag. 1.1 Form Handlers

Tutorial 6 Creating a Web Form. HTML and CSS 6 TH EDITION

An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.

With tags you can create italic or bold characters, and can control the color and size of the lettering.

HTML Tables. IT 3203 Introduction to Web Development

Advanced Drupal Features and Techniques

By Glenn Fleishman. WebSpy. Form and function

Basic Website Maintenance Tutorial*

Urban Planet Website Content Management System. Step-by-Step Instructions

How to Manage Your Eservice Center Knowledge Base

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

PHP Form Handling. Prof. Jim Whitehead CMPS 183 Spring 2006 May 3, 2006

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

CSE 143, Winter 2013 Programming Assignment #2: HTML Validator Due Thursday, July 10, 2014, 11:30 PM

Creating your personal website. Installing necessary programs Creating a website Publishing a website

HTML Form Widgets. Review: HTML Forms. Review: CGI Programs

The McGill Knowledge Base. Last Updated: August 19, 2014

Using Form Tools (admin)

A Complete Guide to HTML Form Output for SAS/IntrNet Developers Don Boudreaux, SAS Institute Inc., Austin, TX

Web Development 1 A4 Project Description Web Architecture

Intell-a-Keeper Reporting System Technical Programming Guide. Tracking your Bookings without going Nuts!

c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Working with forms in PHP

2- Forms and JavaScript Course: Developing web- based applica<ons

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Start Secure. Stay Secure. Cross-Site Scripting. Are your web applications vulnerable? By Kevin Spett

Web Design with Dreamweaver Lesson 4 Handout

CREATING WEB PAGES USING HTML INTRODUCTION

Creating HTML authored webpages using a text editor

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Cisco Adaptive Security Appliance (ASA) Web VPN Portal Customization: Solution Brief

Introduction to Web Design Final Review - Farris

CGI.pm Tutorial. Table of content. What is CGI? First Program

COMMON CUSTOMIZATIONS

Chapter 22 How to send and access other web sites

Lesson Review Answers

Your First Web Page. It all starts with an idea. Create an Azure Web App

How to code, test, and validate a web page

Building Web Sites: Introduction to HTML

Web Programming with XHTML

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

Caldes CM12: Content Management Software Introduction v1.9

InternetVista Web scenario documentation

Sample HP OO Web Application

Novell Identity Manager

The Basics of Dynamic SAS/IntrNet Applications Roderick A. Rose, Jordan Institute for Families, School of Social Work, UNC-Chapel Hill

PSU Customization: Foundations. Customization: Foundations. The Cost of Modifying PowerSchool Pages. Languages of PowerSchool Customization

About webpage creation

JAVASCRIPT AND COOKIES

AJAX The Future of Web Development?

Chapter 2: Interactive Web Applications

Lab 1.3 Basic HTML. Vocabulary. Discussion and Procedure

A MODEL FOR THE AUTOMATION OF HTML FORM CREATION AND VALIDATION. Keywords: html, form, web, automation, validation, class, model.

Transcription:

Interaction between browser and server The client/server model is a computing model that acts as a distributed application which partitions tasks or workloads between the providers of a resource or service, called servers, and service requesters, called clients.[1] Often clients and servers communicate over a computer network on separate hardware, but both client and server may reside in the same system. A server machine is a host that is running one or more server programs which share their resources with clients. A client does not share any of its resources, but requests a server's content or service function. Clients therefore initiate communication sessions with servers which await incoming requests. HTML (Hyper Text Markup Language) HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of markup tags The tags describes document content HTML documents contain HTML tags and plain text HTML documents are also called web pages HTML Tags HTML markup tags are usually called HTML tags HTML tags are keywords (tag names) surrounded by angle brackets like <html> HTML tags normally come in pairs like <b> and </b> The first tag in a pair is the start tag, the second tag is the end tag The end tag is written like the start tag, with a forward slash before the tag name Start and end tags are also called opening tags and closing tags <tagname>content</tagname> HTML Elements "HTML tags" and "HTML elements" are often used to describe the same thing. But strictly speaking, an HTML element is everything between the start tag and the end tag, including the tags: HTML Element: 1

HTML Page Structure Below is a visualization of an HTML page structure: <html> <body> <h1>this a Heading</h1> <p>this is another paragraph.</p> </body> </html> HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1>this is a heading</h1> <h2>this is a heading</h2> <h3>this is a heading</h3> HTML Paragraphs HTML paragraphs are defined with the <p> tag. <p>this is another paragraph.</p> HTML Links HTML links are defined with the <a> tag. <a href="http://www.w3schools.com">this is a link</a> Note: The link address is specified in the href attribute. HTML Images HTML images are defined with the <img> tag. <img src="w3schools.jpg" width="104" height="142"> Empty HTML Elements HTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML). HTML Attributes Attributes provide additional information about HTML elements. HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" Attribute HTML links are defined with the <a> tag. The link address is specified in the href attribute: <a href="http://www.w3schools.com">this is a link</a> 2

HTML Formatting Tags This text is bold This text is italic This is computer output This is subscript and superscript HTML uses tags like <b> and <i> for formatting output, like bold or italic text. <p>an example of <b>bold Text</b></p> <p>an example of <em>emphasized Text</em></p> <p>an example of <strong>strong Text</strong></p> <p>an example of <i>italic Text</i></p> <p>an example of <sup>superscripted Text</sup></p> <p>an example of <sub>subscripted Text</sub></p> <p>an example of <del>struckthrough Lists Text</del></p> Unordered <p>an example list of <code>computer Code <ul> Text</code></p> <li>item</li> <li>item</li> </ul> Ordered list <ol> <li>first item</li> <li>second item</li> </ol> Definition list <dl> <dt>item 1</dt> <dd>describe item 1</dd> <dt>item 2</dt> <dd>describe item 2</dd> </dl> Iframe <iframe src="demo_iframe.htm"></iframe> An example of Bold Text An example of Emphasized Text An example of Strong Text An example of Italic Text superscripted Text An example of An example of subscripted Text An example of struckthrough Text An example of Computer Code Text Tables <table border="1"> <tr> <th>table header</th> <th>table header</th> </tr> <tr> <td>table data</td> <td>table data</td> </tr> </table> Include video into your web page <video width="320" height="240" controls autoplay> <source src="movie.ogg" type="video/ogg"> <source src="movie.mp4" type="video/mp4"> <source src="movie.webm" type="video/webm"> <object data="movie.mp4" width="320" height="240"> <embed width="320" height="240" src="movie.swf"> </object> </video> Or/ <embed src="intro.swf" height="200" width="200"> 3

HTML Forms and Input HTML Forms are used to select different kinds of user input and to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements. The tag is used to create an HTML form: input elements HTML Forms - The Input Element The most important form element is the <input> element. The <input> element is used to select user information. An <input> element can vary in many ways, depending on the type attribute. An <input> element can be of type text field, checkbox, password, radio button, submit button, and more. Text Fields <input type="text"> defines a one-line input field that a user can enter text into: First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"> How the HTML code above looks in a browser: First name: Last name: Password Field Password: <input type="password" name="pwd"> Radio Buttons <input type="radio" name="sex" value="male">male<br> <input type="radio" name="sex" value="female">female Checkboxes <input type="checkbox" name="vehicle" value="bike">i have a bike<br> <input type="checkbox" name="vehicle" value="car">i have a car Submit Button <form name="input" action="html_form_action.asp" method="get"> Username: <input type="text" name="user"> <input type="submit" value="submit"> 4

GET versus POST Requests on HTML Forms When you are submitting a form or sending data to a web server or web page, you have two methods you can use to transfer that data: get post You can tell these two methods apart by looking at how the data is sent. GET requests are sent as a query string on the URL while POST requests are sent in the body of the HTTP request. What this means is that a GET request can be seen by the user because the form data is written to the URL. While POST requests are sent as part of the HTTP request and are not seen by the user directly. GET requests have the following features. They are defined in the URL field and because of that: They remain in the browser history and can be accessed using the History API. They can be cached, like any other URL. They can be bookmarked or sent to other people. They can be used anywhere there is a link. Because of these features, you should never use a GET request to store sensitive data like passwords, credit card numbers, and identification codes. Also, keep in mind that URLs in Internet Explorer do have length restrictions. And form data can get extensive. Form data that might be longer than 2,000 characters including the domain, file name, and data labels should be sent by POST rather than GET as may become a may be a problem. You should use POST requests for actions that are unsafe. An unsafe action is one that can have adverse consequences if it is repeated. For example: When a customer submits a web form to make a purchase, if they submit that form again, they could make the purchase a second time without realizing it. POST requests are sent in the HTTP headers and so are mostly invisible to end users. This makes POST requests ideal for sensitive data. The data is hidden and not cached. If a reader bookmarks the form results page, the data is not sent again. In fact, in most PHP forms, the form is simply displayed as though no data had been sent (because none has). Also, because HTTP headers don't have the same types of limits as URLs, you can use POST requests for longer data fields. 5