Introduction to XHTML September 13, 2005. Components of website development

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

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?
Markup Languages Controlling the Display Of Web Content.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 3: Hyperlinks and Images.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 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.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
Understanding HTML Code
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
Images (1) Three most popular formats – Graphics Interchange Format (GIF) – Joint Photographic Experts Group (JPEG) – Portable Network Graphics (PNG) –
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.
Chapter 5: XHTML, Part 2 CIS 275—Web Application Development for Business I.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 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: 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.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Introduction to XHTML 1 Chapter 4 Introduction to XHTML: Part 1 Reference From: Internet & World Wide Web: How to Program Deitel, Deitel & Goldburg.
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.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to XHTML/HTML5 (part 2)
Chapter 4 Introduction to XHTML: Part 1
4 Introduction to XHTML.
Working with Tables: Module A: Table Basics
4 Introduction to XHTML.
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.
Chapter 5 Introduction to XHTML: Part 2
Chapter 4 - Introduction to XHTML: Part 1
Chapter 5 - Introduction to XHTML: Part 2
4 Introduction to XHTML.
1 Introduction to XHTML.
Introduction to HTML- Basics
Introduction to XHTML Cont:.
Introduction to HTML.
Presentation transcript:

Introduction to XHTML September 13, 2005

Components of website development

Components of website development Content Structure Format and design Dynamics and interactivity –Forms –Client-side programming –Server-side programming –Databases

Content Purpose, goal and objectives of the site Audience Structure of content Format and design of content Interactivity and enhancement of content presentation

Structure HTML vs. XHTML –HTML: Anything goes –XHTML: Strict conformance to standards Internal page structure –Page sections –Templates Site structure –Folder hierarchy –Content vs. resources –Maintaining file links

Format and design Graphics and aesthetics – Functionality, usability, and accessibility

Web graphics Bitmap vs. vector graphics GIF (Graphical Image Format) –256 colours only with transparency –Smaller size, but noncompressible –Supports animation –Best for line images, diagrams, animated GIFs JPEG (Joint Photographic Experts Group) –24-bit (true colour), no transparency –Compressible, but with loss of quality –Best for photographs and fine, complex art PNG (Portable Network Graphics) –256 to 24-bit colours with advanced transparency –Advanced meta information –Smallest file sizes attainable –Best of GIF (except animation) plus best of JPEG

4.1 Introduction Extensible HyperText Markup Language –XHTML A markup language Separation of the presentation of a document from the structure of the document’s information Based on HTML –Technology of the World Wide Web Consortium (W3C) Flavours –XHTML 1.0 Transitional: Half way between HTML and Strict –XHTML 1.0 Frameset: Transitional plus frames –XHTML 1.0 Strict: No frames, no formatting—pure structure –XHTML 1.1: Modularized—Latest version

4.2 Editing XHTML XHTML documents –Source-code form –Text editor (e.g. Notepad) or HTML editor (e.g Dreamweaver) –.html or.htm file-name extension –Web server Stores XHTML documents –Web browser Requests XHTML documents

4.3 First XHTML Example XHTML comments –Start with html element –head element Head section –Title of the document –Style sheets and scripts –body element Body section –Page’s content the browser displays Tags –Start tag attributes (provide additional information about an element) –name and value (separated by an equal sign) –End tag

main.html (1 of 1) XML Prolog:

4.4 W3C XHTML Validation Service Validation service ( validator.w3.org ) –Checking a document’s syntax URL that specifies the location of the file Uploading a file to the site

4.4 W3C XHTML Validation Service

XHTML Tags

5.8 meta Elements Specify information about a document Define keywords for search engines: – Define a description of your web page: – Refresh page every 5 seconds: – –Examples from

XHTML Basic Tags to –Hierarchical header levels –Paragraph –Line break –Horizontal rule

