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
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
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
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.
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
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
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
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
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.
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
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
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” .
10. Can an image be a filename?
a) Yes
b) No
View Answer
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]