SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues Further features of HTML – Stylesheets and.

Slides:



Advertisements
Similar presentations
DEPARTMENT OF INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues Further features of XHTML – Stylesheets and CSS Andy Dawson.
Advertisements

Introduction to HTML & CSS
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
HTML – A Brief introduction Title of page This is my first homepage. This text is bold  The first tag in your HTML document is. This tag tells your browser.
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
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.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Chapter 6 Web Typography
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
Markup Languages Controlling the Display Of Web Content.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic CSS: Cascading Style Sheets.
Computing Concepts Advanced HTML: Tables and Forms.
The Power of Tables They aren't just for sitting stuff on anymore...
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Working with Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size,
1 Web Developer Foundations: Using XHTML Chapter 9 Cascading Style Sheet Concepts.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Cascading style sheets (CSS)
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Cascading Style Sheets By Garrett Garman. CSS Why use Style Sheets? Separates Appearance and Structure Modularity Quick and Easy changes Flexibility.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial 5 Formatting with CSS. Objectives Session 5.1 – Evaluate why CSS styles are used – Determine where to write styles – Create an element selector.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
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 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
A really fairly simple guide to: mobile browser-based application development (part 2, CSS) Chris Greenhalgh G54UBI / Chris Greenhalgh
Andy Dawson– University College London 1 EABH SUMMER SCHOOL Web Page Construction Andy Dawson Department of Information Studies, UCL.
Cascading Style Sheets
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Introduction to CSS September 20, Introduction Cascading Style Sheets (CSS) –Separation of structure from presentation CSS guide and tutorial.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 2.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
Cascading Style Sheets
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
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.
Style Sheets. Coding Style Sheets  Style sheets use RULES to create the style  A selector (a tag or user-defined style name)  and then declarations.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Introduction to web design discussing which languages is used for website designing
Tutorial 3 Working with Cascading Style Sheets
Web Design and Development
Presentation transcript:

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues Further features of HTML – Stylesheets and CSS Andy Dawson School of Library, Archive & Information Studies, UCL School of Library, Archive & Information Studies, UCL (University of Malta 2008)

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson What we will be covering today A very quick look at most of the advanced elements of the XHTML workbook: –Image maps –Tables –Forms –Frames Stylesheets in a little more detail Using colour values in XHTML and stylesheets More practical work on your projects!

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Image maps A method for making areas of images “clickable” Client-side processed Overlays an invisible “grid” on your image – the image map Map definition and image are quite separate Always remember to provide a textual alternative!

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Image maps Assigning a map to an image: Defining the map: <area SHAPE="POLY" COORDS="10,110, 20,110, 20,200, 100,200, 20,200, 30,150, 20,120" HREF="file2.htm" ALT=“Unusual shape">

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Tables a useful facility –for tables of information –for laying out “unusual” Web page designs Tables need to be specified carefully –Cells of data, within rows, within a table –Tables are not automatically reconciled! Best to create blank tables “in reverse” and then populate with data

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Using tables for page design

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson A simple table Row 1, Col 1 Row 1, Col 2 Row 2, Col 1 Row 2, Col 2

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Forms A tool for gathering information from users Provides specific prompts for information Data is then sent somewhere (usually to a computer process) Can’t really do much without server-side processing

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Structure of forms Forms placed anywhere inside element Can have multiple forms on a page, as long as each form is kept separate Basic structure:

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Some other FORM elements Form attributes : –Method (post, or get) –Action (e.g. mailto) Form controls: –Input: type (text, submit, reset, radio, checkbox) size, maxlength, checked, value, name –Textarea – cols, rows, name –Select – size, multiple, name

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Frames A way of organising information Screen split into independent sections –a different document displayed in each section –Bookmarking problems –Frame loading and the target atttribute Tables and CSS quite often used to mimic frames – different pros and cons

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson An example

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Creating frames three files are needed to create just two frames on the screen: The frameset: INDEX.HTM 1st frame: MENU.HTM 2nd frame: BODY.HTM

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson The frameset

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Other FRAME features Mixing rows and columns –Any can be replaced by another frameset which can then itself be split Links and TARGETs –Links default to loading in the frame clicked in –To load elsewhere the link needs a specified target attribute (a named frame)

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Stylesheets A definition of a document’s appearance: –typeface, size, colour for headings and text –line spacing, margin widths on all sides –spacing between headings … and much more! Specified at the beginning of a document by linking or embedding, or inline use Written in various special languages, e.g. CSS1

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Stylesheets Promotes the separation of form and content Allow Web designers to ensure consistency across a site’s pages Specific elements of the overall stylesheet can be overridden locally (cascading) Use of stylesheets is recommended by the World Wide Web Consortium Stylesheets can only be used with modern (IE5+ or Netscape 4+) graphical browsers

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Some basic stylesheet elements Linking to external stylesheets: – Syntax –TAG{ property : value; } – … Some common properties font-family : font-size : font-style : font-weight : color : background-color See handbook, cribsheet and the W3c website ( for further information – stylesheets are very useful!

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson Local and Inline style Any tag can be given a “one-off” application of style with a style attribute Classes can be established to modify tags repeatedly but irregularly Blocks of a page can be changed with and tags Always remember principles of inheritance! Order – most local takes precedence!

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson An example embedded stylesheet body{color : #000000; font-family : arial; sans-serif; font-size : 13px;} p{color: #ff0000;}.special{color : #00ff00;} This paragraph is black text… This paragraph is green text!

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson A note about colours The Hexadecimal RGB triplet RGB colour mixing Hexadecimal representation How to work out your colours Palette tools, e.g. Websafe colour charts:

SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson That’s all for today… Any questions? Next session – XML and extensible systems More practical work Now carry on with your projects!