HTML Questions March 1, 2023 | No Comments 0 votes, 0 avg 1021 123456789101112131415 HTML Questions 1 / 15 1. In HTML, tags that include both on and off tag are called A. comment tag B. document tag C. container tag D. None of the above 2 / 15 2. Which of the following is not a difference between HTML and XHTML? A. Charset in both html and xhtml is “text/html” B. Tags and attributes are case-insensitive in HTML but not in XHTML C. Special characters must be escaped using character entities in XHTML unlike HTML D. Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml” 3 / 15 3. Which HTML tag or tags embed a webpage inside of a webpage A. <iframe></iframe>,<frame></frame> and <frameset></frameset> B. <frame></frame> C. <iframe></iframe> D. <frame></frame> and <frameset></frameset> 4 / 15 4. Adding a border to your image helps the visitor to recognize it as ___________ A. A Frame B. A Link C. A Picture D. None of the above 5 / 15 5. How do we write comments in HTML? A. //this is a comment B. /* this is a comment */ C. <! This is a comment -> D. <!– This is a comment –> 6 / 15 6. Which of the following is true? A. br tag is used to have a blank line. B. In tables,the header cell is centered by default and the data cells are right aligned. C. The tr is used to create a data cell. D. INPUT tag must have atleast 4 attributes. 7 / 15 7. which tag is used to follow the exact format in which it is written? A. <p></p> B. <pre></pre> C. <span></span> D. none of the above 8 / 15 8. What are the types of unordered lists in HTML? A. circle, square, disc B. triangle, square, disc C. triangle, circle, disc D. all of the above 9 / 15 9. Which of the following HTML code will make an image clickable? A. <a href="https://www.abc.com/">ABC Home Page</a> B. <img src="https://www.abc.com/abc-logo"> <a href="https://www.abc.com/">ABC Home Page</a></img> C. <a href="https://www.abc.com/">ABC Home Page</a><img src="https://www.abc.com/abc-logo" /> D. <a href="https://www.abc.com/"><img src="https://www.abc.com/abc-logo" /></a> 10 / 15 10. < audio controls src=”sound.mp3” type=”audio/mpeg” > When does this text display? < /audio > A. The text displays over the audio controls,unless CSS is used to position it else where. B. The text displays under the audio controls. C. The text displays when the browser cannot play the sound. D. The text never displays. 11 / 15 11. Which of the following tag does not require a terminator? A. <u></u> B. <br></br> C. <b></b> D. <li></li> 12 / 15 12. What is the work of address tag element in HTML5? A. contains IP address B. contains contact details for author C. contains url D. contains home address 13 / 15 13. Which property allows an image link to show a text label? A. alternative B. str C. value D. alt 14 / 15 14. Which of the following tag is used to create a combo box (or drop-down box)? A. <list></list> B. <select></select> C. <input type="dropdown"></input> D. <ul></ul> 15 / 15 15. What does the code shown below will accomplish? < picture > < source srcset=”image1.jpg” media=”(min-width:1000px)”/ > < source srcset=”image2.jpg” media=”(min-width:750px)”/ > < img src=”image3.jpg”/ > < /picture > A. It will display image1.jpg at 1000px and higher, image2.jpg at 750px-990px, and image3.jpg at 749px and Lower. B. It will display image1.jpg at 1000px and higher, image2.jpg at 750px-999px, and image3.jpg is a default In case <picture> is not supported. C. It will display image1.jpg at 1000px and higher, image2.jpg at 750px and higher, image3.jpg is a default In case picture tag is not supported. D. It will display image1.jpg, image2.jpg and image3.jpg at 1000px and higher. Your score isThe average score is 47% LinkedIn Facebook VKontakte 0% Restart quiz By WordPress Quiz plugin Questions, Quiz