html 5 and css 3, illustrated complete and css… · objectives (continued) measure performance and...

22
HTML 5 and CSS 3, Illustrated Complete Unit P: Testing and Finalizing Your Web Site

Upload: others

Post on 06-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

HTML 5 and CSS 3, Illustrated Complete

Unit P:

Testing and Finalizing Your Web Site

Page 2: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Objectives

Prepare to go live with your Web site

Use HTML and CSS debugging tools

Plan usability tests

Perform browser tests

HTML 5 and CSS 3 – Illustrated Complete 2

Page 3: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Objectives (continued)

Measure performance and modeling

changes

Remove unused styles

Tidy your HTML

Publish with a domain name

HTML 5 and CSS 3 – Illustrated Complete 3

Page 4: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Preparing to Go Live with

Your Web Site

Going live: publishing to a Web server

in order to make it available to anyone

with Web access

Process of testing and finalizing may

include:

Publishing to a testing server

Performing browser and usability tests

Checking for errors using Web

development tools

HTML 5 and CSS 3 – Illustrated Complete 4

Page 5: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Preparing to Go Live with

Your Web Site (continued)

A testing server

HTML 5 and CSS 3 – Illustrated Complete 5

Page 6: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Using HTML and CSS

Debugging Tools

Process of fixing errors involves:

Identifying incorrectly displayed element

Checking HTML and/or CSS code

relating to the element

Making changes to code

Refreshing the page in the browser

Debugging tools simplify process

Available for all major browsers

Identify code that needs changing

HTML 5 and CSS 3 – Illustrated Complete 6

Page 7: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Using HTML and CSS

Debugging Tools (continued)

Inspecting a span element

HTML 5 and CSS 3 – Illustrated Complete 7

Page 8: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Planning Usability Tests

Most important judgment for usability

is the site’s users themselves

Important to:

Collect feedback from likely users

Identify questions you want all testers to

answer

Create a script to use consistently

throughout the process

HTML 5 and CSS 3 – Illustrated Complete 8

Page 9: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Planning Usability Tests

(continued)

Completed usability testing plan

HTML 5 and CSS 3 – Illustrated Complete 9

Page 10: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Performing Browser Tests

HTML 5 and CSS 3 – Illustrated Complete 10

Helps ensure : Web pages are not published that display

obvious errors

Pages are not published that don’t work as

expected for some audience members

Majority of users are likely to be using

Windows

Important to ensure Windows system

access for testing

Page 11: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Performing Browser Tests

(continued)

Nonstandard box shadows on Rooms

page

HTML 5 and CSS 3 – Illustrated Complete 11

Page 12: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Measuring Performance and

Modeling Changes

HTML 5 and CSS 3 – Illustrated Complete 12

Optimizing load time

Improves experience of user

Helps avoid users becoming impatient with

site

Popular browsers include tolls for

measuring speed

Chrome and Safari

Extensions can be installed for Firefox

and IE9

Page 13: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Measuring Performance and

Modeling Changes (continued)

HTML 5 and CSS 3 – Illustrated Complete 13

Page loading data in Safari

Page 14: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Removing Unused Styles

HTML 5 and CSS 3 – Illustrated Complete 14

Orphaned styles: style rules based on

selectors that no longer apply to any

elements in the Web page

Removing orphaned styles:

Reduces amount of code to download

Shrinks download time

Makes it easier to work with for

developers for future site work

Page 15: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Removing Unused Styles

(continued)

HTML 5 and CSS 3 – Illustrated Complete 15

Minified CSS code

Page 16: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Tidying Your HTML

HTML 5 and CSS 3 – Illustrated Complete 16

Tidying code:

Standardizing indents and line breaks in

code

Ensuring code conforms to basic rules

Also known as code prettifying

Streamlines HTML code

CSS code can be prettified as well

Page 17: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Tidying Your HTML

(continued)

HTML 5 and CSS 3 – Illustrated Complete 17

Tidied code for rooms.html

Page 18: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Publishing with a Domain

Name

HTML 5 and CSS 3 – Illustrated Complete 18

Multi-step process involving services

by multiple entities

Requires three services

Registrar

• Registrars domain name

Web host

• Makes page available on the Web through

server farm or Web host

DNS host

• Accesses IP address through a DNS

Page 19: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Publishing with a Domain

Name (continued)

HTML 5 and CSS 3 – Illustrated Complete 19

Relationship between registrar, DNS

host, and Web host

Page 20: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Summary

Preparing to go live with a Web site

includes several testing processes and

finalizations

You can use HTML and CSS

debugging tools to aid you in testing

your Web site

It is important to plan and structure

your Web site logically using usability

tests

HTML 5 and CSS 3 – Illustrated Complete 20

Page 21: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Summary (continued)

Browser tests allow you to scrutinize

your site on a variety of browsers

Mobile-specific layouts can be created

Measuring performance and modeling

changes ensures adequate loadability

Removing unused styles cleans your

site up before publishing

HTML 5 and CSS 3 – Illustrated Complete 21

Page 22: HTML 5 and CSS 3, Illustrated Complete and CSS… · Objectives (continued) Measure performance and modeling changes Remove unused styles Tidy your HTML Publish with a domain name

Summary (continued)

You may tidy your HTML by

standardizing your coding

Securing a domain name and using it

is a multi-step process

HTML 5 and CSS 3 – Illustrated Complete 22