Web hosting domains - 1454 Introduction to XHTML: Part 1 Appendix K
1454 Introduction to XHTML: Part 1 Appendix K ANSWERS TO SELF-REVIEW EXERCISES K.1 a) True. b) False. An ordered list can be nested inside an unordered list. c) False. XHTML is an acronym for Extensible HyperText Markup Language. d) True. e) False. A hyperlink is marked up with tags. K.2 a) hr. b) sup, sub. c) h6, h1. d) ul. e) p. EXERCISES K.3 Use XHTML to create a document that contains instructions to mark up the following text: Internet and World Wide Web How to Program: Second Edition Welcome to the world of Internet programming. We have provided topical coverage for many Internet-related topics. Use h1 for the title (the first line of text), pfor text (the second and third lines of text) and sub for each word that begins with a capital letter. Insert a horizontal rule between the h1element and the p element. Open your new document in a Web browser to view the marked-up document. K.4 Why is the following markup invalid?
Here is some text… And some more text… K.5 Why is the following markup invalid?
Here is some text… K.6 An image named deitel.gifis 200 pixels wide and 150 pixels high. Use the widthand heightattributes of the
And some more text… tag to (a) increase the size of the image by 100%; (b) increase the size of the image by 50%; and (c) change the width-to-height ratio to 2:1, keeping the width attained in part (a). Write separate XHTML statements for parts (a), (b) and (c). K.7 Create a link to each of the following: (a) index.html, located in the files directory; (b) index.html, located in the text subdirectory of the files directory; (c) index.html, located in the other directory in your parent directory [Hint: .. signifies parent directory.]; (d) The United States President s e-mail address (president@whitehouse.gov); and (e) An FTP link to the file named README in the pub directory of ftp.cdrom.com[Hint: Use ftp://.]. K.8 Create an XHTML document that marks up your resume. K.9 Create an XHTML document containing three ordered lists: ice cream, soft serve and frozen yogurt. Each ordered list should contain a nested, unordered list of your favorite flavors. Provide a minimum of three flavors in each unordered list. K.10 Create an XHTML document that uses an image as an e-mail link. Use attribute alt to provide a description of the image and link. K.11 Create an XHTML document that contains an ordered list of your favorite Web sites. Your page should contain the header My Favorite Web Sites. K.12 Create an XHTML document that contains links to all the examples presented in this appendix. [Hint: Place all the appendix examples in one directory]. K.13 Modify the XHTML document (picture.html) in Fig. K.7 by removing all end tags. Validate this document, using the W3C validation service. What happens? Next remove the alt attributes from the
tags and revalidate your document. What happens?
We recommend high quality webhost to host and run your jsp application: christian web host services.