HTML Hyperlink MCQs
HTML Hyperlink MCQs : This section focuses on "Hyperlink" in Html. These Multiple Choice Questions (mcq) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. Which one of the following tag is used for creating a hyperlink?
A. <link>
B. <hyperlink>
C. <a>
D. <title>
View Answer
Ans : C
Explanation: <a> is used for creating a hyperlink in HTML.
2. Which attribute is used to give destination address in <a> tag of HTML?
A. href
B. type
C. address
D. link
View Answer
Ans : A
Explanation: href is used for defining destination address in <a> tag as <a href="destination address">
3. Choose the correct option.
A. destination address is specified as value of href between and tag.
B. address specified as value of href in HTML have to be absolute.
C. address specified as value of href in HTML have to be relative.
D. address specified as value of href in HTML can be absolute or relative.
View Answer
Ans : D
Explanation: The address is specified as the value of href inside <a> tag of HTML and it can be either absolute or relative.
4. Which one of the following value of target attribute opens the linked url in a new tab?
A. _self
B. _blank
C. _top
D. _parent
View Answer
Ans : B
Explanation: <a href="link url" target="_blank"> opens the link url in a new tab.
5. What will the browser display for the above HTML code?
<a href="home.php">Go to Home Page</a>
A. It will display the entire line as it is.
B. It will display- Go to Home Page
C. It will display- Go to Home Page(link)
D. First it will display home.php, and upon clicking it, it will display Go to Home Page.(link)
View Answer
Ans : C
Explanation: It creates a link as Go to Home Page, upon clicking of which if redirects to home.php page.
6. What is the default value of target in <a> tag of HTML?
A. _self
B. _blank
C. _top
D. _parent
View Answer
Ans : A
Explanation: The default value of the target is _self i.e. by default the linked URL will open in the same tab.
7. By default, an unvisited link in HTML is-
A. purple and underlined.
B. blue and underlined.
C. red and underlined.
D. blue and italics.
View Answer
Ans : B
Explanation: Link in HTML can be visited, unvisited or active. An unvisited link in HTML is by default blue and underlined.
8. By default, the link in HTML is red and underlined when the link is-
A. visited
B. unvisited
C. Active
D. It is red and underlined.
View Answer
Ans : C
Explanation: The active link becomes red and underlined in HTML.
9. By default, a visited link in HTML is-
A. purple and underlined.
B. blue and underlined.
C. red and underlined.
D. blue and italics.
View Answer
Ans : A
Explanation: Link in HTML can be visited, unvisited or active. A visited link in HTML is by default purple and underlined.
10. Default style of link can be changed by-
A. javascript
B. css
C. php
D. Cannot be changed at all.
View Answer
Ans : B
Explanation: Using CSS, we can change the default styling of links.
Also check :
Discussion