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
Loading...
Related Quiz
- To target a specific cell in a table with CSS, the ______ pseudo-class can be particularly useful.
- How does the placement of "thead" and "tfoot" in the code affect the visual rendering of the table?
- The _____ tag is utilized to highlight parts of text that need visual attention.
- Your website features a mix of PNG and JPEG images. Some users report slow loading times for pages with multiple images. How can you improve the loading times without compromising the visual quality of the images?
- The ____ format is suitable for simple animations in web images.