Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Advertisements

Advance CSS (Menu and Layout). CSS Navigation MENU.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Chapter 6 More CSS Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Cascading Style Sheets Cascading Style Sheets 1.
CSS Digital Media: Communication and design 2007.
Today CSS HTML A project.
CSS Евгения Ковачева. BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 11pt; BACKGROUND: #ffffff; PADDING-BOTTOM:
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Slide 1 CMPS 211 Internet Programming Spring 2008 Dynamic Effects with Styles Chapter 12 2/6/08.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 4 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Page Layout Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Very quick intro HTML and CSS. Sample html A Web Title.
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.
Links.  Styling Links  Links can be styled with any CSS property (e.g. color, font-family, background-color).  Special for links are that they can.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
HyperText Markup Language (HTML) Uses plain text to add markup instructions to a file. If you can't produce it with a standard keyboard, it can't go into.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
CSS Link Styling. The Anchor Element: Link text between the opening and closing can be styled using CSS. Some of the properties that can be set are: font-family,
Today’s objectives  Element relations – tree structure  Pseudo classes  Pseudo elements.
SM5312 week 11: CSS Menus & Navigation Bars1 An Introduction to Cascading Style Sheets CSS Menus and Navigation Bars Nick Foxall.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
ITEC 745 Instructional Web Authoring I Instructor: Ray Cole Week 6.
Copyright (c) 2009 Prentice-Hall. All rights reserved.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
Cascading Style Sheets Based on Castro, HTML for the WWW, 6 th edition Ron Gerton, Fall 2007.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Cascading Style Sheet CSS CS1520 Ali Alanjawi. 2 TA Information Ali Alanjawi Homepage: Office:
Navigation Bars Level 2 Extended Certificate Unit B12 Doing Business Online.
1/18 ITApplications XML Module Session 5: Extensible Stylesheet Language (XSL)
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Need to define two things: › The destination › Something to click on to get there  Tag is click here  Can be text, special character or image (next.
Part 3 Introduction to CSS. CSS Text Text Styles h1 {color: green} // rgb(0,255,0), #00ff00 h2{letter-spacing: 0.5cm} // 2px h3 {text-align: right} //
Diliev.com & pLOVEdiv.com  DIliev.com.
กระบวนวิชา 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.
Class four: the box model and positioning. is an HTML tag which allows you to create an element out of inline text. It doesn’t mean anything! try it:
Unit 20 - Client Side Customisation of Web Pages
CSS normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
More CSS CS HTML id attribute 2 Coding Horror! Our mission is to combine programming and “human” factors with geekiness! output  A unique ID for.
Web Development & Design Foundations with XHTML
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with HTML5 7th Edition
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
WebD Introduction to CSS By Manik Rastogi.
CSS Cascading Style Sheets.
Semester - Review.
Web Development & Design Foundations with HTML5 8th Edition
Web Developer & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Cascading Style Sheets
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Cascading Style Sheets 2
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
Presentation transcript:

Web Development & Design Foundations with XHTML Chapter 7 Key Concepts

More on Relative Linking Contact Collars Home Dog Bathing 2 Relative links from the home page: index.html

Opening a Link in a New Browser Window The target attribute on the anchor element opens a link in a new browser window or new browser tab. Yahoo! 3

XHTML Linking to Fragment Identifiers A link to a part of a Web page Also called named fragments, fragment ids Two components: 1.The element that identifies the named fragment of a Web page. This requires the id attribute. ….. 2. The anchor tag that links to the named fragment of a Web page. This uses the href attribute. Back to Top 4 Note the use of the # in the anchor tag!

Hands-On Practice 7.1 Pages Chapter7/starter1.html Chapter7/favorites.html

CSS Pseudo-classes Pseudo-classes and the anchor element ◦ link – default state for a hyperlink ◦ visited –a hyperlink that has been visited ◦ focus – triggered when the hyperlink has focus ◦ hover – triggered when the mouse moves over the hyperlink ◦ active – triggered when the hyperlink is being clicked a:link {color:#000066;} a:visited {color:#003366;} a:focus {color:#FF0000;} a:hover {color:#0099CC;} a:active {color:#FF0000;} a:link {color:#000066;} a:visited {color:#003366;} a:focus {color:#FF0000;} a:hover {color:#0099CC;} a:active {color:#FF0000;}

CSS Pseudo-classes a:link { background-color: #ffffff; color: #ff0000; } a:visited { background-color: #ffffff; color: #00ff00; } a:hover { background-color: #ffffff; color: #000066; text-decoration: none; } 7

Styling CSS “buttons” 8

CSS “buttons” #button a { border: 2px inset #cccccc; padding: 3px 15px; color: #FFFFFF; background-color: #000066; font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: bold; text-align: center; text-decoration:none; } #button a:link { color: #FFFFFF; } #button a:visited { color: #CCCCCC; } #button a:focus { color: #DDA0DD; background-color:#000000; border:2px outset #000000; } #button a:hover { color: #66CCFF; border:2px outset #cccccc; } #button a:active { color: #DDA0DD; border:2px outset #000000; } 9 CSS Buttons! Home Products Services Contact About

Hands-On Practice 7.2 Pages Chapter7/link1.html Chapter7/link2.html Chapter7/link3.html

Navigation Layout Using Lists Navigation hyperlink areas are sematically “lists" of links Some web design gurus argue that navigation links should be configured using XHTML list elements Use the list-style-image property to configure the “bullet" list-style-image:url(arrow.gif). 11

CSS & XHTML Navigation List CSS: div#leftcolumn ul { list-style-image:url(arrow.gif); } div#leftcolumn a { text-decoration:none; } XHTML: Home Spring Summer Fall Winter 12 twocolumn1.html

Examples Chapter7/twocolumn.html Chapter7/arrow.gif Chapter7/twocolumn1.html

CSS & XHTML Navigation List XHTML: Home Spring Summer Fall Winter CSS: div.nav li { display:inline; list-style-type:none; } div.nav a { padding:5px; background-color:#e8b9e8; color:#000066; text-decoration:none; font-family:Verdana, Arial, sans-serif; text-align:center; } div.nav a:link {color:#000066; background-color:#e8b9e8; } div.nav a:visited {color:#000000; background-color:#cc66cc; } div.nav a:focus {color:#cccccc; background-color:#000000} div.nav a:hover {color:#ffffff; background-color:#cc66cc; } div.nav a:active {color:#cccccc; background-color:#cc66cc; } CSS: div.nav li { display:inline; list-style-type:none; } div.nav a { padding:5px; background-color:#e8b9e8; color:#000066; text-decoration:none; font-family:Verdana, Arial, sans-serif; text-align:center; } div.nav a:link {color:#000066; background-color:#e8b9e8; } div.nav a:visited {color:#000000; background-color:#cc66cc; } div.nav a:focus {color:#cccccc; background-color:#000000} div.nav a:hover {color:#ffffff; background-color:#cc66cc; } div.nav a:active {color:#cccccc; background-color:#cc66cc; } home0.html

Example Chapter7/home0.html Chapter7/wildflower0.css