Chapter 8 More on Links, Layout, and Mobile Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Similar documents
Principles of Web Design 6 th Edition. Chapter 12 Responsive Web Design

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

Responsive Web Design: Media Types/Media Queries/Fluid Images

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

CSS for Page Layout. Key Concepts

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Going Beyond SAP ITS Mobile Apps to a Responsive Design Mobile Apps. JK (JayaKumar Pedapudi) Principal Consultant NTT DATA, Inc.

Why? Mobile. 0Your content is no more than 3 taps away from Angry Birds. 0 Many people access your website via smartphones and other mobile devices

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

Web Design and Databases WD: Class 7: HTML and CSS Part 3

CST 150 Web Design I CSS Review - In-Class Lab

Web Authoring CSS. Module Descriptor

ITNP43: HTML Lecture 4

Outline of CSS: Cascading Style Sheets

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

MOBILE SEO TECHNIQUES

Dreamweaver CS4 Day 2 Creating a Website using Div Tags, CSS, and Templates

GUIDE TO CODE KILLER RESPONSIVE S

CHAPTER 10. When you complete this chapter, you will be able to:

With mobile devices and tablets becoming popular for browsing the web, an increasing number of websites are turning to responsive designs to

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

You can use percentages for both page elements and text. Ems are used for text,

Web Design with CSS and CSS3. Dr. Jan Stelovsky

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

How to Properly Compose HTML Code : 1

{color:blue; font-size: 12px;}

ICE: HTML, CSS, and Validation

Web Development 1 A4 Project Description Web Architecture

Building Responsive Layouts

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Responsive Web Design (RWD) Best Practices Guide Version:

Using Style Sheets for Consistency

Magento Responsive Theme Design

Responsive and Adaptive Web Design. Responsive & Adaptive websites-respond to the user s device by showing an optimized view.

Web Development I & II*

Website Planning Checklist

Creator Coding Guidelines Toolbox

Web Design Revision. AQA AS-Level Computing COMP2. 39 minutes. 39 marks. Page 1 of 17

Responsive Web Design. Webpage Design

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Web Design I. Spring 2009 Kevin Cole Gallaudet University

How to Create a Mobile Responsive Template in ExactTarget

Lesson Review Answers

SellerDeck 2014 Responsive Design Guide

Web layout guidelines for daughter sites of Scotland s Environment

Create Your own Company s Design Theme

HTML TIPS FOR DESIGNING

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

Create Webpages using HTML and CSS

Responsive Web Design for Drupal

Mobile Optimise your s. Code & examples to make your campaigns mobile friendly

8 STEPS TO CODE KILLER RESPONSIVE S

Coding HTML Tips, Tricks and Best Practices

Making Responsive s

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

MAGENTO THEME SHOE STORE

Introduction to Adobe Dreamweaver CC

Introduction to XHTML. 2010, Robert K. Moniot 1

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

White Paper Using PHP Site Assistant to create sites for mobile devices

MCH Strategic Data Best Practices Review

Fortis Theme. User Guide. v Magento theme by Infortis. Copyright 2012 Infortis

Interspire Website Publisher Developer Documentation. Template Customization Guide

Responsive Design

Development Perspective: DIV and CSS HTML layout. Web Design. Lesson 2. Development Perspective: DIV/CSS

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

Table of Contents Find out more about NewZapp

CREATING A NEWSLETTER IN ADOBE DREAMWEAVER CS5 (step-by-step directions)

RESPONSIVE DESIGN BY COMMUNIGATOR

Viewports. Peter-Paul Koch jquery EU, 28 February 2014

CREATE A CUSTOM THEME WEBSPHERE PORTAL

CSS 101. CSS CODE The code in a style sheet is made up of rules of the following types

Contents. Downloading the Data Files Centering Page Elements... 6

RESPONSIVE DESIGN FOR MOBILE RENDERING

Style & Layout in the web: CSS and Bootstrap

ecommercesoftwareone Advance User s Guide -

JJY s Joomla 1.5 Template Design Tutorial:

CSS - Cascading Style Sheets

