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
How would you implement custom quotation marks using CSS for inline quotations while maintaining semantic HTML and ensuring browser compatibility?
- Apply a background image with quotation marks to the
tag.
- Use JavaScript to prepend and append quotation marks to every
.
- Use the :before and :after pseudo-elements with the
tag.
- Use the
tag with custom classes.
Using CSS pseudo-elements :before and :after with the
tag allows you to add custom styling, including custom quotation marks, while keeping the HTML semantically correct. This method also ensures browser compatibility as these pseudo-elements are widely supported across major browsers. It separates the stylistic and content concerns, making it both semantic and aesthetically adaptable.
What is the purpose of using an image map in HTML?
- To adjust the resolution of an image.
- To create clickable areas within an image.
- To display multiple images in a grid.
- To optimize images for faster loading.
Image maps in HTML allow developers to define multiple clickable areas (or hotspots) within a single image. These hotspots can be linked to different destinations, providing an interactive experience for users. This is achieved using the
The ______ attribute is used to specify the source URL of an embedded content.
- alt
- class
- src
- type
The src attribute is utilized in various tags like
,