Final Exam Study Guide 1. What does HTML stand for? 2. Which file extension is used with standard web pages? a..doc b..xhtml c..txt d..html 3. Which is not part of an XHTML element? a. Anchor b. Start tag c. End tag d. Attributes 4. Which of the following will create a bulleted list? a. <blist> b. <ol> c. <bullet> d. <ul> 5. What is wrong with the following XHTML code? <a href="www.youtube.com">visit YouTube</a> 6. What is wrong with the following? <img source="sunset.jpg" alt="beautiful Sunset" /> 7. What is generally considered the best format to use for color photographs on the web? a..jpg b..pic c..gif d..bmp
8. Which image format can support animation? a..jpg b..gif c..png d..mov 9. A bookmark link starts with which symbol in the href attribute? a. # b. $ c. : d. @ 10. What would a blind person hear in a screen reader in the place of a web image? a. The name of the actual image file. b. Nothing. c. The caption text in the <p> element that precedes or follows the image. d. Whatever text is specified in the alt attribute. 11. What will happen if we do not specify the border attribute for a <table> element? a. There will be an error and the table will not display. b. The table will show the default value of 1 pixel cell borders. c. The browser will ask the user to supply a border size. d. The table will show without any cell borders. 12. Where is an internal style sheet located? a. In a separate file from the XHTML document b. In the <body> section of the XHTML document c. In the <head> section of the XHTML document d. In the <title> section of the XHTML document 13. In the following CSS statement, which is considered the selector? p { color:blue; } a. p b. { } c. color d. blue
14. The correct syntax for using a colspan attribute in an XHTML document is: e. <td colspan:3> f. <td colspan="3"> g. <td colspan=3> h. <td colspan=100%> 15. CSS classes and IDs are defined by which starting character, respectively, in the <style> section? a. Colon and period b. Period and pound sign c. Pound sign and period d. Pound sign and colon 16. Which CSS property sets the background color for an XHTML element, such as a table row? a. bg: b. bgcolor: c. background: d. background-color: 17. Going from the outside in, what is the order of components in the box model? e. Content, padding, border, margin f. Border, padding, margin, content g. Border, margin, padding, content h. Margin, border, padding, content 18. Which is not a valid location for CSS declarations? a. Inline b. CSS div after the opening <body> tag c. External Style Sheet d. Internal Style Sheet 19. What type of content can be placed into a <td> table cell element? a. Text only b. Text and links only c. Text, links, and lists only d. Text, links, lists, and images
20. What CSS technique could we use to force a <div> element to center itself horizontally in the browser window, no matter what the screen dimensions are? a. Set the text-align property of the <div> to center. b. Set the right and left margins of the <div> to auto. c. Set the screen property of the <div> to horizontal-center. d. Set the width property of the <div> to be 50%. 21. If you were on a web page and some of the links looked blue and some looked purple, what is the most likely explanation for this? a. The web designer styled some links to be blue and others to look purple. b. The links that are in purple are dead or inactive. c. The purple links are sites that you have already visited. d. The browser is having a problem and needs to be closed and restarted. 22. Which of the following can we use to indicate that the cells in the first row of a table are labels for the data below and should be formatted differently? a. <td special> b. <td first> c. <th> d. <table header> 23. If you wanted to add a footnote reference like this 1 to a word, which element would you use? a. <foot> b. <sup> c. <up> d. <sub> 24. Write the CSS code to make all <h2> headings display centered and in green: 25. RGB stands for: a. Red, Gray, Black b. Royal Blue, Gold, Brown c. Red, Green, Blue d. Red, Gold, Brown
26. How does the XHTML validator know which rules to apply to our web document? e. It is based on which web browser we are using. f. All documents have the same rules applied to them. g. It will prompt us each time to select a set of rules. h. It is based on what we specify in the DOCTYPE statement. 27. Write the CSS to make paragraph text display in Century Gothic font. If that font is not available, make Tahoma and sans-serif as the backup fonts, in that order: 28. Where does the style sheet <link> statement belong? a. Between <head> and </head> b. Between <title> and </title> c. Between <body> and </body> d. Immediately after the DOCTYPE statement 29. Which of the following would be out of place in an external CSS style sheet? i..newclass { j. text-decoration: underline; k. <style> l. /* Trying a new style */ 30. Which two CSS properties are used to place a gradient on a web page? a. <img>, <div> b. bgcolor, img c. color, background-color d. background-image, background-repeat