/ 441 Internet Applications Ahmed M. Zeki Sem – 2 2000/2001 ---------------- Chapter 4.

Slides:



Advertisements
Similar presentations
Common Tags Always include the … tags Comments placed inside tags HTML documents –HEAD section Info about the document Info in header not generally rendered.
Advertisements

Tables Tables provide a means of organising the layout of data
Chapter 3 – Web Design Tables & Page Layout
Introduction to HTML Part 2
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?
Session 3 Intermediate HTML Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
1 Introduction to XHTML: Part 2 Outline Introduction Basic XHTML Tables Intermediate XHTML Tables and Formatting Basic XHTML Forms More Complex XHTML Forms.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 10 – Intermediate HTML 4 Outline 10.1Introduction 10.2Unordered Lists 10.3Nested and Ordered.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
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.
Creating Web Page Forms
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
© 2004, Robert K. Moniot Chapter 5 Introduction to HTML, Continued.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
1 HTML Advanced Features Dr. Awad Khalil Computer Science Department AUC.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
Chapter 10 – Intermediate HTML 4 Outline 10.1Introduction 10.2Unordered Lists 10.3Nested and Ordered Lists 10.4Basic HTML Tables 10.5Intermediate HTML.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
HTML: Hyptertext Markup Language Doman’s Sections.
1 Week Four– Advance HTML 2 Dr. Fadi Safieddine. 2 Lecture Content Basic HTML Tables Using based Feedback form Creating and Using Image Maps Nested.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
1 Chapter 2 - Introduction to HTML: Part 2 Outline Basic HTML Tables Intermediate HTML Tables and FormattingBasic HTML Forms More Complex HTML Forms Internal.
Introduction to XHTML/HTML5 (part 2) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web How To Program (multiple versions) 1.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Introduction to XHTML/HTML5 (part 2)
HTML Basics.
Client-Side Internet and Web Programming
Working with Tables: Module A: Table Basics
4 Introduction to XHTML.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Client-Side Internet and Web Programming
Chapter 5 - Introduction to XHTML: Part 2
1 Introduction to XHTML.
Introduction to HTML.
The Internet 10/27/11 XHTML Forms
Presentation transcript:

/ 441 Internet Applications Ahmed M. Zeki Sem – / Chapter 4

/ 442 HTML The unordered list element creates a list in which every line begins with a bullet mark. All entries in an unordered list must be enclosed within … tags, which open and close the unordered list element. Each entry in an unordered list is inserted with the tag, which creates a line break and inserts a bullet mark at the beginning of the line. You then insert and format any text. The closing list element tag ( ) is optional.

/ 443 Nested lists display information in outline form. A nested list is a list that appears in the bounds of another list element. Nesting the new list inside the original indents the list one level and changes the bullet type to reflect the nesting. Browsers insert a line of white space after every closed list.

/ 444 An ordered list ( … ) begins every new line with a sequence number instead of a bullet. By the default, ordered lists use decimal sequence number (1,2,3…).

/ 445 To change the sequence type of a list, use the TYPE attribute in the opening tag or in an individual tag. The default type is TYPE=1, which uses the 1,2,3…. sequence. The second type, TYPE=I, makes a capital Roman numeral sequence : I, II, III, and so on. TYPE=i creates the lowercase Roman numeral sequence: i, ii, iii, etc. The last two types are TYPE=A and TYPE=a, which produce uppercase and lowercase alphabetical sequence, respectively.

/ 446 HTML tables organize data into rows and columns. All tags and text that apply to a table go inside the … tags. The BORDER attribute lets you set the width of the tables border in pixels. The WIDTH attribute sets the width of the tableyou specify either a number of pixels or a percentage of the screen width. The text inside the … tags is inserted directly above the table in the browser window. The caption text is also to help text-based browsers interpret the table data.

/ 447 Tables can be split into distinct horizontal and vertical sections. Put all header information (such as table titles and column headers) inside the … tags. The TR (table row) element is used for formatting the cells of individual rows. All of the cells in the row belong within the … tags of that row.

/ 448 The smallest area of the table that we are able to format is the data cell. There are two types of data cells: ones located in the header ( … ) and ones located in the table body ( … ). Header cells, usually placed in the area, are suitable for titles and column headings. Like THEAD, the TBODY is used for formatting and grouping purposes. Most tables use TBODY to house the majority of their content.

/ 449 TD table data cells are left aligned by default. TH cells are centered by default. Forgetting to close any of the area formatting tags inside the table area can distort the table format. Just as you can use THEAD and TBODY element to format groups of table rows, you can use the COLGROUP element to group and format columns.

