Chapter 4 Attributes, Lists, and Tables True/False Questions 1. The following two statements are equivalent: <H2 ALIGN="center">Welcome to my Web page!</H2> <CENTER><H2>Welcome to my Web page!</H2></CENTER> 2. When specifying the value of an attribute you may NOT put spaces on either side of the equals sign. The following would be an error: <H2 ALIGN = "center">Welcome to my Web page!</H2> 3. Names of attributes must be typed using upper case letters. 4. If the ALIGN attribute is not present in a header tag, then ALIGN="left" is the default value. 5. In the "hex triple" color system, there are sixteen basic colors that have predefined names but no numeric value. 6. You may use either the name or the number of sixteen basic colors. If either case, however, just don't forget the "#" sign in front of it. For example: <BODY BGCOLOR="#FF00FF"> and <BODY BGCOLOR="#magenta"> 7. Certain colors do not display the same on all computer browsers. 8. The order of attributes within a tag does not matter, as long as they are separated by spaces. 9. With each revision in the HTML standard, certain containers and tags are "deprecated," meaning they are on the way out and are no longer recommended for use, although they will still work in most browsers. 4-1 10. With each revision in the HTML standard, certain containers and tags are declared "obsolete," meaning they are on the way out and are no longer recommended for use, although they will still work in most browsers. 11. The <FONT> container is an inline container that may be used to change the size, color, and font style of text via the SIZE, COLOR, and FACE attributes. The values of the SIZE attribute range from 1 to 7, with 7 being the smallest. 12. <P> is a container tag, not a single tag. 13. <BR> is a container tag, not a single tag. 14. <HR> is a container tag, not a single tag. 15. The ALIGN attribute can be used with the <HR> tag. Multiple Choice Questions 16. If the ALIGN attribute is not present in a header tag, then which of these is the default value? A) ALIGN="left" B) ALIGN="right" C) ALIGN="center" D) ALIGN="none" 17. Which of the following represent numbers in the hexadecimal system? A) F B) A C) P D) a and b 18. The six hexadecimal digits in the color code are actually divided into three pairs of two digits each. The first pair represents: A) red B) blue C) green D) binary 4-2 19. The six hexadecimal digits in the color code are actually divided into three pairs of two digits each. The second pair represents: A) red B) blue C) green D) binary 20. The six hexadecimal digits in the color code are actually divided into three pairs of two digits each. The third pair represents: A) red B) blue C) green D) binary 21. Which of these is a browser-specific tag that works in only one browser? A) <FLASH> B) <MARQUEE> C) <REPEAT> D) <HEX> 22. With each revision in the HTML standard, certain containers and tags are declared ____, meaning they are on the way out and are no longer recommended for use, although they will still work in most browsers. A) obsolete B) deprecated C) anethema D) DOA 23. Which of the following is a single tag, not a container? A) <HR> B) <BR> C) both a and b D) neither a nor b 24. Which of the following is a container tag, not a single tag? A) <P> B) <BR> C) both a and b D) neither a nor b. 4-3 25. Which of the following is an HTML comment tag: A) // B) /* and */ C) <!-- and --> D) <-- and --> 26. What does a browser do with the text inside a comment tag? A) displays it B) ignores it C) centers it D) none of the above 27. The items in which of these lists are listed by number or letter: 1, 2, 3… or A, B, C…, etc.? A) selection B) unordered C) definition D) none of the above 28. The items in which of these lists are marked by a solid disc (bullet), open circle, or solid square? A) ordered B) unordered C) definition D) selection 29. Which of the following is a container tag? A) <LI> B) <P> C) <BR> D) <HR> 30. Which of these is not a container tag? A) <LI> B) <P> C) <OL> D) <FONT> 4-4 31. When you nest unordered lists, a hierarchy is displayed: the top level uses which of these to mark each item? A) solid squares B) open circles C) solid discs D) asterdiscs 32. Which of these is NOT a value that can be used for the TYPE attribute in the <UL> tag. A) rectangle B) disc C) circle D) square 33. Which of these is NOT a value that can be used for the TYPE attribute in the <OL> tag. A) i B) * C) A D) I 34. The browser allows us to change not just the marking scheme for a given list, but also any given individual mark within a list. To do this, we put the TYPE attribute in which of these tags? A) <OPTION> B) <DD> C) <OL> D) <LI> 35. When creating tables, it is very important not to forget this ending tag. In some browsers, omitting it causes the browser to display no table at all. A) </TR> B) </TABLE> C) </ROW> D) </TH> 4-5