Which HTML tag is used to create a description list?

  •  
  •  
    1.  
      •  
      The

      tag is used for creating a description list in HTML. A description list pairs terms with their corresponding descriptions. Inside a

      element, you would typically use

      for the term (or name) and

      for its description. This is especially useful for glossaries, metadata presentations, or key-value pairs. 

How would you implement a fallback image in case the primary image fails to load?

  • Setting the fallback image as a default value in the database. 
  • Using CSS background-image property. 
  • Using JavaScript to detect the error and replace the image. 
  • Using the alt attribute in the tag. 
The best method to implement a fallback image when the primary image fails to load is through JavaScript. You can use the onerror event of the tag to detect the loading error and then replace the image's src attribute with the fallback image's path. The alt attribute is primarily for accessibility and doesn't serve as a fallback image. CSS background-image and database defaults are not direct methods for this specific scenario. 

How can CSS Flexbox be used to enhance the responsiveness of tables, especially when dealing with varying amounts of content within cells?

  • By allowing cells to wrap or stack under specific conditions. 
  • By ensuring that tables are always grid-based. 
  • By increasing the opacity of table cells. 
  • By making tables rotate 360 degrees. 
Flexbox is a CSS layout module that allows items within a container to be dynamically arranged depending upon certain conditions. When applied to tables, Flexbox can enable cells to wrap, expand, or stack based on the viewport size and the content within them. For example, in narrower viewports, table rows can be displayed as stacked blocks (or cards) with cells becoming block-level elements instead of being displayed in a row. This can offer a more optimized view of table content on mobile devices or smaller screens, ensuring that content remains accessible and legible regardless of the amount of content within each cell or the device used. 

To include a predefined subject in an email link, you add ?subject= after the email address in the _____ attribute.

  • alt 
  • href 
  • src 
  • value 
When creating an email link using the href attribute with a mailto: scheme, it's possible to add extra parameters to pre-fill various fields of the email. By appending ?subject= followed by the desired subject text, the email's subject line will be pre-filled with that text. For example, Email with subject will pre-fill the subject line with "Hello" when the link is clicked. 

A navigation list can be created using the _____ element, often used in combination with the _____ element for structured navigation.

  • directory & path 
  • menu & link 
  • nav & a 
  • navigate & url 

To comment out multiple lines, a _____ is used at the beginning and end of the comments.

  • ''' ''' 
  • /* */ 
  • // // 
  •  
In HTML, to comment out multiple lines or even a single line, you use the syntax. It signals the browser to not interpret anything between these markers as actual code, but rather as a comment. Unlike programming languages like JavaScript or CSS which have different comment structures (// and /* */ respectively), HTML exclusively uses this format for commenting. 

How does the preload attribute in the audio or video tags affect the loading of multimedia content?

  • It forces the media to play repeatedly. 
  • It sets the initial volume of the media. 
  • It sets the starting time of the media playback. 
  • It specifies if/how the media should be loaded when the page loads. 
The preload attribute in the audio or video tags provides hints to the browser about how the media file should be preloaded. There are three values it can take: "none" (means the media should not be preloaded), "metadata" (only metadata should be loaded), and "auto" (the media should be loaded entirely or up to a browser-defined limit). This helps optimize the user experience by potentially reducing load times or unnecessary data usage. 

How do the CSS properties table-layout and width interact when styling a table?

  • They work independently of each other. 
  • table-layout determines how widths are calculated. 
  • table-layout overrides width. 
  • width only applies if table-layout is set to fixed. 
The table-layout property determines the algorithm used to lay out table cells, rows, and columns. When it's set to auto (the default), the browser calculates the width of the table and its cells to fit the content. When set to fixed, column widths are set by the width of the first row of cells, the table's width, and any specified column widths. Using fixed can allow for faster rendering in large tables. 

The ______ attribute prevents users from interacting with an option in a dropdown list.

  • locked 
  • disabled 
  • non-interactive 
  • unselectable 
The disabled attribute is used in HTML to make an element non-interactive. When applied to an option within a dropdown (or a