HTML Questions & Answers – Meta Data

This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “Meta Data”.

1. Metadata store information about the web page that is not necessarily visible to end users.
a) True
b) False
View Answer

Answer: a
Explanation: Metadata is “data [information] that provides information about other data. Meta tags store information about the web page—known as metadata that is not necessarily visible to end users (unless you reveal the page source code).

2. In which part of the HTML metadata is contained?
a) body tag
b) html tag
c) head tag
d) title tag
View Answer

Answer: c
Explanation: Metadata is information about data. The meta tag provides metadata/meta information about the HTML document. Metadata will not be displayed on the page. Metadata is present in head. The body tag defines document’s body. A title tag is an HTML element which specifies the title of a web page.

3. Which of the following is not a function of robots meta tag?
a) noindex
b) nofollow
c) norepeat
d) noarchive
View Answer

Answer: c
Explanation: Valid values for the “CONTENT” attribute are: “INDEX”, “NOINDEX”, “FOLLOW”, “NOFOLLOW”, “NOARCHIVE”. “NOREPEAT” is not any of robots meta tag.
advertisement
advertisement

4. What is the role of charset attribute? It specifies
a) a scheme to be used to interpret the value of the content attribute
b) a name for the metadata
c) the character encoding for the HTML document
d) the character decoding for the HTML document
View Answer

Answer: c
Explanation: A charset attribute is new in HTML5. The charset is used to provide the character support. The charset attribute specifies the character encoding which is in an external script file.

5. __________ prevents the page from being indexed altogether.
a) noarchive
b) nofollow
c) noindex
d) novalue
View Answer

Answer: c
Explanation: NOFOLLOW attribute instruct search engines that a hyperlink should not influence the link target’s ranking in search engine. NOINDEX prevents page from being indexed. To prevent a page from being cracked, NOARCHIEVE tag can be used. The noindex value of an HTML robots meta tag requests that automated Internet bots avoid indexing a web page.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which of the following is not supported in HTML5?
a) scheme
b) content
c) http-equiv
d) name
View Answer

Answer: a
Explanation: The scheme attribute is supported in HTML but not in HTML5. Rest of attributes like “content”, “http-equiv” and “name” are supported in both HTML as well as HTML5. The scheme element is deprecated from HTML5.

7. ___________ prevents search engines from following links inside the page.
a) noarchive
b) nofollow
c) noindex
d) novalue
View Answer

Answer: b
Explanation: NOFOLLOW attribute instruct search engines that a hyperlink should not influence the link target’s ranking in search engine. NOINDEX prevents page from being indexed. To prevent a page from being cracked, NOARCHIEVE tag can be used.
advertisement

8. Different meta tags are defined by changing the __________ attribute to a valid value.
a) scheme
b) content
c) http-equiv
d) name
View Answer

Answer: d
Explanation: The information/value of the content is provided by http-equiv through http header. Some values associated with http-equiv and name attribute are given by the content attribute. A scheme that to be used to interpret the value of the content is specified by the scheme tag. The name attribute specifies the name of input element and thus provides information/value of it.

9. __________ prevents search engines from showing a cached link for the page.
a) nobot
b) nofollow
c) noarchive
d) nosearch
View Answer

Answer: c
Explanation: The “noarchive” meta tag is used to tell browsers not to store cached link for the page. A “nofollow” attribute instruct search engines that a hyperlink should not influence the link target’s ranking in search engine. The “noindex” prevents page from being indexed.
advertisement

10. The value of the ___________ attribute refers to the time interval in seconds before the refresh is performed.
a) scheme
b) content
c) http-equiv
d) name
View Answer

Answer: b
Explanation: The information/value of the content is provided by http-equiv through http header. Some values associated with http-equiv and name attribute are given by the content attribute. A scheme that to be used to interpret the value of the content is specified by the scheme tag. The name attribute specifies the name of input element and thus provides information/value of it.

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.