1 © Netskills Quality Internet Training, University of Newcastle Structure, Presentation and Navigation © Netskills, Quality.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
1 © Netskills Quality Internet Training, University of Newcastle Introducing Cascading Style Sheets © Netskills, Quality Internet.
AHEAD HTML Accessibility Topics: Keyboard Accessibility Content and Structure Links Headings and Lists Images in HTML Pages Tables Forms.
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Introduction to HTML & CSS
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Web Development & Design Foundations with XHTML
Dr. Alexandra I. Cristea XHTML.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Cascading Style Sheets
Today CSS HTML A project.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
History Leading to XHTML
XHTML 16-Apr-17.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
The.htm/.html Mystery When saving the template files in Internet Explorer, they will be named.htm by default. To be consistent with how the code was written.
XHTML and CSS Overview. Hypertext Markup Language A set of markup tags and associated syntax rules Unlike a programming language, you cannot describe.
4.01 Cascading Style Sheets
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
IV. “Regular” Web Pages: HTML A Web Accessibility Primer: Usability for Everyone Office of Web Communications.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Creating a Simple Page: HTML Overview
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
CS 299 – Web Programming and Design Introduction to HTML.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
3 XHTML.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
1 © Netskills Quality Internet Training, University of Newcastle Web Page Design © Netskills, Quality Internet Training University.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Lesson 4.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
1 Web Application Programming Presented by: Mehwish Shafiq.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets
4.01 Cascading Style Sheets
Introduction to HTML.
CX Introduction to Web Programming
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
4.01 Cascading Style Sheets
Presentation transcript:

1 © Netskills Quality Internet Training, University of Newcastle Structure, Presentation and Navigation © Netskills, Quality Internet Training University of Newcastle Netskills is a trademark of Netskills, University of Newcastle.

2 © Netskills Quality Internet Training, University of Newcastle Topics Writing good HTML XHTML for structure Validation CSS for presentation Effective navigation Keyboard access

3 © Netskills Quality Internet Training, University of Newcastle Writing Good HTML Separate structure and presentation Use HTML for the structure only Use CSS for presentation (style and layout) Validate documents against a DTD Document Type Definition states the formal set of rules for the language Order of elements Nesting sequence Permissible attribute Validation checks against the rules

4 © Netskills Quality Internet Training, University of Newcastle Which Version of HTML HTML 4.01 Introduced use of style sheets Identified elements and attributes for deprecation, e.g. or XHTML 1.0 Web access no longer limited to web browsers PDAs, Mobile phones New mark-up languages written in XML The future is XML XHTML is the reformulation of HTML 4.01 in XML A stricter and tidier version of HTML Better again for accessibility

5 © Netskills Quality Internet Training, University of Newcastle XHTML Template Two attributes to specify the natural language Namespace, gives nested elements context when sourced from a document using more than one mark-up language The DTD or rules for the version of HTML Necessary HTML elements Character encoding

6 © Netskills Quality Internet Training, University of Newcastle More on XHTML All elements Names in lower case Properly nested Properly closed Hello When no element content: All attributes Names in lower case Values quoted Minimisation forbidden e.g. multiple="multiple", noresize="noresize" The "id" has replaced "name" attribute Space for compatibility with Netscape

7 © Netskills Quality Internet Training, University of Newcastle.. Simple document A simple XHTML page XHTML is the next generation of HTML XHTML Example Element names in lower case No minimisation of attributes Use of "id" attribute Attribute names in lower case Attribute values quoted

8 © Netskills Quality Internet Training, University of Newcastle And the DTD A DTD exists for all official versions of HTML HTML 4.01 and XHTML have three different DTDs: Strict Deprecated element names have been removed Better for accessibility Transitional Allows deprecated tags Better for backwards compatibility Frameset Defines use of frames Validate against a DTD validator.w3.org

9 © Netskills Quality Internet Training, University of Newcastle Cascading Style Sheets Style sheets specify presentational rules May be held In the section of the web page Or in an external file External style sheet Text file saved with.css extension Affects whichever pages link to it Many web pages can link to the same style sheet Only one master to maintain Most versatile Today, we will focus on external style sheets

10 © Netskills Quality Internet Training, University of Newcastle How Do Style Sheets Work? Style sheets specify formatting rules Consist of selectors and property:value pairs. Selectors are HTML tags, classes or IDs Classes and IDs are named groups of styles Use once, ID (not supported in Netscape 4) Re-use, class Validate CSS jigsaw.w3.org/css-validator HTML pages link to the style sheet selector{property:value;} body{background-color:blue;}

11 © Netskills Quality Internet Training, University of Newcastle Style Sheets in Action Selectors identify where to apply styles body{background-color:blue;color:yellow;}.reusable{font-size:2em;} #unique{background-color:yellow;color:blue;}.. <link rel="stylesheet" type="text/css" href="colors.css" /> This page should display yellow text on a blue background. Large text. Reverse colors. More large text. Result when viewed in web browser Stylesheet: Web page:

12 © Netskills Quality Internet Training, University of Newcastle Style Sheets for Layout Is the W3C Recommendation Set margins, borders, padding Create columns using CSS Positioning Not well supported in older browsers (Netscape 4, IE3) Use relative units (em or %) Page flow is the content sequence defined by the HTML Use CSS Positioning to change content sequence for graphical display Ensure the page downgrades gracefully Reads logically without CSS Is usable (Dynamic HTML?)

13 © Netskills Quality Internet Training, University of Newcastle Tables and Frames for Layout Tables for layout Not supported in XHTML (but can do it) Ensure that layout tables linearise Do not use table header tags Use relative units Use the simplest configuration Frames for layout Avoid if possible At best Priority 2 Necessary? VLEs use frames Screen Readers read frame names Inability to change frame names

14 © Netskills Quality Internet Training, University of Newcastle Effective Navigation In the site Site map or contents list (structural or alphabetical) Accessibility statement Feedback mechanism On each page: Search facility for all content Navigation system Main menu Breadcrumbs menu Plan your page Top ten guidelines for homepage usability (Jakob Nielsen)

15 © Netskills Quality Internet Training, University of Newcastle Navigation Menu Simple, intuitive, consistent, not deep Based on Text Images/rollover images (with alt attributes) Dont use JavaScript to follow links Flash Option to skip-navigation Visible for everyone Use accesskey and tabindex If using CSS Positioning for layout: Page flow: Change graphical display using CSS Positioning Search facility ContentNavigation

16 © Netskills Quality Internet Training, University of Newcastle Use Links Effectively Dont override default styles Familiarity enhances usability Screen readers list links Use descriptive standalone text Dont assume mouse usage No technical details or verbs in actual link Click here Follow link to go to Netskills home page Tell me more about Netskills Dont overpopulate your page Dont break the back button by Opening new windows Automatic redirection Tips from the W3C:

17 © Netskills Quality Internet Training, University of Newcastle Keyboard Access To links, form controls, objects Logical tab order By default follow page flow <input type="test" tabindex="1".. Keyboard shortcuts Recommendations for Government sites: BrowserTab indexKeyboard shortcut IE5+Y +s, IE4,Netscape 6+Y +s IE5 for MACY +s OperaNN

18 © Netskills Quality Internet Training, University of Newcastle Summary Use HTML for structure and validate Use CSS for style and layout Navigation should be simple and intuitive Screen readers read links in the order of "page flow" Page structure is essential for accessibility