The ______ attribute is used to define a unique identifier for an element.
- for
- id
- type
- value
The id attribute is used to give a unique identifier to an HTML element. This unique id can be referred to from the CSS, JavaScript, or for linking to a specific section of a webpage. Each id should be unique within a page to ensure precise referencing.
Loading...
Related Quiz
- To target a specific cell in a table with CSS, the ______ pseudo-class can be particularly useful.
- To insert a line break within a paragraph, the ______ tag is used.
- You're developing a webpage where clicking on a product image should navigate to the product's detailed view in a new tab, ensuring the original page remains open. How would you implement this using anchor tags and target attributes?
- An internal document link targets an element with a specific _____ to navigate within the same page.
- The ______ attribute in the video tag is used to specify an image to be shown while the video is downloading, or until the user hits the play button.