align-items: center; do in a flex container?align-items: center; on the container?display: flex; align-items: center;
The align-items property controls how flex items are positioned along the cross axis (usually vertical). Setting it to center vertically centers all items within the container.
display: flex; /* align-items property here */
flex-end aligns items at the end of the cross axis.align-items: flex-end; moves all flex items to the end of the cross axis, which is the bottom if the flex direction is row.
align-items: center;?align-items: center; set. Which selector correctly matches these containers?Only option A uses an attribute selector to match inline styles containing align-items: center. Other options are invalid or do not select based on CSS property values.
align-items: stretch; have on flex items?align-items: stretch; is applied?display: flex; align-items: stretch; height: 200px;
align-items: stretch; makes flex items grow to fill the container's height (cross axis), so they all have equal height matching the container.
align-items affect keyboard navigation in flex layouts?align-items but their DOM order differs, what accessibility issue can arise?Using align-items changes only visual alignment, not DOM order. Keyboard navigation follows DOM order, so mismatches can confuse users relying on keyboard.