Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1.

Slides:



Advertisements
Similar presentations
Coding a Responsive HTML
Advertisements

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 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.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 9 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.
Unit 20 - Client Side Customisation of Web Pages
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
RESPONSIVE DESIGN Sources: Kadlec, T. (2012). Implementing responsive design. Berkeley, California: New Riders Publishing. MarcotteMarcotte, E. (2010).
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
CIT 256 Mobile Web Development Dr. Beryl Hoffman.
Chapter 8 More on Links, Layout, and Mobile Copyright © 2013 Terry Ann Morris, Ed.D revised by Bill Pegram, 9/24/
CIS 1310 – HTML & CSS 7 More on Links, Layout & Mobile.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
Web Publishing 3  Meeting 2 1. Learning Outcomes  Configure float  Configure fixed positioning  Configure relative positioning  Configure absolute.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Web Development & Design Foundations with HTML5 7th Edition
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 7 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 5 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 7 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Jozef Goetz, Credits:© Pearson Education Copyright (c) 2009 Prentice-Hall. All rights reserved. expanded by J. Goetz, 2015.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
PERSPECTIVES: TUTORIAL 4 CREATING PAGE LAYOUTS WITH CSS.
Mobile Web Design Best Practices Three Approaches to Mobile Web: ◦ Develop a new mobile site with a.mobi TLD ◦ Create a separate website hosted within.
Web Development & Design Foundations with HTML5
School of Business Administration
Web Development & Design Foundations with HTML5 7th Edition
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Web Development & Design Foundations with HTML5 8th Edition
Concepts for fluid layout
Creating Page Layouts with CSS
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
7 More on Links, Layout & Mobile.
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
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 8th Edition
Web Development & Design Foundations with H T M L 5
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
Chapter 7 Absolute/relative hyperlinks Frag id 3-column site
Web Development & Design Foundations with HTML5
Web Development & Design Foundations with HTML5
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

Week 8 – Part 3 More on Links, Layout, and Mobile Key Concepts 1

1.Code relative hyperlinks to web pages in folders within a website 2.Configure a hyperlink to a named fragment internal to a web page 3.Configure images with captions using the HTML5 figure and figcaption elements 4.Configure a collection of images to float across a web page 5.Configure web pages with new HTML5 section, hgroup, article, aside, and time elements 6.Apply techniques to ensure backward compatibility with older browsers. 7.Configure web pages for printing with CSS 8.Describe mobile web design best practices 9.Configure web pages for mobile display using the viewport meta tag 10.Apply responsive web design techniques with CSS3 media queries and flexible images

Javelina Home Weekend Events Relative links from the canyon.html page in the rooms folder

 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 Note the use of the # in the anchor tag!

5

Island Lighthouse, Built in 1870

 HTML: Golden Gate Bridge  CSS figure { float: left; width: 230px; padding-bottom: 10px; background-color: #EAEAEA; } figcaption { text-align: center; font-style: italic; font-family: Georgia, serif; } 7

 Section Element  indicates a portion or “section” of a document, like a chapter or topic  Article Element  indicates an independent entry, like a blog posting, that can stand on its own  Aside Element  indicates a sidebar or other tangential content  Time Element  represents a date or time

 CSS header, main, nav, footer, section, article, figure, figcaption, aside { display: block; }  HTML5 Shim (aka HTML5 Shiv) 9

 Create an external style sheet with the configurations for browser display.  Create a second external style sheet with the configurations for printing.  Connect both of the external style sheets to the web page using two elements.

 Hide non-essential content nav { display: none; }  Configure font size and color for printing Use pt font sizes, use dark text color  Control page breaks.newpage { page-break-before: always; } 11

 Three Approaches to Mobile Web:  Develop a new mobile site with a.mobi TLD  Create a separate website hosted within your current domain targeted for mobile users  Use CSS to configure your current website for display on both mobile and desktop devices

 Small Screen Size  Low bandwidth  Limited fonts  Limited color  Awkward controls  Limited processor and memory  Cost per kilobyte

One column design Avoid floats, tables, frames Descriptive page title Descriptive heading tags Optimize images Descriptive alt text for images Eliminate unneeded images Navigation in lists Provide “Skip to Content” hyperlink Provide “Back to Top” hyperlink Notice the overlap between these techniques and designing to provide for accessibility?

Single column design Avoid floats, tables, frames Descriptive page title Descriptive headings Optimize images Descriptive alt text for images Eliminate unneeded images Navigation in lists Em or percentage font size units Common font typefaces Good contrast between text and background colors Provide “Skip to Content” hyperlink Provide “Back to Top” hyperlink Notice the overlap between these techniques and designing to provide for accessibility?

 Default action for most mobile devices is to zoom out and scale the web page  Viewport Meta Tag  Created as an Apple extension to configure display on mobile devices  Configures width and initial scale of browser viewport

 Telephone Scheme Call  Many mobile browsers will initiate a phone call when the hyperlink is clicked.  SMS Scheme Text  Many mobile browsers will initiate a text message to the phone number when the hyperlink is clicked.

 Term coined by Ethan Marcotte  Progressively enhancing a web page for different viewing contexts  Techniques:  Fluid Layout  CSS3 Media Queries  Flexible Images

 Media Query  Determines the capability of the mobile device, such as screen resolution  Directs the browser to styles configured specifically for those capabilities  Link Element Example:  CSS only screen and (max-width: 480px) { header { background-image: url(mobile.gif); }

 Edit HTML: remove height and width attributes  CSS: img { max-width: 100%; height: auto; }

 Test with a mobile device  Emulators  Opera Mobile Emulator  Mobilizer  Opera Mini Simulator  iPhone Emulator  Test with a Desktop Browser  Install an iOS or Android SDK 21

 Manually check syntax errors  Use W3C CSS Validator to check syntax errors   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!

 This chapter expanded your CSS and HTML skillset.  You coded relative hyperlinks to web pages in folders within a website.  You coded a hyperlink to a named fragment internal to a web page.  You configured images with captions using the HTML5 figure and figcaption elements.  You configured a collection of images to float across a web page.  You configured web pages with new HTML5 section, article, aside, and time elements.  You applied techniques to ensure backward compatibility with older browsers.  You configured web pages for printing with CSS.  You explored mobile web design best practices.  You configured web pages for mobile display using the viewport meta tag.  You applied responsive web design techniques with CSS3 media queries, fluid layouts, and flexible images.  You explored techniques for testing the mobile display of a web page.