with Verified Solutions
What HTML attribute would you use to open a link in the same browser tab?
✔✔ `target="_self"`
How can you visually hide an element from the page but keep it readable for screen readers?
✔✔ Using CSS with `visibility: hidden;` or `display: none;`
How do you prevent a form from submitting data until a certain input format is followed?
✔✔ By using the `pattern` attribute
What attribute would you add to a button to define the specific type of action (submit, reset, or
button)?
✔✔ `type`
How can you set an image to scale proportionally based on the width of its container?
✔✔ By setting the `width` attribute and leaving `height` empty, or by using CSS with `max-
width: 100%`
1
, How would you specify that a link should download a file rather than navigate to it?
✔✔ By using the `download` attribute in the `<a>` tag
What HTML attribute is used to embed additional data within an HTML element that is not
visible to users?
✔✔ `data-*` attributes
How would you mark text as deleted content on a webpage?
✔✔ By using `<del>`
What is the purpose of the `step` attribute in an input field?
✔✔ It specifies the intervals for numeric or date input
How can you control the display order of flex items in a flex container?
✔✔ By using the `order` property in CSS
Which attribute should be used to predefine the option selected in a drop-down list?
2