HTML Questions & Answers – Linking to Other Sites & Email Links and its Decoration

This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “Linking to Other Sites & Email Links and its Decoration”.

1. target attribute cannot have?
a) _blank
b) _self
c) _parent
d) _color
View Answer

Answer: d
Explanation: Target attribute can have values _blank, _self, _parent, _top and filename. _blank opens the linked document in a new tab window or tab, _self opens linked document in the same window, _parent opens linked document in the parent frame.

2. Which of the following opens linked document in full body?
a) _blank
b) _top
c) _parent
d) framename
View Answer

Answer: b
Explanation: _parent opens linked document in parent frame, _top opens the linked document in full body of the window, framename opens the linked document in a named frame,

e.g. <a href= https://www.sanfoundry.com/ target= “_parent”> Visit The site !! </a>.

3. Which attribute is used to link the bookmark?
a) href
b) id
c) target
d) <img>
View Answer

Answer: a
Explanation: href attribute is used to link the bookmark. The id attribute is for defining bookmarks in a page, target attribute is for specifying where to open linked document i.e. in new tab, same frame, parent frame, full body of the window etc.
advertisement
advertisement

4. Which of the following sets the color of a link before it has been clicked on?
a) ALINK
b) LINK
c) VLINK
d) ULINK
View Answer

Answer: b
Explanation: LINK set the color of a link before it has been clicked on, ALINK set the color of a link when a link is clicked on, VLINK set the color of a link after it has been clicked on, here A and V stands for Active and Visited.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

5. What is used for specifying an email to be sent?
a) mailto:
b) target
c) id
d) href
View Answer

Answer: a
Explanation: Target attribute is for specifying where to open linked document i.e. in a new tab, same frame, parent frame, full body of the window etc. We use mailto: with <a> and href for specifying the email address that we want to be sent to. It will open a new email message and address to a person specified in the link. The email link will appear like a normal link. The id attribute is for defining bookmarks in a page.

6. Which of the following is not the parameter for email link?
a) body
b) bcc
c) cc
d) #
View Answer

Answer: d
Explanation: There are various parameters used for email links like mailto, bcc, body, cc, subject, ‘&’, ‘?’. mailto: is used for e-mail recipient address, bcc is for blind carbon copy mail address, cc is for carbon copy e-mail address, subject is for the subject of the e-mail, ‘?’ is first parameters delimiter.
advertisement

7. Which one of the following is used for space character?
a) %50
b) %60
c) %20
d) %10
View Answer

Answer: c
Explanation: %50 represent a capital letter P. %60 specifies “`” symbol. %20 represents space character.

<a href=mailto:[email protected]?
Cc=[email protected]&bcc=[email protected]&amp;
subject=The%20subject%20is&amp;body=The%20body%20is”> 
mail with cc, bcc, subject and body</a>

. A data link escape is shown by %10.

advertisement

8. What will add line break in the body of mail?
a) %20
b) %0D%0A
c) %0h%0A
d) %10
View Answer

Answer: b
Explanation: %20 represents space character. A data link escape is shown by %10. %0D%0A will add a newline in the text of the body.

<a href="mailto:[email protected]?body=Hello%0D%0AEveryone!!">Send mail</a>

Sanfoundry Global Education & Learning Series – HTML.

To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.