The _______ CSS property is used to control the line-breaking behavior of an inline element.

  • border-collapse 
  • display 
  • line-height 
  • white-space 
The white-space CSS property determines how white spaces inside an element are handled. By default, it's set to normal, which allows white spaces to collapse and line breaks to occur. However, if you want to control the line-breaking behavior of an inline element (like preventing it from breaking), you can use values like nowrap for the white-space property. 

The _______ element should be used to provide a reference for a blockquote when it is not part of the quoting sentence.

  • cite 
  • figcaption 
  • ref 
  • source 
The figcaption element is typically used with the

element to provide a caption or a reference for content such as

, images, or diagrams. When a blockquote needs additional context or a citation that isn't part of the quoting sentence, wrapping the blockquote in a

and using a
for the citation/reference provides a semantically meaningful structure. 

How can you adjust the spacing between paragraphs in HTML?

  • By altering the font-size. 
  • By changing the HTML version. 
  • By modifying the margin or padding CSS properties. 
  • By using the resize attribute. 
In HTML, the spacing between elements, such as paragraphs, can be adjusted using CSS properties like margin and padding. Specifically, the margin-bottom property on a

element or the margin-top property on the subsequent paragraph can determine the space between two paragraphs. Adjusting these properties allows for precise control over the layout and visual flow of content. 

What is the purpose of the method attribute in a form element?

  • To define how long the form should be displayed. 
  • To define the type of browser to open the form in. 
  • To specify the HTTP method to use when sending form data. 
  • To specify the way data is displayed on submission. 
The method attribute in an HTML form specifies the HTTP method to use when sending form data. Common values for this attribute include "GET" and "POST". The "GET" method appends form data to the URL in name/value pairs, which is ideal for non-sensitive data and when you want to bookmark the result. The "POST" method, on the other hand, sends the form data as the HTTP message body, making it more suitable for sending large amounts or sensitive data. 

Which HTML tag is used to create an ordered list?

  •  
  •  
    1.  
      •  
      The

        tag is used in HTML to create an ordered list. An ordered list typically displays elements in a numbered format. For example, it could be used to present a step-by-step guide or a ranked list of items. 

Inline quotations are typically represented using the _______ element in HTML.

  •  
  •  
  •  
  •  
For shorter quotations that don't require a block-level distinction, the element is used. It's an inline element, so it doesn't start on a new line and doesn't take up the full width of its container. Browsers typically render the content of the element with quotation marks. 

Which attribute is used in the video tag to make sure the video controls like play, pause, and the seek bar are available to the user?

  • controls 
  • features 
  • operations 
  • playback 
The controls attribute is used with the

