Master the fundamentals of HTML navigation with these 30 MCQs on Anchor Tags, Internal and External Links, Relative vs Absolute URLs, and the Target Attribute for Opening Links in New Tabs. Perfect for enhancing your web development knowledge!
<a> tag represent in HTML?
<a> tag specifies the destination URL?
href attribute define in an anchor tag?
<a href="contact.html">Contact Us</a> represent?
../folder/page.html represent?
target="_blank" in an anchor tag?
target="_top" attribute do?
target="_parent" in a link?
| Qno | Answer |
|---|---|
| 1 | b) Anchor (link) |
| 2 | a) href |
| 3 | b) <a href=”http://example.com”> |
| 4 | b) <a href=”about.html”> |
| 5 | b) Hyperlink destination |
| 6 | b) Internal |
| 7 | a) <a href=”#section1″> |
| 8 | c) id |
| 9 | b) <a target=”_blank”> |
| 10 | a) <a href=”mailto:someone@example.com”> |
| 11 | b) /images/pic.jpg |
| 12 | b) The location of the file on the server |
| 13 | c) https://www.example.com/images/logo.png |
| 14 | b) For linking to external resources |
| 15 | c) Relative link |
| 16 | b) To refer to pages on the same website |
| 17 | d) Contains the full address of a resource |
| 18 | b) Absolute URLs include the full path, relative URLs don’t |
| 19 | b) /folder/page.html |
| 20 | c) ../../filename |
| 21 | c) _blank |
| 22 | b) The link opens in a new tab or window |
| 23 | b) Opens in the same window |
| 24 | b) Use target=”_blank” |
| 25 | a) target=”_parent” |
| 26 | b) Opens the link in the entire browser window |
| 27 | b) Use target=”_self” |
| 28 | c) _blank |
| 29 | a) _self |
| 30 | b) To open the link in a parent window or frame |