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. 

When implementing responsive tables for mobile views, the CSS property ______ is commonly used to display content in a block-level format.

  • display: block; 
  • position: relative; 
  • table-display: mobile; 
  • visibility: hidden; 
To make tables responsive, especially for mobile views where screen real estate is limited, the display: block; property can be employed. This takes the table out of its default table display context and makes it behave like a block-level element. This is often combined with media queries and other techniques to stack rows or reformat the table structure for better mobile readability. 

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. 

How does the cite element behave when nested inside a blockquote or q element?

  • It adds interactive behavior to the quoted content. 
  • It makes the quotation a hyperlink. 
  • It modifies the style of the quoted content. 
  • It specifies the source of the quoted content. 
The element represents a reference to a creative work and must include the title of that work or the name of the author (or an URL). When nested inside a

or element, it gives a reference to the source of the quoted content, providing context to the user. However, browsers do not typically render it as a hyperlink by default. 

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> <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 38 of 40</span></li><li class="page-item"><a class="page-link" href="/quizzes/html-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="/quizzes/html-quiz/page/37/" 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="/quizzes/html-quiz/page/36/"><span class="visually-hidden">Page </span>36</a></li><li class="page-item"><a class="page-link" href="/quizzes/html-quiz/page/37/"><span class="visually-hidden">Page </span>37</a></li><li class="page-item active"><span class="page-link"><span class="visually-hidden">Current Page </span>38</span></li><li class="page-item"><a class="page-link" href="/quizzes/html-quiz/page/39/"><span class="visually-hidden">Page </span>39</a></li><li class="page-item"><a class="page-link" href="/quizzes/html-quiz/page/40/"><span class="visually-hidden">Page </span>40</a></li><li class="page-item"><a class="page-link" href="/quizzes/html-quiz/page/39/" 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="/quizzes/html-quiz/page/40/" 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>