MyChapter2Part2

MyChapter2Part2 - Chapter2:XHTMLBasics:Part2...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 2: XHTML Basics: Part 2 1 MyChapter2Part2.ppt
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 (Ahmed): XHTML1.1 Validation (Textbook) Section 2.9 Page 53 has shown the similar validation. A browser is usually very forgiving , and it displays the contents of a document even if there are many errors in the code. However, the browsers do not guarantee that many legacy HTML features will work in the future. These tags and/or attributes are called Deprecated ” tag or attributes. Thus, when we try to develop XHTML1.1 compliant document, the browser will not tell us if the document is totally correct or not . If we really want to be sure that we have an XHTML compliant document, we will need to validate the document using the XHTML validator available at http://validator.w3.org/ (This site is used for any XHTML document (i.e. for XHTML1.0, or XHTML 1.1) Let us test our PepsiHome.htm document using the XHTML1.1 validator from the W3C site. This document is available in AhmedsExamplesChapter2 folder . MyChapter2Part2.ppt
Background image of page 2
3 Step 1: Use your Firefox browser and enter the URL http://validator.w3.org/ Note: You must use Firefox because the IE may not work in this case. After the Validator page is displayed, click on the File Upload link. MyChapter2Part2.ppt
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 First, click here. The system will enable you to browse through your disk for finding the document MyChapter2Part2.ppt
Background image of page 4
5 Step 2: Use the Browse button to locate the document in your disk and then click on the Check button MyChapter2Part2.ppt Click here, and find the document in your disk’s folder. Then click on the Check button. The Check button
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Step 3: After the validator has checked your code it will display the following screen (if your document is correct) 6
Background image of page 6
7 Note: In certain instances, you may receive the following screen (if your document is a valid XHTML1.1 document) Your document has been found to be a valid XHTML1.1 document If you receive this warning, ignore it. MyChapter2Part2.ppt
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 If your document is not found to be valid, the validator will display one or more error messages . In that case you will need to revise your document and test it again. MyChapter2Part2.ppt
Background image of page 8
9 Ahmed: Embedding the XHTML1.1 Guarantee icon at the bottom of the Page: PepsiHomeGuaranteed.htm You may want to guarantee the XHTML1.1 compliance of your document (with some degree of pride, of course)! W3C site has a guarantee image that is usually displayed at the bottom of an XHTML1.1 compliant page. MyChapter2Part2.ppt
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10 If your document is found to be a valid XHTML1.1 document, you may copy and paste the following code. <p> <img src="http://www.w3.org/Icons/valid-xhtml11.png" alt="Valid XHTML 1.1" height="31px" width="88px" /> </p> MyChapter2Part2.ppt Watch it: The validation site at W3C gives a somewhat similar code to accomplish this task. Do not copy the code from there. The W3C code will not work because W3C code embeds the icon’s image in an anchor tag and if the user clicks on it the browser will give an error message.
Background image of page 10
We have included the above code in our PepsiHome.htm and saved it as PepsiHomeGuaranteed.htm. MyChapter2Part2.ppt
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 46

MyChapter2Part2 - Chapter2:XHTMLBasics:Part2...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online