How to code, test, and validate a web page

WHITEPAPER. Skinning Guide. Let s chat Velaro info@velaro.com by Velaro

Using Adobe Dreamweaver CS4 (10.0)

Professional & Workgroup Editions

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. Web Design in Nvu Workbook 2

Making Textual Webpage Content Responsive

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

1. About the Denver LAMP meetup group. 2. The purpose of Denver LAMP meetups. 3. Volunteers needed for several positions

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

ART 379 Web Design. HTML, XHTML & CSS: Introduction, 1-2

Responsive Web Design. birds of feather

Flare Tips and Tricks. Tips and tricks. Importing content Lists. Variables and snippets Condition tags Printed documentation WebHelp.

The Essential Guide to HTML Design

Campaign Guidelines and Best Practices

PLAYER DEVELOPER GUIDE

Transcription:

Chapter 8 More on Links, Layout, and Mobile Key Concepts Copyright 2013 Terry Ann Morris, Ed.D 1

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

More on Relative Linking Relative links from the canyon.html page in the rooms folder <a href= javelina.html">javelina</a> <a href="../index.html">home</a> <a href="../events/weekend.html">weekend Events</a> 3

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. <div id="top">.. </div> 2. The anchor tag that links to the named fragment of a Web page. This uses the href attribute. <a href="#top">back to Top</a> Note the use of the # in the href! 4

Skip to Content 5

HTML5 Figure and Figcaption Elements <figure> <img src="lighthouseisland.jpg" width="250" height="355" alt="lighthouse Island"> <figcaption> Island Lighthouse, Built in 1870 </figcaption> </figure> 6

Floating Images HTML: <figure> <img src="photo1.jpg" alt="golden Gate Bridge" width="225" height="168"> <figcaption>golden Gate Bridge</figcaption> </figure> CSS figure { float: left; width: 230px; padding-bottom: 10px; background-color: #EAEAEA; } figcaption { text-align: center; font-style: italic; font-family: Georgia, serif; } 7

HTML5 Structural Elements Header Nav Main Footer 8

More HTML5 Elements 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 9

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

Fix for HTML shim (page 257) The HTML5 Shiv has moved from Google to GitHub at https://github.com/afarkas/html5shiv Download https://github.com/afarkas/html5shiv/archive/master.zip Extract the.zip file. Locate the dist/html5shiv.js file and copy it into the same folder as your web page. Include the following code in the head section of your web page. <!--[if lt IE 9]> <script src="html5shiv.js"></script> <![endif]--> 11

CSS Styling for Print 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 <link > elements. <link rel="stylesheet" href="lighthouse.css" media="screen"> <link rel="stylesheet" href="lighthouseprint.css" media="print"> 12

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

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 your current domain targeted for mobile users Use CSS to configure one website to display differently on desktop, tablet, and phone (RESPONSIVE design)

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

Design Techniques for Mobile Web Single column design Avoid floats, tables, frames (or code for responsive versions) 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 Notice the overlap between these techniques and designing to provide for accessibility?

Viewport Meta Tag 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 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 17

Telephone & Text Message Telephone Scheme Hyperlinks <a href="tel:888-555-5555">call 888-555-5555</a> Many mobile browsers will initiate a phone call when the hyperlink is clicked. SMS Scheme <a href="sms:888-555-5555">text 888-555-5555</a> Many mobile browsers will initiate a text message to the phone number when the hyperlink is clicked. 18

Responsive Web Design Term coined by Ethan Marcotte Progressively enhancing a web page for different viewing contexts Techniques: Fluid Layout CSS3 Media Queries Flexible Images 19

CSS3 Media Queries 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: <link href="lighthousemobile.css" media="only screen and (max-device-width: 480px)"> CSS Example: @media only screen and (max-width: 480px) { } header { background-image: url(mobile.gif); } 20

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

Testing Mobile Display Options Test with a mobile device Emulators/ Online tools Test with a Desktop Browser - try Web Developer Toolbar (Resize -> View Responsive Layouts) 22

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! 23

Summary 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, hgroup, 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. 24