/ 4410 COLGROUP is used by setting in its opening tag the number of columns it affects and the formatting it imposes on that group of columns. Each COL element contained inside the.. tags can in turn format a specified number of columns.

/ 4411 You can add a background color or image to any table row or cell with either the BGCOLOR or BACKGROUND attributes, which are used in the same way as in the BODY element. It is possible to make some table data cells larger than others by using the ROWSPAN and COLSPAN attributes. The attribute value extends the data cell to span the specified number of cells.

/ 4412 The VALIGN (vertical alignment) attribute of a table data cell accepts the following values: top, middle, bottom and baseline. All cells in a table row whose VALIGN attribute is set to baseline will have the first text line on a common baseline. The default vertical alignment in all data and header cells is VALIGN=middle.

/ 4413 HTML provides several mechanisms - including the FORM- to collect information from people viewing your site. Use METHOD = post in a form that cause changes to server data, for example when updating a database. The form data will be sent to the server as an environment variable, which scripts are able to access.

/ 4414 The other possible value, METHOD = get, should be used when your form does not cause any changes in server side data, for example when making a database request. The form data from METHOD =get is appended to the end of the URL (For example: /cgi-bin/formmail?name=zeki&order=5). Because of this, the amount of data submitted using this METHOD is limited to 4K. Also be aware that METHOD = get is limited to standard characters, and cannot submit any special characters.

/ 4415 A web server is a machine that runs a software package such as PWS (Personal Web Server), MS IIS (Internet Information Server), Apache or Jigsaw. Servers are designed to handle browser requests. When a user uses a browser to request a page or file somewhere on the server, the server processes, this request and returns an answer to the browser.

/ 4416 In this example the data from the form goes to a CGI (Common Gateway Interface) script, which is a means of interfacing an HTML page with a script (program) written in Perl, C, Tcl or other languages. The script then handles the data fed to it by the server and typically returns some information for the user.

/ 4417 The ACTION attribute in the FORM tag is the path to a script that processes the form data. In the previous example, the script is a common script which s form data to an address. Most ISPs will have a script like this on their site, so you can ask your system administrator how to set up your HTML to use the script correctly.

/ 4418 The INPUT element is common in forms, and always requires the TYPE attribute. Two other attributes are NAME, which provides a unique identification for the INPUT, and VALUE, which indicates the value that the INPUT element sends to the server upon submission.

/ 4419 Hidden input always have the attribute TYPE = hidden. The three hidden inputs -shown in the previous example- are typically for this kind of CGI script: An address to which to send the data, the subject line of the and a URL to which the user is redirected after submitting the form.

/ 4420 The input TYPE=text inserts a one-line text bar into a form. The value of this INPUT element and the information that the server sends to you from this INPUT is the text that the user types into the bar. The SIZE attribute determines the width of the text input, measured in the characters. You can also set a maximum number of characters that the text input will accept by inserting the MAXLENGTH = length attribute.

/ 4421 You must make sure to include a textual identifier (in this case, Name:) adjacent to the INPUT element to indicate the function of the element. The TYPE=submit INPUT element places a button in the form that submits data to the server when clicked. The VALUE attribute of the submit input changes the text displayed on the button.

