XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.

Slides:



Advertisements
Similar presentations
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Advertisements

CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
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.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
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.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
SM5312 week 6: basic CSS syntax1 An Introduction to Cascading Style Sheets Basic CSS Syntax Nick Foxall.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
JMD2144 – Lesson 5 Web Design & New Media. ‘Div’ide and conquer One of the most versatile structure tags available is the.. tag Short for ision, it allows.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
XHTML and CSS Introduction to XHTML and CSS Bharti Patel 1 phones off (please)
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
HTML - Quiz #2 Attendance CODE:
Cascading style sheets (CSS)
The Characteristics of CSS
CSS Cascading Style Sheets By Garrett Garman. CSS Why use Style Sheets? Separates Appearance and Structure Modularity Quick and Easy changes Flexibility.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
 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.
ITEC 745 Instructional Web Authoring I Instructor: Ray Cole Week 8.
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 14, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Using Cascading Style Sheet As you create more web pages, you may wish to impose a consistent look for all of your web pages or for group of related pages.
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
CO1552 – Web Application Development Cascading Style Sheets.
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.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
IS 360 Declaring CSS Styles. Slide 2 Introduction Learn about the three ways to declare a style Inline / embedded / external Learn about the effect of.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
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.
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.
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.
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.
CSS Syntax. Syntax The CSS syntax is made up of three parts: a selector, a property and a value: selector {property: value}
CSS Cascading Style Sheets *referenced from
OV Copyright © 2008 Element K Content LLC. All rights reserved. Working with Web Pages  An Introduction to Cascading Style Sheets  Format a Web.
CSS DHS Web Design. Location Between the & Start with – End with –
CM143- WEB CM143-WEB Page Layout live sites HTML Images User Considerations Planning Navigation CSS Architecture File Management Cascading Style Sheets.
CSS Cascading Style Sheets. Session Checklist ► Learn why style sheets are needed and their advantages and disadvantages ► Learn the format of a style.
Cascading Style Sheets Using HTML. What are they? A set of style rules that tell the web browser how to present a web page or document. In earlier versions.
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.
XHTML/CSS Week 2. This Week  Quiz to revise last week (XHTML and DW)  Lists - & tags  Images tag  Hyperlinks tag  Using CSS to define the appearance.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
>> Introduction to CSS
Cascading Style Sheets (CSS)
Cascading Style Sheets - Building a stylesheet
Introduction to Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
Cascading Style Sheets - Building a stylesheet
Presentation transcript:

XHTML/CSS Week 3

This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables

Quiz - 1  Identify the following XHTML tags:,,,,,,,,,,,,,,,,,,,,  What do these tags do? Home Home RACC RACC

Quiz - 2  Find the errors: RACC RACC Big Text! Big Text!

CSS Part the Second

Last week we discussed… (Content highlighted in yellow) Old Style HTML Old Style HTML Can you think of some reasons why this wasn't a good way forward? Can you think of some reasons why this wasn't a good way forward? …why this wasn’t a good idea?

What’s the problem? HTML and the dreaded tag caused problems for:  Blind People  Web Designers  Search Engines  Everyone else!

Try this: A similar page using CSS in an external stylesheet test.htm<html><head> </head><body> XHTML and CSS XHTML and CSS So much better! So much better! </body></head>mystyles.css h1 { font-family: Arial, Helvetica, sans-serif; font-size: 14pt; font-style: italic; font-weight: 700; color: #0000FF; } p { font-family: "Times New Roman", Times; font-size: 12pt; color: #000000; }

What is Cascading? CSS rules can be defined in the following places:  An external style sheet (usable by many HTML files) linked with:  Within … tags in the area of a HTML file  Within a tag (rarely used – a bit too much like the tag) An HTML file can acquire CSS rules from a style sheet, add extra rules (optionally overriding a rule defined in the style sheet) in the area and then create rules within an individual HTML element (optionally overriding a rule defined in a style sheet or the of that file) We’ll see this on the next slide.

Cascading Rules <html><head> and rules as before --> and rules as before --> p { font-family: “arial”; } </head><body> XHTML and CSS XHTML and CSS So much better! So much better! We’ve overridden the font and colour for this paragraph only We’ve overridden the font and colour for this paragraph only </body></head>

How CSS rules are defined  A CSS rule consists of three parts: a selector, a property and a value in the following format: selector {property: value} selector {property: value} h1 { color: red} h1 { color: red}  The selector is commonly the HTML element you want to define, the property is the attribute you wish to change. Each property takes a value.  The property and value are separated by a colon, and surrounded by curly braces  If the value consists of more than one word this must be placed in double quotes: p {font-family: “Times New Roman"} p {font-family: “Times New Roman"}

CSS Syntax  To define multiple properties for the same selector separate each one with a semicolon: p {text-align:center; color:red}  CSS (like HTML) ignores “whitespace” so for readability: p { text-align: center; color: black; font-family: arial }  Defining the same properties/values for multiple selectors h1,h2,h3, p { color: red }

CSS Class rules - 1  Defining a rule for a specific selector (like ) changes the appearance of all occurrences of that selector. As we have seen this can provide very readable XHTML code.  CSS classes allow us to create rules that we can use for many different selectors, as and when we wish.

CSS Class rules - 2  Two CSS class rules specifically for the element: p.blue {color: blue} p.red {color: red}  How we use them: This is blue text This is blue text I’m well red! I’m well red!

Creating CSS Classes - 3  Class definitions don’t need to be attached to an specific selector:.blue {color: blue} - note how they start with a period (.).red {color: red}  How we use them: This is blue text (Same as before) This is blue text (Same as before) (produces a blue horizontal rule) (produces a blue horizontal rule)

HTML Tables

Tables  Built using three main tags:,,,, Also Table Header (like )  Table defined within …  Table defined within …  Each row …  Each row …  Each cell …  Each cell …

What does the following table look like? </table>

Table tags in action - what do all these mean?

Exercise - Create this table Julian Manoj

Exercise – can you create the following page layout Single Cell table 600px wide border 1 See right  This cell 200px wide One row, two column table 600px wide border 1 This cell to be 400px wide Single Cell table 600px wide border 1