The ______ element is used to provide a title for the table, which will be displayed above the table.

  •  
  •  
  •  
  •  </li> </ul> <div class="answer" data-value="1">The </p> <caption> element is specifically designed to provide a title or caption for a table. This title will be displayed just above the table. While </p> <thead> is used for grouping header content, <title> sets the document's title (visible in browser tabs), and </p> <header> is a container for introductory content. </div> </div> <div class="discuss"> <a class="btn btn-sm btn-secondary" rel="bookmark" href="/quiz/33169/">Discuss it</a> </div> </div> <div class="card quiz mb-4"> <h1 class="h5 mx-4 mt-3 mb-0 quizid" data-id="33170">What are the implications of using multiple h1 tags within a single webpage for SEO and semantic HTML?</h1> <!-- star --> <div class="star d-flex align-items-center"> <svg aria-hidden="true" width="100%" height="100%" viewBox="0 0 70 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <mask id="star-mask-33170"> <rect x="0" y="0" width="40%" height="100%" fill="white"></rect> </mask> <g class="star-filled" mask="url(#star-mask-33170)"> <use xlink:href="#icon-star" width="14" height="14" x="0"></use> <use xlink:href="#icon-star" width="14" height="14" x="14"></use> <use xlink:href="#icon-star" width="14" height="14" x="28"></use> <use xlink:href="#icon-star" width="14" height="14" x="42"></use> <use xlink:href="#icon-star" width="14" height="14" x="56"></use> </g> <g fill="transparent" class="star-bordered" stroke-width="2"> <use xlink:href="#icon-star" width="12" height="12" x="1" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="15" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="29" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="43" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="57" y="1"></use> </g> </svg> <span aria-hidden="true" class="visually-hidden">Difficulty level</span> </div> <div class="option"> <ul> <li>It can dilute the main topic focus and confuse search engines, potentially impacting page ranking. </li> <li>It can lead to a decrease in page load times. </li> <li>It enhances the site's mobile responsiveness. </li> <li>It makes the website look visually appealing. </li> </ul> <div class="answer" data-value="1">Historically, it was a best practice to use a single h1 tag per page to represent the primary topic or focus. With the advent of HTML5 and the section element, it's now semantically correct to use multiple h1 tags in different sections of a page. However, overusing the h1 tag or using it without proper semantic structuring can dilute the main topic focus of the page. Search engines could get confused about the primary content, potentially affecting the page's SEO ranking. </div> </div> <div class="discuss"> <a class="btn btn-sm btn-secondary" rel="bookmark" href="/quiz/33170/">Discuss it</a> </div> </div> <div class="card quiz mb-4"> <h1 class="h5 mx-4 mt-3 mb-0 quizid" data-id="33171">Why was the DOCTYPE declaration simplified in HTML5 compared to HTML 4.01?</h1> <!-- star --> <div class="star d-flex align-items-center"> <svg aria-hidden="true" width="100%" height="100%" viewBox="0 0 70 14" fill="none" xmlns="http://www.w3.org/2000/svg"> <mask id="star-mask-33171"> <rect x="0" y="0" width="80%" height="100%" fill="white"></rect> </mask> <g class="star-filled" mask="url(#star-mask-33171)"> <use xlink:href="#icon-star" width="14" height="14" x="0"></use> <use xlink:href="#icon-star" width="14" height="14" x="14"></use> <use xlink:href="#icon-star" width="14" height="14" x="28"></use> <use xlink:href="#icon-star" width="14" height="14" x="42"></use> <use xlink:href="#icon-star" width="14" height="14" x="56"></use> </g> <g fill="transparent" class="star-bordered" stroke-width="2"> <use xlink:href="#icon-star" width="12" height="12" x="1" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="15" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="29" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="43" y="1"></use> <use xlink:href="#icon-star" width="12" height="12" x="57" y="1"></use> </g> </svg> <span aria-hidden="true" class="visually-hidden">Difficulty level</span> </div> <div class="option"> <ul> <li>To encourage the use of the latest standards without needing frequent DOCTYPE changes for new HTML versions. </li> <li>To make it compatible with XML parsers. </li> <li>To make the declaration more human-readable. </li> <li>To reduce the file size of web pages. </li> </ul> <div class="answer" data-value="1">HTML5 aimed to be a simpler, more streamlined language that was both backward-compatible and forward-looking. The DOCTYPE was simplified to <!DOCTYPE html> to avoid the various complications and confusions that arose from having multiple DOCTYPEs in previous versions of HTML. This change also promotes the idea of "one web" where the same content can be served to all devices, regardless of the HTML version, without having to regularly update the DOCTYPE as standards evolve. </div> </div> <div class="discuss"> <a class="btn btn-sm btn-secondary" rel="bookmark" href="/quiz/33171/">Discuss it</a> </div> </div> <nav class="my-4" aria-label="Page navigation" role="navigation"><span class="visually-hidden">Page navigation</span><ul class="pagination justify-content-center"><li class="page-item disabled"><span class="page-link">Page 836 of 3995</span></li><li class="page-item"><a class="page-link" href="/category/quiz/" aria-label="First Page">«<span class="d-none d-lg-inline-block"> First</span></a></li><li class="page-item"><a class="page-link" href="/category/quiz/page/835/" aria-label="Previous Page">‹<span class="d-none d-lg-inline-block"> Previous</span></a></li><li class="page-item"><a class="page-link" href="/category/quiz/page/834/"><span class="visually-hidden">Page </span>834</a></li><li class="page-item"><a class="page-link" href="/category/quiz/page/835/"><span class="visually-hidden">Page </span>835</a></li><li class="page-item active"><span class="page-link"><span class="visually-hidden">Current Page </span>836</span></li><li class="page-item"><a class="page-link" href="/category/quiz/page/837/"><span class="visually-hidden">Page </span>837</a></li><li class="page-item"><a class="page-link" href="/category/quiz/page/838/"><span class="visually-hidden">Page </span>838</a></li><li class="page-item"><a class="page-link" href="/category/quiz/page/837/" aria-label="Next Page"><span class="d-none d-lg-inline-block">Next </span>›</a></li><li class="page-item"><a class="page-link" href="/category/quiz/page/3995/" aria-label="Last Page"><span class="d-none d-lg-inline-block">Last </span>»</a></li></ul></nav></main> <aside class="sidebar col-lg-4"> <!-- Tags --> <div class="border rounded-1 bg-white px-3 pt-3 pb-2 mb-4"> <h3 class="h6 border-bottom pb-2 mb-3">Book Topics</h3> <div class="d-flex flex-wrap gap-2"><a href="/topic/science/" class="badge rounded-pill text-bg-light link-primary fw-normal">Science</a><a href="/topic/nature-maths/" class="badge rounded-pill text-bg-light link-primary fw-normal">Nature & Maths</a><a href="/topic/computing-internet/" class="badge rounded-pill text-bg-light link-primary fw-normal">Computing & Internet</a><a href="/topic/politics/" class="badge rounded-pill text-bg-light link-primary fw-normal">Politics</a><a href="/topic/philosophy-social-sciences/" class="badge rounded-pill text-bg-light link-primary fw-normal">Philosophy & Social Sciences</a><a href="/topic/mathematics/" class="badge rounded-pill text-bg-light link-primary fw-normal">Mathematics</a><a href="/topic/reference/" class="badge rounded-pill text-bg-light link-primary fw-normal">Reference</a><a href="/topic/social-sciences/" class="badge rounded-pill text-bg-light link-primary fw-normal">Social Sciences</a><a href="/topic/programming/" class="badge rounded-pill text-bg-light link-primary fw-normal">Programming</a><a href="/topic/engineering-technology/" class="badge rounded-pill text-bg-light link-primary fw-normal">Engineering & Technology</a><a href="/topic/computer-science/" class="badge rounded-pill text-bg-light link-primary fw-normal">Computer Science</a><a href="/topic/education/" class="badge rounded-pill text-bg-light link-primary fw-normal">Education</a><a href="/topic/scientific/" class="badge rounded-pill text-bg-light link-primary fw-normal">Scientific</a><a href="/topic/technical-medical/" class="badge rounded-pill text-bg-light link-primary fw-normal">Technical & Medical</a><a href="/topic/machine-learning/" class="badge rounded-pill text-bg-light link-primary fw-normal">Machine Learning</a><a href="/topic/business/" class="badge rounded-pill text-bg-light link-primary fw-normal">Business</a><a href="/topic/finance-law/" class="badge rounded-pill text-bg-light link-primary fw-normal">Finance & Law</a><a href="/topic/python/" class="badge rounded-pill text-bg-light link-primary fw-normal">Python</a><a href="/topic/higher-education/" class="badge rounded-pill text-bg-light link-primary fw-normal">Higher Education</a><a href="/topic/ai-machine-learning/" class="badge rounded-pill text-bg-light link-primary fw-normal">AI & Machine Learning</a></div> </div> <div class="border rounded-1 bg-white px-3 pt-3 pb-2 mb-4"> <h3 class="h6 border-bottom pb-2 mb-3">Hot Quiz</h3> <div class="d-flex flex-wrap gap-2"><a href="/quizzes/php-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">PHP Quiz</a><a href="/quizzes/go-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Go Quiz</a><a href="/quizzes/machine-learning-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Machine Learning Quiz</a><a href="/quizzes/react-js-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">React.js Quiz</a><a href="/quizzes/cyber-security-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Cyber Security Quiz</a><a href="/quizzes/python-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Python Quiz</a><a href="/quizzes/node-js-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Node.js Quiz</a><a href="/quizzes/asp-net-core-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">ASP.NET Core Quiz</a><a href="/quizzes/data-science-statistics-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Data Science Statistics Quiz</a><a href="/quizzes/css-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">CSS Quiz</a><a href="/quizzes/etl-testing-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">ETL Testing Quiz</a><a href="/quizzes/ado-net-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">ADO.NET Quiz</a><a href="/quizzes/db2-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">DB2 Quiz</a><a href="/quizzes/checkpoint-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Checkpoint Quiz</a><a href="/quizzes/servlet-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Servlet Quiz</a><a href="/quizzes/hadoop-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Hadoop Quiz</a><a href="/quizzes/data-modelling-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Data Modelling Quiz</a><a href="/quizzes/api-testing-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">API Testing Quiz</a><a href="/quizzes/algorithm-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Algorithm Quiz</a><a href="/quizzes/database-testing-quiz/" class="badge rounded-pill text-bg-light link-primary fw-normal">Database Testing Quiz</a></div> </div> <!-- top 10 --> <div class="border rounded-1 bg-white px-3 pt-3 pb-2 mb-4"> <h3 class="h6 border-bottom pb-2 mb-3">Hot Books of This Week</h3> <ol class="ps-4 mb-0 small"><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/the-orange-book-of-machine-learning/" title="The Orange Book of Machine Learning" class="d-block text-truncate">The Orange Book of Machine Learning</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/dive-into-deep-learning/" title="Dive into Deep Learning" class="d-block text-truncate">Dive into Deep Learning</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/interpretable-machine-learning/" title="Interpretable Machine Learning" class="d-block text-truncate">Interpretable Machine Learning</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/intro-to-journalism-handbook/" title="Intro to Journalism Handbook" class="d-block text-truncate">Intro to Journalism Handbook</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/numerical-recipes-in-python-4th-edition/" title="Numerical Recipes in Python, 4th Edition" class="d-block text-truncate">Numerical Recipes in Python, 4th Edition</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/elementary-algebra-2nd-edition/" title="Elementary Algebra, 2nd Edition" class="d-block text-truncate">Elementary Algebra, 2nd Edition</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/introduction-to-modern-statistics/" title="Introduction to Modern Statistics, 2nd Edition" class="d-block text-truncate">Introduction to Modern Statistics, 2nd Edition</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/entrepreneurship-by-openstax/" title="Entrepreneurship by OpenStax" class="d-block text-truncate">Entrepreneurship by OpenStax</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/introduction-to-python-programming/" title="Introduction to Python Programming" class="d-block text-truncate">Introduction to Python Programming</a></li><li class="pb-2"><a class="visit" href="https://opentechbook.com/book/automate-the-boring-stuff-with-python/" title="Automate the Boring Stuff with Python" class="d-block text-truncate">Automate the Boring Stuff with Python</a></li></ol> </div> </aside></div> </div> <footer class="footer pt-5 mt-auto"> <div class="container"> <div class="d-flex flex-column flex-sm-row justify-content-between border-top py-3 my-4"> <div id="google-ad" class="me-auto py-2">Copyright © 2026 Open Tech Book</div> <ul class="list-inline mb-0"> <li class="list-inline-item"><a href="/about/" class="nav-link p-2 text-muted">About</a></li> <li class="list-inline-item"><a href="/contact/" class="nav-link p-2 text-muted">Contact</a></li> <li class="list-inline-item"><a href="/faq/" class="nav-link p-2 text-muted">FAQ</a></li> <li class="list-inline-item"><a href="/dmca/" class="nav-link p-2 text-muted">DMCA</a></li> <li class="list-inline-item"><a href="/disclaimer/" class="nav-link p-2 text-muted">Disclaimer</a></li> <li class="list-inline-item"><a href="/privacy-policy/" class="nav-link p-2 text-muted">Privacy Policy</a></li> </ul> </div> </div> </footer> <a id="back-to-top" href="#" class="d-none d-lg-block"><span class="iconfont icon-chevron-up-outline"></span></a> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js" integrity="sha512-VK2zcvntEufaimc+efOYi622VN5ZacdnufnmX7zIhCPmjhKnOi9ZDMtg1/ug5l183f19gG1/cBstPO4D8N/Img==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://opentechbook.com/wp-content/themes/book/assets/js/site.min.js"></script> <script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/book/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> </body> </html>