The ____ attribute in the img tag can be utilized to display text while the image is loading.

  • alt 
  • display 
  • src 
  • title 
The alt attribute, also known as the "alternative text" attribute, is used within the tag to provide a text description for an image. This can be particularly helpful if the image fails to load or if the user is relying on screen reading software. The text can provide context or describe what is in the image, ensuring no information is lost even if the image doesn't appear. 

You are building a landing page and need to ensure that the key message is prominently displayed and catches the user’s attention. How would you effectively use heading and paragraph tags to structure the message?

  • Display the message in a small

    tag at the bottom of the page. 

  • Place the main message in a

    tag with increased font-size. 

  • Use a large, centered

    tag for the main message, followed by a concise

    tag for supplementary information. 

  • Use multiple

    tags to display all content on the page. 

On a landing page, the key message should be the most dominant element. Using a large, centered

tag ensures that it grabs attention immediately. Following this with a concise paragraph (

) allows for supplementary information or a call-to-action that can further engage the visitor. This approach ensures the key message is both prominent and effective. 

The ______ input type is used to create a radio button in a form.

  • checkbox 
  • button 
  • text 
  • radio 
The input element with the type attribute set to "radio" is used to create a radio button in a form. Radio buttons are circular buttons that allow the user to select one option from a predefined set. Unlike checkboxes, which allow for multiple selections, radio buttons ensure that only one option within a group is selected at a time. 

What is the main benefit of using the "fieldset" element within a form?

  • To enable auto-fill functionality. 
  • To group related form controls together. 
  • To make the form submit faster. 
  • To style the form. 
The primary purpose of the fieldset element is to group related form controls and their associated labels into a single container. This is especially helpful in long forms, making the form more structured and user-friendly. Moreover, fieldset plays an essential role in enhancing the accessibility of web forms, as it provides context to assistive technologies about which controls are related. 

What is the purpose of the source tag inside the audio or video tags?

  • To add captions to media 
  • To link external stylesheets 
  • To link scripts 
  • To specify multiple file formats 
Thetag is used within

To embed a YouTube video, you should use the ______ element and provide the video URL in the ______ attribute.

  • , link