Character formatting and –Bolded text—XHTML vs. HTML and –Italicized text—XHTML vs. HTML and –Superscripts and subscripts Deprecated in XHTML: – and HTML entities – = > & = & © = © –Space character = (non-breaking space)

The heart of HTML: Links! … –Anchor: Just a hyperlink External links –Web pages Same website, same folder—relative referencing – A sister page Same website, different folder —relative referencing – A neighbouring page Different website (or could be same website)—absolute referencing – A distant page – addresses Mail me –FTP, other Internet resources Download me! Internal links –id attribute

The face of HTML: Images! src attribute –Specifies the location of the image file alt attribute –Alternate text, if image cannot display width and height –Scales image, and helps to render and load faster Pixels (“picture elements”) –Most monitors display 72 ppi (pixels per inch) –Standard monitor resolution is 800 x 600 pixels

5.7 Creating and Using Image Maps Designate certain areas of an image (called hotspots) as links Element map –Attributes id and name Identifies the image map Because of Firefox bug, use both id and name –Element area Defines hotspot Attribute shape and coords –Specify the hotspot’s shape and coordinates in pixels Rectangular ( shape = “rect” ) Polygon ( shape = “poly” ) Circle ( shape = “circle” ) For easy image maps, use a tool –GeoHTML:

Lists and –Unordered and ordered (numbered) lists –List item; that is, an individual item in a list

Frames –Defines a group of frames –cols, rows attributes define widths/heights of frames in either pixels or percentages of the screen –Defines a single frame within a group –Alternate XHTML to show for browsers that don’t support frames –Inline frame that doesn’t have to hug a border—full window within a window

4.11 Web Resources tors_r.html hotwired.lycos.com/webmonkey/00/50/index2a.html wdvl.com/Authoring/Languages/XML/XHTML

Tables and Forms

5.2 Basic XHTML Tables Organize data into rows and columns Attributes of –Border Specifies the table’s border thickness in pixels –Width Specifies the table’s width in pixels or % –Summary Describes the table’s contents Caption –Describes the table’s content and helps text-based browsers interpret table data Head section (header cell, defined with a thead element) –Contains header information such as column names –tr element (defines an individual table row) –th element (defines the columns in the head section) Foot section (defined with a tfoot element) Table body (defined with a tbody element) Data cells (defined with td element)

Elements of XHTML Tables Essential elements –Table rows –Data cells Attributes: –align: Aligns data horizontally –valign: Aligns data vertically Optional elements –Caption Describes the table’s content and helps text-based browsers interpret table data –Head section Contains header information such as column names –Table body –Foot section Footer for the entire table –Table headings Specially-formatted elements to designated row or column headers Can appear in any section, just like

Merging cells in tables Element colgroup –Groups and formats columns Element col –Attributes align: Determines the alignment of text in the column span: Determines how many columns the col element formats attributes rowspan and colspan –Specify the number of rows or columns occupied by a cell

5.4 Basic XHTML Forms Element form –Attribute action Specifies the URL of a script that processes the form ing form results to you is an option –Attribute method Specifies how the form’s data is sent to Web server method = “get” (default) –Appends form data directly to the end of the URL—visible to users method = “post” –Appends form data to the HTTP request—invisible to users –input Specifies data to provide to the script that processes the form

Form types : attributes for type –type=“text” (default) –type=“hidden” Variable for developer programming; hidden from users –type=“file” File upload dialogue –type=“password” Masks input of sensitive text Only masks from user—does not encrypt! –Multi-line text entry

Buttons for forms –type=“submit” Button that activates the action for the form –type=“reset” Resets all form fields to default values –type=“button” Generic, programmable button –type=“submit” and type=“reset” are the same as with those types

Multi-choice selections –type=“checkbox” Select one or more of multiple options –type=“radio” Choose only one of multiple options All radio buttons in a group must have the same name – tag can be used for clickable text –Drop-down listbox –Each is a distinct option value is programmatic value selected=“selected” is default value for the item

5.11 Web Resources html