120 likes | 312 Views
Neal Stublen nstublen@jccc.edu. HTML and CSS Advanced. Course Road Map. Create web page layouts using CSS Manage CSS Test website validity Create navigation menus using CSS Incorporate meta content and multimedia. Chapter 3: Testing a Website. What’s Ahead?. Test HTML markup Test CSS.
E N D
Neal Stublen nstublen@jccc.edu HTML and CSS Advanced
Course Road Map • Create web page layouts using CSS • Manage CSS • Test website validity • Create navigation menus using CSS • Incorporate meta content and multimedia
What’s Ahead? • Test HTML markup • Test CSS
Validating HTML Markup • Free service for validating page markup • http://validator.w3.org/ • Specify a URL • Upload a file • Paste HTML
Practice Activity • Validating Markup, Activity 1 • Validate page markup (p.68)
Validating CSS • Free service for validating CSS • http://jigsaw.w3.org/css-validator/ • Specify a URL • Upload a file • Paste HTML
Practice Activity • Validating CSS, Activity 2 • Validate CSS content (p.74)
Common Mistakes • Missing “punctuation” • Semicolons • Braces and brackets • Typos • Mismatched elements • <div><p></div> (missing </p>)
Validator Limits • Ignores styling section • Does not validate links • Does not account for use of JavaScript • JavaScript may use undefined attributes • JavaScript may alter styles
What Does It Mean? • Reveals improper syntax • But browsers are very forgiving • If you’re using other tools to generate your web pages, you may not be able to resolve all the errors it reports • Look at other sites – no one is perfect! • http://google.com • http://microsoft.com
What’s Behind? • Test HTML markup • Test CSS