The _____ and _____ tags are used to create and describe terms in a description list, respectively.

  • &  
  • &

     
  • &  
  • &  
In HTML, a description list is represented using the

tag. Within this list, the

tag is used to denote the term, and the

tag is used for the corresponding description. Description lists are useful for things like glossaries or key-value pairs. 

How does the tag enhance the usability of tables?

  • It adds sorting capabilities to the table columns. 
  • It creates an expandable/collapsible content section. 
  • It displays a heading for the table. 
  • It ensures the table is responsive. 
The

tag is not directly associated with tables. Instead, it's used with the

element to provide a visible heading for its content, making sections of content expandable and collapsible. This can improve user experience by letting users choose which sections they want to see, reducing information overload. 

The ______ element is used to create a container for table rows.

  •  
  •  
  •  
  •  
The

element is utilized to group the body content in a table and works as a container for one or more

elements (table rows). While

defines a row, the

helps in structuring the table and can be particularly useful when working with styles and scripts, as you can apply styles or perform actions on this grouped content. 

Using target="______" ensures the linked document opens in a new tab or window.

  • _blank 
  • _parent 
  • _self 
  • _top 
The target attribute specifies where to open the linked document. When set to _blank, it ensures that the linked document is opened in a new tab or window. It's often used when linking to external sites to keep the original page open in the background. 

You are tasked to create a webpage that automatically plays a video upon loading, but you need to ensure it doesn’t hinder the user experience or violate any best practices. How would you achieve this?

  • Play the video with sound immediately upon page load. 
  • Use a large play button overlay to encourage users to play the video. 
  • Auto-play the video muted and provide controls for the user. 
  • Load the video only when the user scrolls to it. 
Autoplaying videos with sound can be disruptive and is considered a bad practice. Many browsers even block such behavior. Autoplaying a video muted ensures users are not caught off-guard by sudden noise, and providing controls ensures they have the option to engage with the content on their terms. 

What is the function of the border-collapse property in CSS for styling tables?

  • To collapse adjacent cell borders into a single border. 
  • To create a drop-shadow for the table. 
  • To define the spacing between cells. 
  • To set the width of table borders. 
The border-collapse property in CSS is used to determine how borders of table cells are displayed. There are mainly two values: separate (default) and collapse. When set to collapse, adjacent borders of table cells are merged into a single border, resulting in a more streamlined and cleaner appearance. On the other hand, when set to separate, borders will be displayed for each cell individually, and the border-spacing property can be used to determine the space between them. 

The ______ attribute is used to validate the form submission by ensuring that a field is filled out before submitting.

  • check 
  • mandatory 
  • required 
  • validate 
The "required" attribute is used with ,