Microdata and Metadata in HTML , which are crucial for improving SEO, social media integration, and adding structured data to webpages. Understanding Open Graph Protocol and JSON-LD enhances web visibility and interaction. Below are 30 multiple-choice questions (MCQs) on these concepts.
MCQs on “Microdata and Metadata in HTML”
Section 1: Adding Metadata for SEO
What is the primary purpose of metadata in HTML?
a) To enhance visual design
b) To improve page load speed
c) To provide search engines with page information
d) To add interactivity
Which meta tag is used to define the character encoding for a webpage?
a) <meta charset="UTF-8">
b) <meta name="charset" content="UTF-8">
c) <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
d) <meta content="UTF-8" charset="text/html">
Which of the following meta tags helps improve a webpage’s visibility on search engines?
a) <meta name="keywords" content="HTML, SEO, Metadata">
b) <meta name="author" content="John Doe">
c) <meta name="robots" content="noindex">
d) <meta name="viewport" content="width=device-width, initial-scale=1">
What does the description meta tag do?
a) It provides a brief summary of the page’s content.
b) It provides the author’s name.
c) It provides the page’s primary keyword.
d) It determines the page’s font style.
Which of the following is a valid use of the robots meta tag for SEO purposes?
a) <meta name="robots" content="index, follow">
b) <meta name="robots" content="no-follow, no-index">
c) Both a and b
d) None of the above
The meta tag <meta name="viewport" content="width=device-width, initial-scale=1"> is primarily used for:
a) Making the page mobile-responsive
b) Defining the page’s content type
c) Specifying the character encoding
d) Enabling animations
What does the <meta name="author" content="author name"> tag define?
a) The title of the webpage
b) The language of the webpage
c) The author of the webpage
d) The keywords of the webpage
To ensure search engines index your webpage, which content is most important in the <meta> tag?
a) content="noindex"
b) content="index"
c) content="description"
d) content="author"
Which of the following attributes are used within the meta tag for SEO optimization?
a) name and content
b) charset and http-equiv
c) name and http-equiv
d) content and author
The <meta property="og:title" content="Page Title"> is used for:
a) Defining the title of the webpage for Open Graph Protocol
b) Defining the description of the webpage for SEO
c) Optimizing the page for search engines
d) Displaying the webpage’s title in the browser
Section 2: Open Graph Protocol and Social Media Integration
What is the Open Graph Protocol used for in HTML?
a) Defining how a webpage appears when shared on social media
b) Improving search engine ranking
c) Structuring the page’s metadata for SEO
d) Embedding rich media content
Which meta tag is used for specifying an Open Graph title?
a) <meta property="og:title" content="Your Title">
b) <meta name="og:title" content="Your Title">
c) <meta itemprop="og:title" content="Your Title">
d) <meta content="og:title" property="Your Title">
To add an Open Graph image to a webpage, which tag should you use?
a) <meta property="og:image" content="image.jpg">
b) <meta name="og:image" content="image.jpg">
c) <meta content="og:image" property="image.jpg">
d) <meta itemprop="og:image" content="image.jpg">
Which property is used in the Open Graph Protocol to define the type of content shared (e.g., website, article)?
a) og:type
b) og:url
c) og:image
d) og:title
Which Open Graph meta tag is used to define the URL of a shared page?
a) <meta property="og:url" content="http://example.com">
b) <meta name="og:url" content="http://example.com">
c) <meta content="og:url" property="http://example.com">
d) <meta itemprop="og:url" content="http://example.com">
What does the og:description tag specify in the Open Graph Protocol?
a) A brief description of the webpage content
b) The URL of the webpage
c) The author of the webpage
d) The type of content shared
Which social media platforms primarily use the Open Graph Protocol?
a) Facebook, Twitter, LinkedIn
b) Instagram, YouTube, Pinterest
c) Twitter, LinkedIn, WhatsApp
d) Snapchat, Instagram, Tumblr
Which of the following is a required Open Graph meta tag for sharing content?
a) og:title
b) og:image
c) og:url
d) All of the above
What does the og:site_name tag define in the Open Graph Protocol?
a) The name of the website that the content is from
b) The name of the webpage
c) The name of the content creator
d) The title of the page
Which of these Open Graph tags is used to define the type of content (article, website, etc.)?
a) og:type
b) og:title
c) og:image
d) og:description
Section 3: Structured Data with JSON-LD and Microdata
What is JSON-LD used for in HTML?
a) Adding structured data to a webpage
b) Improving the page’s design
c) Defining metadata for social media
d) Enhancing the page’s interactivity
What is the purpose of the itemscope attribute in Microdata?
a) To define the scope of an item being described
b) To specify a list of items
c) To categorize an item
d) To add styling to an item
In Microdata, which attribute is used to define a property of an item?
a) itemprop
b) itemscope
c) itemtype
d) itemid
Which of the following attributes is used in JSON-LD to define the type of data?
a) @type
b) @context
c) @property
d) @content
What does the itemtype attribute in Microdata specify?
a) The type of item being described
b) The content type of the item
c) The scope of the item
d) The ID of the item
In JSON-LD, what is the purpose of the @context keyword?
a) To define the schema or context of the data
b) To define the content of the data
c) To define the relationships between data
d) To define the property of the data
Which HTML tag is typically used for embedding JSON-LD data?
a) <script type="application/ld+json">
b) <meta charset="application/ld+json">
c) <json>
d) <script>
How does the itemprop attribute function in Microdata?
a) It links a property of an item to its value
b) It defines the type of item
c) It defines the scope of the data
d) It links to the source of the data
Which of the following is an example of using Microdata to describe a product?
a) <div itemscope itemtype="http://schema.org/Product">
b) <div itemtype="http://schema.org/Product">
c) <div itemscope itemprop="name">
d) <meta name="Product" content="itemprop">
What does the @graph attribute in JSON-LD define?
a) A collection of related data
b) A specific property
c) A list of items
d) A context for the data
Answer Key (Tabular Form)
Qno Answer 1 c) To provide search engines with page information 2 a) <meta charset="UTF-8"> 3 a) <meta name="keywords" content="HTML, SEO, Metadata"> 4 a) It provides a brief summary of the page’s content. 5 c) Both a and b 6 a) Making the page mobile-responsive 7 c) The author of the webpage 8 b) content="index" 9 a) name and content 10 a) Defining the title of the webpage for Open Graph Protocol 11 a) Defining how a webpage appears when shared on social media 12 a) <meta property="og:title" content="Your Title"> 13 a) <meta property="og:image" content="image.jpg"> 14 a) og:type 15 a) <meta property="og:url" content="http://example.com"> 16 a) A brief description of the webpage content 17 a) Facebook, Twitter, LinkedIn 18 d) All of the above 19 a) The name of the website that the content is from 20 a) og:type 21 a) Adding structured data to a webpage 22 a) To define the scope of an item being described 23 a) itemprop 24 a) @type 25 a) The type of item being described 26 a) To define the schema or context of the data 27 a) <script type="application/ld+json"> 28 a) It links a property of an item to its value 29 a) <div itemscope itemtype="http://schema.org/Product"> 30 a) A collection of related data
Post Views: 42