JazzcatCB
12-12-2005, 12:28 PM
I want to create a training resource for web developers. I am creating a site named the "Web Authoring Exam." The exam below is for "XHTML Basics." The point of the exam is to have exam-takers actually write code to solve the problems, rather than selecting from multiple choice. Would you please look over each problem and each solution and let me know:
1) If a solution is wrong
2) If a solution could be coded more efficiently
3) If a problem's wording is incorrect or misleading'
4) If I have missed a coding problem that belongs in the "XHTML Basics" category (note: tables will be covered under an "XHTML Tables" category).
Please note that while there are better solutions to these problems using CSS, this exam is strictly for XHTML. There will be another exam for CSS.
Thank you for your help.
Problem 1. Create a paragraph containing the text: “A lie gets halfway around the world before the truth has a chance to get its pants on.” (Sir Winston Churchill).",
Solution: "<p>A lie gets halfway around the world before the truth has a chance to get its pants on.</p>",
Problem 2. Create a headline in the largest available size containing the text: “Extra Big Headline!”",
Solution: "<h1>Extra Big Headline!</h1>",
Problem 3. Create a hyperlink pointing to “www.someurl.com” and containing the text: “Cool Link!”",
Solution: "<a href=\"http://www.someurl.com\">Cool Link!</a>",
Problem 4. Create an e-mail hyperlink pointing to “wchurchill@downingstreet.com” containing the text “Send e-mail to Winston Churchill (posthumously).”",
Solution: "<a href=\"mailto:wchurchill@downingstreet.com\">Send e-mail to Winston Churchill (posthumously).</a>",
Problem 5. Enclose the text “I'm gonna ace this test!” inside of comment tags.",
Solution: "<!-- I'm gonna ace this test! -->",
Problem 6. Create a paragraph containing the text “Learning HTML is fun!” Make “HTML” boldfaced and “fun!” italicized.",
Solution: "<p>Learning <b>HTML</b> is <i>fun!</i></p>",
Problem 7. Create the following text colors and have them apply to your entire HTML document:\n
- text: #9932CD,\n
- hyperlink: #FF0000,\n
- visited link: #00FF00,\n
- active link: #000000.",
Solution: "<body text=\"#9932CD\" link=\"#FF0000\" vlink=\"#00FF00\" alink=\"#000000\">",
Problem 8. Create a paragraph containing the text “To see him act is like reading Shakespeare by flashes of lightning.” (Samuel Taylor Coleridge). Make the word “lightning” blue (#0000FF).",
Solution: "<p>To see him act is like reading Shakespeare by flashes of <font color=\"#0000FF\">lightning</font>.</p>",
Problem 9. Create a paragraph containing the text “I am enormous!” in the largest available font size.",
Solution: "<p><font size=\"7\">I am enormous!</font></p>",
Problem 10. What tags turn preformatted text on and off?",
Solution: "<pre></pre>",
Problem 11. Give your page a background image named “someimage.gif.”",
Solution: "<body bgimage=\"someimage.gif\">",
Problem 12. Give you page a background color of #FFCCFF",
Solution: "<body bgcolor=\"#FFCCFF\">",
Problem 13. Create the following quote: “You should never name an animal which is not yours to keep, or which you intend to eat.” (Deborah Boliver Boehm). Indent it on both the left and right sides.",
Solution: "<blockquote>You should never name an animal which is not yours to keep, or which you intend to eat.</blockquote>",
Problem 14. Create a paragraph containing the text “However, if you must name an animal you intend to eat, 'Snack' is a fine choice.” (myself). Place a line break after each comma.",
Solution: "<p>However,<br />if you must name an animal you intend to eat,<br />'Snack' is a fine choice.</p>",
Problem 15. Create a headline in the smallest available size that contains the centered text “Once you label me, you negate me.” (Soren Kierkegaard).",
Solution: "<h7 align=\"center\">Once you label me, you negate me.</h7>",
Problem 16. Create an image located at “images/someimage.gif” and right justify it.",
Solution: "<img src=\"images/someimage.gif\" align=\"right\" />",
Problem 17. Now center the image in problem 16.",
Solution: "<img src=\"images/someimage.gif\" align=\"center\" />",
Problem 18. Create a numbered list. The first item should be “I know XHTML.” The second item should be “That roXXors.”",
Solution: "<ol>\n<li>I know XHTML.</li>\n<li>That roXXors.</li>\n</ol>",
Problem 19. Create a bulleted list. The first item should be “Candy is dandy.” The second item should be “But liquor is quicker.”",
Solution: "<ul>\n<li>Candy is dandy.</li>\n<li>But liquor is quicker.</li>\n</ul>",
Problem 20. Display the text “I'll soon the be smartest programmer in the known universe.” indented to the right by using an unordered list element Then display “Thanks to the Web Authoring Exam.” indented even further to the right.",
Solution: "<ul>I'll soon the be smartest programmer in the known universe.</ul>\n<ul><ul>Thanks to the Web Authoring Exam.</ul></ul>",
Problem 21. Display a border with the value of 5 around an image located at “images/someimage.gif.”",
Solution: "<img border=\"5\" src=\"images/someimage.gif\" />",
Problem 22. Display an image located at “images/someimage.gif” left justified and display the text “This text floats right” floating along the right of the image."
Solution: "<p><img src=\"images/someimage.gif\" align=\"left\" />This text floats right.</p>"
1) If a solution is wrong
2) If a solution could be coded more efficiently
3) If a problem's wording is incorrect or misleading'
4) If I have missed a coding problem that belongs in the "XHTML Basics" category (note: tables will be covered under an "XHTML Tables" category).
Please note that while there are better solutions to these problems using CSS, this exam is strictly for XHTML. There will be another exam for CSS.
Thank you for your help.
Problem 1. Create a paragraph containing the text: “A lie gets halfway around the world before the truth has a chance to get its pants on.” (Sir Winston Churchill).",
Solution: "<p>A lie gets halfway around the world before the truth has a chance to get its pants on.</p>",
Problem 2. Create a headline in the largest available size containing the text: “Extra Big Headline!”",
Solution: "<h1>Extra Big Headline!</h1>",
Problem 3. Create a hyperlink pointing to “www.someurl.com” and containing the text: “Cool Link!”",
Solution: "<a href=\"http://www.someurl.com\">Cool Link!</a>",
Problem 4. Create an e-mail hyperlink pointing to “wchurchill@downingstreet.com” containing the text “Send e-mail to Winston Churchill (posthumously).”",
Solution: "<a href=\"mailto:wchurchill@downingstreet.com\">Send e-mail to Winston Churchill (posthumously).</a>",
Problem 5. Enclose the text “I'm gonna ace this test!” inside of comment tags.",
Solution: "<!-- I'm gonna ace this test! -->",
Problem 6. Create a paragraph containing the text “Learning HTML is fun!” Make “HTML” boldfaced and “fun!” italicized.",
Solution: "<p>Learning <b>HTML</b> is <i>fun!</i></p>",
Problem 7. Create the following text colors and have them apply to your entire HTML document:\n
- text: #9932CD,\n
- hyperlink: #FF0000,\n
- visited link: #00FF00,\n
- active link: #000000.",
Solution: "<body text=\"#9932CD\" link=\"#FF0000\" vlink=\"#00FF00\" alink=\"#000000\">",
Problem 8. Create a paragraph containing the text “To see him act is like reading Shakespeare by flashes of lightning.” (Samuel Taylor Coleridge). Make the word “lightning” blue (#0000FF).",
Solution: "<p>To see him act is like reading Shakespeare by flashes of <font color=\"#0000FF\">lightning</font>.</p>",
Problem 9. Create a paragraph containing the text “I am enormous!” in the largest available font size.",
Solution: "<p><font size=\"7\">I am enormous!</font></p>",
Problem 10. What tags turn preformatted text on and off?",
Solution: "<pre></pre>",
Problem 11. Give your page a background image named “someimage.gif.”",
Solution: "<body bgimage=\"someimage.gif\">",
Problem 12. Give you page a background color of #FFCCFF",
Solution: "<body bgcolor=\"#FFCCFF\">",
Problem 13. Create the following quote: “You should never name an animal which is not yours to keep, or which you intend to eat.” (Deborah Boliver Boehm). Indent it on both the left and right sides.",
Solution: "<blockquote>You should never name an animal which is not yours to keep, or which you intend to eat.</blockquote>",
Problem 14. Create a paragraph containing the text “However, if you must name an animal you intend to eat, 'Snack' is a fine choice.” (myself). Place a line break after each comma.",
Solution: "<p>However,<br />if you must name an animal you intend to eat,<br />'Snack' is a fine choice.</p>",
Problem 15. Create a headline in the smallest available size that contains the centered text “Once you label me, you negate me.” (Soren Kierkegaard).",
Solution: "<h7 align=\"center\">Once you label me, you negate me.</h7>",
Problem 16. Create an image located at “images/someimage.gif” and right justify it.",
Solution: "<img src=\"images/someimage.gif\" align=\"right\" />",
Problem 17. Now center the image in problem 16.",
Solution: "<img src=\"images/someimage.gif\" align=\"center\" />",
Problem 18. Create a numbered list. The first item should be “I know XHTML.” The second item should be “That roXXors.”",
Solution: "<ol>\n<li>I know XHTML.</li>\n<li>That roXXors.</li>\n</ol>",
Problem 19. Create a bulleted list. The first item should be “Candy is dandy.” The second item should be “But liquor is quicker.”",
Solution: "<ul>\n<li>Candy is dandy.</li>\n<li>But liquor is quicker.</li>\n</ul>",
Problem 20. Display the text “I'll soon the be smartest programmer in the known universe.” indented to the right by using an unordered list element Then display “Thanks to the Web Authoring Exam.” indented even further to the right.",
Solution: "<ul>I'll soon the be smartest programmer in the known universe.</ul>\n<ul><ul>Thanks to the Web Authoring Exam.</ul></ul>",
Problem 21. Display a border with the value of 5 around an image located at “images/someimage.gif.”",
Solution: "<img border=\"5\" src=\"images/someimage.gif\" />",
Problem 22. Display an image located at “images/someimage.gif” left justified and display the text “This text floats right” floating along the right of the image."
Solution: "<p><img src=\"images/someimage.gif\" align=\"left\" />This text floats right.</p>"