Web Development & Design Foundations with HTML5 7th Edition

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Tutorial 4: Creating page layout with css
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
Understanding CSS Essentials: Content Flow, Positioning, and Styling
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.
Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.
Copyright © Terry Felke-Morris CSS Flow & Positioning 1 Copyright © Terry Felke-Morris.
Neal Stublen Course Road Map  Create web page layouts using CSS  Manage CSS  Test website validity  Create navigation menus using.
HTML5 Sections Old structuring elements –body, div, address, blockquote –headings: h1, h2, h3, … –ul, ol, table New structuring elements –header, footer,
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Week 8 – Part 2 Page Layout Basics Key Concepts 1.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
WEB DEVELOPMENT IMMERSIVE BUILDING PAGE LAYOUTS. 2 Box Model Scaling Positioning Boxes Box Aesthetics HTML 5 Semantic Tags CSS Resets TOPICS GENERAL ASSEMBLYWEB.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
Web Development & Design Foundations with XHTML Chapter 6 Key Concepts.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
WebD Introduction to CSS By Manik Rastogi.
CSS.
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 7th Edition
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
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Chapter 8 More on Links, Layout, and Mobile Key Concepts
Basics of Web Design Chapter 7 Page Layout Basics Key Concepts
Web Development & Design Foundations with HTML5 7th Edition
6 Layout.
Styles and the Box Model
CSS Borders and Margins.
DynamicHTML Cascading Style Sheet Internet Technology.
What are Cascading Stylesheets (CSS)?
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with H T M L 5
DynamicHTML Cascading Style Sheet Internet Technology.
Basics of Web Design Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright © 2014 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with H T M L 5
HTML 5 SEMANTIC ELEMENTS.
Web Development & Design Foundations with XHTML
Web Development & Design Foundations with HTML5
School of Business Administration
Session IV Chapter 15 - How Work with Fonts and Printing
Presentation transcript:

Web Development & Design Foundations with HTML5 7th Edition Chapter 6 Key Concepts Copyright © Terry Felke-Morris

Hands-on practice 6.4 (page 257) chapter6/start2.html chapter6/practice/index.html

Header Text Image Replacement Useful when a non web-safe font must be used in the header logo banner area Display the banner image but also configure text in the h1 for use by search engines and assistive technologies. Configure styles for the header element set the header banner image as the background of the header or h1 element. Code the company or website name with the h1 element. Configure the placement of the h1 text to be beyond the browser viewport: h1 { text-indent: 100%; white-space: nowrap; overflow: hidden; } SOURCE: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/

Hands-on practice 6.5 (page 261) chapter6/start3.html chapter6/replace/index.html

Hands-on practice 6.6 (page 262) chapter2/template.html chapter6/gallery/index.html

Position Property

Fixed Positioning nav { position: fixed; }

Fixed Positioning chapter6/fixed.html

Relative Positioning Changes the location of an element in relation to where it would otherwise appear in normal flow p { position: relative; left: 30px; font-family: Arial, sans-serif; }

RELATIVE Positioning chapter6/relative.html

Absolute Positioning Precisely specifies the location of an element outside of normal flow in in relation to its first parent non-static element p { position: absolute; left: 200px; top: 100px; font-family: Arial, sans-serif; width: 300px; }

Absolute Positioning chapter6/absolute.html

Hands-on practice 6.7 (page 267) chapter6/starter4.html chapter6/trillium.html

CSS Debugging Tips Manually check syntax errors Use W3C CSS Validator to check syntax errors http://jigsaw.w3.org/css-validator/ Configure temporary background colors Configure temporary borders Use CSS comments to find the unexpected /* the browser ignores this code */ Don’t expect your pages to look exactly the same in all browsers! Be patient!

HTML5 Structural Elements REVIEW Header Element block display; contains the headings of either a web page document or an area in the document such as a section or article Nav Element block display; contains a section of navigation hyperlinks Main Element block display; contains main page content Footer Element block display; contains the footer content of a web page or specific area (such as a section or article) on a web page

More HTML5 Elements Aside Element Section Element Article Element block display; contains a sidebar, a note, or other tangential content Section Element contains a “section” of a document, such as a chapter or topic block display Article Element contains an independent entry, such as a blog posting, comment, or e- zine article that could stand on its own Time Element represents a date or a time could be useful to date articles or blog posts inline display

Hands-on practice 6.8 (page 270) chapter6/hover/index.html chapter6/blog/index.html

HTML5 Compatibility with Older Browsers CSS header, main, nav, footer, section, article, figure, figcaption, aside { display: block; } HTML5 Shim (aka HTML5 Shiv) <!--[if lt IE 9]> <script src=" http://html5shim.googlecode.com/svn/trunk/html5.js"> </script> <![endif]-->

Deciding to Configure a class or id If the style may apply to more than one element on a page Use the . (dot) notation in the style sheet. Use the class attribute in the HTML. Configure an id: If the style is specific to only one element on a page Use the # notation in the style sheet. Use the id attribute in the HTML.

Hands-on practice 6.9 (page 274) chapter6/blog/index.html chapter6/shim/index.html