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?
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?
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?
Explanation: href attribute is used to link the bookmark, T\the id attribute is for defining bookmarks in a page, target attribute is for defining.
4. Which of the following sets the color of a link before it has been clicked on?
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.
5. What is used for specifying an email to be sent?
Explanation: 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.
6. Which of the following is not the parameter for email link?
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.
7. Which one of the following is used for space character?
Explanation: %20 represents space character.
8. What will add line break in the body of mail?
Explanation: %0D%0A will add a newline in the text of the body.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.