Validation.

Slides:



Advertisements
Similar presentations
Validation checking and testing that your web pages function as intended.
Advertisements

1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
XHTML 16-Apr-17.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Basic Web Design. Technology is a tool  FIRST, understand how people actually interact with each other and with the information in their lives, in all.
WRA /16/13 HTML VALIDATION & HTML5. TODAY’S AGENDA Overview of new objects: lists, tables Overview of metadata: meta tags, comments History of the.
Getting Started with Expression Web 3
DIY Web Development Hand Code Your Own Page (For Free!) by Bryan Brown, Indiana University Bloomington SLIS.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
G053 - Lecture 20 Testing Websites
Log on to Digital Locker Website You should be able to log on using Internet Explorer browser at the campus. You may need to log in using Mozilla FireFox.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
The Web A Resource for All of Us Introduction Objectives Recall the history of computers: before 1950, Internet, personal computers Identify the purpose.
Open Internet Explorer Go to: my.ccsd.net Type YOUR InterAct username and password. Then Submit Query.
Basic (X)HTML Structure.  Covers the most basic (X)HTML elements  How you want to structure your document  You’ll learn how to create: Paragraph Header.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Videos. Adding Videos to a Web Page Videos can make our pages more interesting and engaging. Most video-hosting services, such as YouTube, will provide.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Lesson 2 – Unit B. Quick review 1. What is the name of the eGCC host that you ftp your files? 2. What type of software do you use to create and edit web.
PART 1: Introduction to HTML & CSS. Lecture 1: HTML 5 Basic Structure.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
Validation. What is Validation? Removing errors improves the consistency of how our pages look to a wide variety of browsers and devices. Ensuring that.
Introduction. Internet Worldwide collection of computers and computer networks that link people to businesses, governmental agencies, educational institutions,
CWA 3105 Presents At&t Connect for Windows pc This will be a quick set up guide for our new virtual meeting program We are the ELITE to have this trial.
HTML Structure & syntax
HTML Structure & syntax
Getting Started with HTML
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
HTML 5.
CIS 228 The Internet 9/20/11 XHTML 1.0.
Tutorial 9 Working with XHTML
Doctypes and domain names
FY 2012 Public Service Grants
Using the HTML and CSS Validation Services
elp.
XHTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
Publishing and Maintaining a Website
BTEC NCF Dip in Comp - Unit 15 Website Development Lesson 12 – Publish and Test Mr C Johnston.
Validation.
CISC103 Web Development Basics: Web site:
XHTML Basics.
XHTML
XHTML Basics.
Tutorial 9 Working with XHTML
Unit A.
XHTML Basics.
Marquees and Standards
Website Testing EIT, Author Gay Robertson, 2018.
Using and Viewing Homepage
XHTML Basics.
XHTML 7-May-19.
Running a Java Program using Blue Jay.
Dreamweaver.
HTML Structure & syntax
XHTML Validation.
XHTML 29-May-19.
محمد احمدی نیا XHTML محمد احمدی نیا
Selenium IDE Installation and Use.
The W3C More on images Entity codes Remote vs Local Computers
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Validation

What is Validation? Validation is a process by which we verify we've made no syntax or rules violations on our web pages. There are many reasons to take this extra step on all our documents: Removing errors improves the consistency of how our pages look to a wide variety of browsers and devices. Ensuring that our pages adhere to web standards will maximize the chance that they will display properly in future browsers. Catching and correcting errors early helps new web designers learn and improve more quickly. Writing clean, error-free code is a sign of professionalism to employers and other web designers. If our web page looks fine on our own web browser screen, we cannot assume that it will display that way for everyone else. Validation greatly improves the chance that it will appear consistently across all platforms.

How Validation Works The World Wide Web Consortium (W3C) is an organization that creates the rules and standards for web documents. Each HTML version has a different set of standards. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Remember the first line in all our web documents? It is the DOCTYPE declaration. The DOCTYPE determines which set of standards will be applied to the code that follows. All our web pages in this course use a DOCTYPE of XHTML 1.0 Transitional. When we submit a web page for validation, me must comply with this specific set of rules in order for our documents to pass with no errors.

Where to Validate a Web Page To validate a web document, we use the W3C website's validation tool at: http://validator.w3.org/ Using the Direct Input method, we can copy and paste our code into the validator. Using the File Upload method, we can browse and select a file on our local computer. If the page we wish to validate is already live on the internet, we can just enter the URL. We can run any live page through the validator, not just our own pages. We can even check out others' websites to see how good their code is!

If Our Page Passes Validation If our page is error-free, we will see the following screen: It's also possible that the document will pass validation but have some non- error warnings. Be sure to scroll down and view these warnings to see if there are ways to improve your page further.

If Our Page Fails Validation If errors were encountered, we'll see a red bar and the number of errors will be displayed: We just need to scroll down to see the list of errors.

Viewing the Errors The errors will be listed in the order they were encountered: Sometimes the error description can be a little confusing, but by finding the line of code in our document and taking a closer look, we can usually discover our mistake and correct it.

Making Corrections Don't panic when your web page contains errors and fails validation. It's quite common, especially for novice web designers. Instead of trying to fix everything in one shot, make one or two corrections and then revalidate the document. Often, you'll find that by making a single correction, the error count will drop dramatically. Continue this process of fixing an error or two and then revalidating until the document passes validation. It's good practice to make sure all the pages of a site pass validation prior to making them live on the internet. Don't forget to revalidate a page any time you make changes to it.

CSS Validation The markup validator we just used will examine only the XHTML code of our document, not the CSS. There is a separate validator for CSS, available at: http://jigsaw.w3.org/css-validator/ By default, the validator will apply the rules for CSS3. If we want to check with the standards of CSS 2.1, we can click on More Options.