/ 4422 The TYPE=reset input element places a button on the form that, when clicked, will clear all entries the user has entered into the form. The TEXTAREA element inserts a box into the form. You specify the size of the box (which is scrollable inside the opening tag with the ROWS attribute and the COLS attribute.

/ 4423 Data entered in a TYPE=password input appears on the screen as asterisks. The password is used for submitting sensitive information that the user would not want others to be able to read. It is just the browser that displays asterisks the real form data is still submitted to the server.

/ 4424 Every INPUT element with TYPE = checkbox creates a new checkbox in the form. Checkboxes can be used individually or in the group may be selected at any time. All of the NAME attributes of a group of radio inputs must be the same and all of the VALUE attributes different. Insert the attributes CKECKED to indicate which radio button you would like selected initially.

/ 4425 The SELECT element places a selectable list of items inside your form. To add an item to the list, insert an OPTION element in the … area, and type what you want the list item to display on the same line. You can change the number of list options visible at one time by including the SIZE=size attribute inside the tag. Use this attribute if you prefer an expanded version of the list to one- line expandable list.

/ 4426 Internal Linking A location on a page is marked by including a NAME attribute in an A element. Clicking on this hyperlink in an anchor for linking. You can also link to an internal location on another page by using the URL of that location. For example: HREF = page.html#top.

/ 4427 Image Map An image map allows you to designate certain sections of the image as hotspots and then use these hotspots as anchors for linking. All elements of an image map are contained inside the … tags. The required attribute for the MAP element is NAME.

/ 4428 A hotspot on the image is designated with the AREA element. Every tag has the following attributes: HREF sets the target for the link on that spot, SHAPE and COORDS set the characteristics of the area and ALT function just as it does in tags. SHAPE=rect creates a rectangular hotspot around the coordinates of a COORDS element.

/ 4429 A coordinate pair consists of two numbers, which are the locations of the point on the x and y axes. The x-axis extends horizontally from the upper-left corner and the y-axis vertically. Every point on an image has a unique x-y coordinate, annotated as (x, y). In the case of a rectangular hotspot, the required coordinates are those of the upper- left and lower-right corners of the rectangle.

/ 4430 The SHAPE=poly creates a hotspot of no preset shapeyou specify the shape of the hotspot in the COORDS attribute by listing the coordinates of every vertex, or corner of the hotspot. SHAPE=circle creates a circular hotspot; it requires both the coordinates of the center of the circle and the length of the radius, in pixels.

/ 4431 To use an image map with a graphic on your page, you must insert the USEMAP = #name attribute into the IMG element, where name is the value of the NAME attribute in the MAP element. The main HTML element that interacts with search engines is the META element. tells the browser that the following HTML conforms to a transitional subset of HTML version 4.0.

/ 4432 META tags contain two attributes that should always be used. The first of these, NAME, is an identification of the type of META tag you are including. The CONTENT attribute gives the information the search engine will be cataloging.

/ 4433 The CONTENT of a META tag with NAME = keyword provides the search engines with a list of words that describe the key aspects of your site. By including META tags and their content information, you can give precise information about your site to search engines. This will help you draw a more focused audience to your site.

/ 4434 The description value of the NAME attribute in the META tag should be a 3 to 4 line description of your site, written in sentence form. This description is used by the search engine to catalog and display your site. META elements are not visible to users of the site and should be placed inside the header section of your HTML document.

/ 4435 tells the browser that we are using frames in the following code. You should include this modified version of whenever you use frames in your HTML document. The FRAMESET tag tells the browser that the page contains frames.

/ 4436 The value of COLS or ROWS gives the width of each frame, either in pixels or as a percentage of the screen. In each FRAME element, the SRC attribute gives the URL of the page that will be displayed in the specified frame.

/ 4437 The purpose of a NAME attribute in the FRAME element is to give an identity to that specific frame, in order to enable hyperlinks in a FRAMESET to load their intended FRAME. The TARGET attribute in an anchor element is set to the NAME of the FRAME in which the new page should load.

/ 4438 A target in an anchor element can be set to a number of preset values: TARGET = _blank loads the page in a new blank browser window. TARGET = _self loads the page into the same window as the anchor element. TARGET=_parent loads the page into the parent FRAMESET. TARGET=_top loads the page into the full browser window.

/ 4439 Not everyone who will be looking at your page will be using a browser that can be handle frames. You therefore need to include a NOFRAMES element inside of the FRAMESET. You should include regular HTML tags and elements within the … tags. Use this area to direct the user to a non- framed version of the site or to provide links for downloading a frame-enabled browser.

/ 4440 By nesting FRAMESET elements, you can create more complex layouts.

/ 4441 Quiz (1) You can specify the background of the page as an attribute in the tag. (True or False). (2) Why is this code invalid: Here is some text… And some more text… (3) Markup a paragraph of 3 lines using these tags: H3, EM, STRONG and BR. (4) write an HTML code to create an image, when clicked, the browser takes you to

/ 4442 Quiz #2 (1) Create an image, when clicked, it launches the system and create a new message. (2) Write an HTML code that: (1) Creates a paragraph (2) Changes the font to Arial (3) The size of the font is +1 (4) The color of the font is purple (3) What is the job of ALT keyword, it is used with ___________ tag. (4) The name of your site should always be: homepage.html (true or false).

/ 4443 Group Assignment (29 th Jan) Write a (3-page) report that describe the following topics: Browser extensions What are plug-ins and helpers? Browser extension categories. Browser.com Internet Security Cookies Trojan Horses

/ 4444 Assignment 29 th jan Create a table contains all HTML tags that we have covered. HTML Tag Opening and Closing Tags DescriptionAttributesValues To include and image in the document Src width pix - 40% of the width