Web Technology Questions and Answers – Basic Links

This set of Web Technology Multiple Choice Questions & Answers (MCQs) focuses on “Basic Links”.

1. Attribute needed to link one web page to another webpage is______________
a) href
b) fref
c) icon
d) accept
View Answer

Answer: a
Explanation: If the index is in the same page, it loads a new webpage in place of existing webpage. In case if it is to be loaded in different page, URL of the new webpage should also be placed along with href attribute. Without Href <a> would not make any link.

2. Which attribute describes about the link the user would use?
a) fref
b) async
c) title
d) autofocus
View Answer

Answer: c
Explanation: Title attribute shows a description of what or where the link will take you to. The tile will be displayed in a tooltip when the user hover over the link. Title attribute will also show the title for a page in web results and provides a title when its added to favorites.

3. Is white space considered and rendered as a link?
a) Yes
b) No
View Answer

Answer: a
Explanation: White spaces will be underlined as they are rendered as a link. It is better if they are not at the beginning or end of the link. Whitespaces are best to use outside the tags. White spaces can highlight call to actions.
advertisement
advertisement

4. What is the correct syntax to link to an email?
a) <a href=mailto:[email protected]> [email protected] </a>
b) < a href=”mailto:[email protected]”> </a>
c) < a href= “[email protected]” > [email protected] </a>
d) <a href=”mailto:[email protected]” > [email protected] < /a >
View Answer

Answer: d
Explanation: The value of the href attribute starts with the keyword mailto, followed by a colon, and then the e – mail address you want the mail sent to. As with any other link, the content of the < a > element is the visible part of the link shown in the browser. &cc can be included to set the Cc recipients.

5. A folder on a website can be termed as ___________
a) domain
b) server
c) directory
d) database
View Answer

Answer: c
Explanation: Directory is the path or location a data of website is stored and can be accessed from. A web site contains several directories, and each directory contains different parts of a web site. Organizing files in respected directories make accessibility easier.

6. Which of the following is not a type of directory?
a) Multi directory
b) Subdirectory
c) Root directory
d) Parent directory
View Answer

Answer: a
Explanation: The root directory is the main directory that holds the whole of you web site. A subdirectory is a directory that is within another directory and parent directory is a directory that contains another directory. And multi-directory does not exist.

7. Correct syntax for creating a link to a webpage is____________
a) <a href=”anotherpage.html”>The Link</a>
b) <a href=anotherpage.html>The Link </a>
c) <a href=”anotherpage.html> </a>
d) <a href=”anotherpage”></a>
View Answer

Answer: a
Explanation: The a stands for Anchor and href means hypertext reference, the href part is another attribute with the location of the other page as its value. And finally clicking on the Link text will take you to specified address. The URL should be placed between the double inverted commas.

advertisement

8. How to link with images?
a) Including the name of the file
b) Including the name of the file following with correct suffix( jpg, gif)
c) Including the path name
d) Including the id of the image
View Answer

Answer: b
Explanation: The correct name of the file should be followed with its respective suffix which can be JPG, GIF, PNG etc. Top/left/right/bottom alignments should be chosen to place an image. Generally, <img> attribute/element is used to embed an image in a webpage.

9. What is a filepath?
a) Directory structure of the web site
b) It is a file transfer protocol
c) Domain of the website
d) It is a global attribute
View Answer

Answer: a
Explanation: Filepath is indicated by .html usually and it always begins with a forward slash character. It may consist of one or more directory names, the filepath may end with a filename at the end. Filepath is inserted in HTML code in src=”insertfilepathhere” .
advertisement

10. Can an image be a filename?
a) Yes
b) No
View Answer

Answer: a
Explanation: A filename can be an image rather than an XHTML page. A file can also be searched by an image which matches with the original file content. It isn’t just the web pages, every file on web has an URL separately, including each image.

Sanfoundry Global Education & Learning Series – Web Technology.

To practice all areas of Web Technology, 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.