When utilizing the and
tags, how can additional information be provided about a particular cell?

  • By adding a
    inside the
    tag. 
  • By adding a nested
    within the

  • By placing the cell content inside the
    tag. 
  • By using an aria-label on the cell. 
  • The

    and

    tags allow users to toggle the visibility of content. If we want to provide additional accessible information about a particular cell, using the aria-label attribute on that cell is an effective way. This attribute provides an accessible name for the element, ensuring screen readers can interpret and relay that additional information to the user. 

    How can "th" elements be made to work as row headers instead of column headers?

    • By setting the "axis" attribute to "row". 
    • By setting the "display" CSS property to "row". 
    • By setting the "scope" attribute to "row". 
    • By using JavaScript. 
    In HTML tables, by default, the "th" elements act as column headers. However, if you want a "th" element to serve as a row header, you should use the "scope" attribute and set its value to "row". This also helps assistive technologies like screen readers to interpret the table correctly. 

    To open a linked document in the parent frame, target="______" is used.

    • _blank 
    • _parent 
    • _self 
    • _top 
    The target="_parent" attribute value is used to load the linked document in the immediate parent of the document the link is in. If the link is in a frame within a set of frames, the document will be loaded into the frameset that contains the frame. On the other hand, _self loads the document in the same frame or window, _top loads the document in the topmost window, and _blank opens the document in a new window or tab. 

    How can you make an option in a dropdown list selected by default?

    • By using the selected attribute. 
    • By setting value="default". 
    • By marking it as first-child. 
    • By using the checked attribute. 
    The selected attribute can be added to an