MCQs Of Class 15: Introduction to Meta Tags

Rashmi Mishra
0

MCQs Of Class 15

Introduction to Meta Tags

1.  What is the purpose of the meta tag <meta charset="UTF-8"> in HTML?

a) To set the page title

b) To specify the character encoding for the document

c) To include external CSS

d) To add a page description

Answer: b

2.  Which meta tag is used to make a webpage responsive on mobile devices?

a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

b) <meta name="keywords" content="responsive">

c) <meta charset="UTF-8">

d) <meta name="robots" content="noindex">

Answer: a

3.  What does the meta tag <meta name="robots" content="noindex, nofollow"> do?

a) It stops search engines from indexing the page and following links.

b) It indexes the page and follows links.

c) It allows search engines to index the page but not follow links.

d) It only prevents robots from crawling the page.

Answer: a

4.  Which meta tag is used for search engine optimization (SEO) to specify a page's description?

a) <meta name="robots" content="index">

b) <meta name="author" content="John Doe">

c) <meta name="description" content="Page description">

d) <meta name="viewport" content="width=device-width">

Answer: c

5.  The keywords meta tag is primarily used for:

a) Defining the character encoding

b) Providing a list of keywords for search engines

c) Making a webpage responsive

d) Adding a description to the webpage

Answer: b

6.  Which of the following meta tags specifies the author of the webpage?

a) <meta name="author" content="John Doe">

b) <meta name="description" content="Website description">

c) <meta name="robots" content="noindex">

d) <meta name="viewport" content="width=device-width">

Answer: a

7.  What is the effect of the content="width=device-width, initial-scale=1.0" in the viewport meta tag?

a) It ensures that the page layout is optimized for mobile devices.

b) It controls the text font size on mobile devices.

c) It adjusts the page content to fill the entire screen.

d) It makes the page compatible with all browsers.

Answer: a

8.  Which meta tag is essential for improving the visibility of a webpage on social media platforms like Facebook?

a) <meta property="og:title" content="Page Title">

b) <meta name="viewport" content="width=device-width">

c) <meta name="robots" content="index, follow">

d) <meta name="keywords" content="social media, share">

Answer: a

9.  What is the purpose of the meta tag <meta http-equiv="refresh" content="30">?

a) It reloads the page after 30 seconds.

b) It automatically updates the page content every 30 seconds.

c) It forces a page to refresh every 30 seconds in the browser.

d) It sets the page title to "30".

Answer: a

10.                    Which of the following is the correct syntax for the Open Graph meta tag for a webpage's description?

a) <meta property="og:description" content="This is a webpage description.">

b) <meta name="description" content="This is a webpage description.">

c) <meta name="og:description" content="This is a webpage description.">

d) <meta name="viewport" content="og:description">

Answer: a


Meta Tags for SEO and Optimization

11.                    What does the <meta name="robots" content="index, follow"> tag do?

a) Prevents search engines from indexing the page.

b) Allows search engines to index the page and follow links.

c) Prevents search engines from following links.

d) Blocks search engines from crawling the page.

Answer: b

12.                    Which of the following is NOT an SEO-related meta tag?

a) <meta name="description" content="Page description">

b) <meta name="keywords" content="HTML, CSS, SEO">

c) <meta name="robots" content="noindex">

d) <meta name="viewport" content="width=device-width">

Answer: d

13.                    What is the purpose of the <meta name="viewport" content="width=device-width, initial-scale=1.0"> tag in responsive design?

a) It controls the zoom level on mobile devices.

b) It adjusts the width of the page based on the device’s screen width.

c) It sets the initial scaling of the webpage on desktop browsers.

d) It prevents mobile devices from zooming into the page.

Answer: b

14.                    Which meta tag is used to specify the character encoding of a webpage?

a) <meta charset="UTF-8">

b) <meta name="robots" content="noindex, nofollow">

c) <meta name="viewport" content="width=device-width">

d) <meta name="description" content="Page description">

Answer: a

15.                    What does the content="noindex" in the meta robots tag do?

a) It blocks search engines from following the links on the page.

b) It prevents search engines from indexing the page.

c) It ensures search engines follow the links but not index the page.

d) It stops web crawlers from accessing the page at all.

Answer: b

16.                    Which of the following meta tags helps search engines understand the content of a page better?

a) <meta name="description" content="Page description">

b) <meta charset="UTF-8">

c) <meta name="robots" content="noindex">

d) <meta name="author" content="John Doe">

Answer: a

17.                    Which of the following meta tags helps improve a webpage's visibility on Facebook?

a) <meta name="description" content="Page description">

b) <meta property="og:image" content="image.jpg">

c) <meta name="viewport" content="width=device-width">

d) <meta name="keywords" content="product, web, tech">

Answer: b

18.                    What is the correct syntax for setting the page title for SEO purposes?

o    a) <meta name="title" content="Page Title">

o    b) <title>Page Title</title>

o    c) <meta name="page" content="Title">

o    d) <meta name="heading" content="Page Title">

o    Answer: b

19.                    Which meta tag is used to improve indexing of a webpage by search engines?

a) <meta name="robots" content="index, follow">

b) <meta name="description" content="SEO optimized webpage">

c) <meta name="viewport" content="width=device-width">

d) <meta name="author" content="John Doe">

Answer: a

20.                    Which of the following meta tags is commonly used in social media sharing?

a) <meta name="description" content="Page description">

b) <meta property="og:image" content="image.jpg">

c) <meta name="robots" content="noindex, nofollow">

d) <meta charset="UTF-8">

Answer: b


Open Graph and Social Media Meta Tags

21.                    Which Open Graph meta tag is used to specify the title of the webpage when shared on social media?

a) <meta name="og:title" content="Title">

b) <meta property="og:title" content="Title">

c) <meta name="og:title" content="Title">

d) <meta property="title" content="Title">

Answer: b

22.                    Which Open Graph tag defines the type of content for social media sharing?

a) <meta property="og:type" content="article">

b) <meta name="og:type" content="article">

c) <meta property="og:content" content="article">

d) <meta name="og:type" content="webpage">

Answer: a

23.                    What does the Open Graph tag <meta property="og:image" content="image.jpg"> specify?

a) It defines the title of the page for sharing.

b) It specifies an image to display when the page is shared on social media.

c) It provides a thumbnail image for a webpage.

d) It sets the meta description of the webpage.

Answer: b

24.                    Which of the following is true about the Open Graph og:description tag?

a) It defines a brief summary that appears when the page is shared on social media.

b) It specifies the author of the page.

c) It sets the page's keywords for search engines.

d) It adjusts the page's layout for mobile devices.

Answer: a

25.                    Which tag would you use to define the URL of the image for Open Graph sharing?

a) <meta property="og:image" content="image.jpg">

b) <meta name="og:image" content="image.jpg">

c) <meta name="image" content="image.jpg">

d) <meta property="image" content="image.jpg">

Answer: a


Advanced Meta Tags

26.                    What does the meta tag <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?

a) It enables compatibility with Internet Explorer's latest version.

b) It prevents the page from rendering in Internet Explorer.

c) It forces the page to display in the latest version of Chrome.

d) It sets the document's character encoding.

Answer: a

27.                    Which of the following is the correct syntax to refresh the page every 30 seconds using a meta tag?

a) <meta http-equiv="refresh" content="30">

b) <meta http-equiv="refresh" content="30, url=http://example.com">

c) <meta http-equiv="refresh" content="30, delay">

d) <meta http-equiv="meta-refresh" content="30">

Answer: a

28.                    Which meta tag can be used to specify the viewport settings for a webpage to be mobile-responsive?

a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

b) <meta name="robots" content="index, follow">

c) <meta name="description" content="Responsive web design">

d) <meta name="author" content="Jane Doe">

Answer: a


29. Which meta tag defines the page’s author?

a) <meta name="author" content="John Doe">

b) <meta name="publisher" content="Tech Publisher">

c) <meta name="description" content="Content written by John Doe">

d) <meta name="creator" content="John Doe">

Answer: a

30.                    Which tag is used to prevent search engines from indexing a page?

a) <meta name="robots" content="noindex, nofollow">

b) <meta name="robots" content="index, follow">

c) <meta name="robots" content="index, nofollow">

d) <meta name="robots" content="nofollow, noindex">

Answer: a


31.  Which of the following is the correct syntax for defining the character set for a webpage?

a) <meta charset="UTF-8">

b) <meta name="charset" content="UTF-8">

c) <meta type="UTF-8" charset="true">

d) <meta http-equiv="charset" content="UTF-8">

Answer: a

32.  Which meta tag is used to define the description of a webpage?

a) <meta name="description" content="Webpage description">

b) <meta name="description" content="SEO description">

c) <meta content="Webpage description" name="desc">

d) <meta http-equiv="description" content="Webpage description">

Answer: a

33.  Which meta tag is used to specify the keywords for a webpage?

a) <meta name="keywords" content="HTML, CSS, JavaScript">

b) <meta name="keywords" content="meta, tags, SEO">

c) <meta property="keywords" content="HTML, SEO">

d) <meta name="description" content="SEO, meta tags, HTML">

Answer: a


34.  What is the purpose of the Open Graph og:type meta tag?

a) It defines the type of content for social media sharing.

b) It specifies the title of the page for social media.

c) It provides a brief summary for the page.

d) It determines the image to show on social media.

Answer: a

35.  Which of the following Open Graph tags would you use to define the title of a webpage when it is shared on social media?

a) <meta property="og:title" content="Page Title">

b) <meta name="og:title" content="Page Title">

c) <meta content="Page Title" property="og:title">

d) <meta property="og:description" content="Page Title">

Answer: a

36.  What does the Open Graph tag <meta property="og:image" content="image.jpg"> specify?

a) It defines the title of the page for sharing.

b) It specifies an image to display when the page is shared on social media.

c) It provides a thumbnail image for a webpage.

d) It sets the meta description of the webpage.

Answer: b

37.  Which Open Graph tag specifies a brief summary that appears when a page is shared on social media?

a) <meta property="og:title" content="Page Title">

b) <meta property="og:image" content="image.jpg">

c) <meta property="og:description" content="Page description">

d) <meta property="og:type" content="article">

Answer: c


38.  What does the meta tag <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?

a) It enables compatibility with Internet Explorer's latest version.

b) It prevents the page from rendering in Internet Explorer.

c) It forces the page to display in the latest version of Chrome.

d) It sets the document's character encoding.

Answer: a

39.  Which of the following meta tags is used to refresh the page every 30 seconds?

a) <meta http-equiv="refresh" content="30">

b) <meta http-equiv="refresh" content="30, url=http://example.com">

c) <meta http-equiv="refresh" content="30, delay">

d) <meta http-equiv="meta-refresh" content="30">

Answer: a

40.                    Which meta tag is used to specify the viewport settings for a mobile-responsive webpage?

a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

b) <meta name="robots" content="index, follow">

c) <meta name="description" content="Responsive web design">

d) <meta name="author" content="Jane Doe">

Answer: a


41.                    Which meta tag defines the page’s author?

a) <meta name="author" content="John Doe">

b) <meta name="publisher" content="Tech Publisher">

c) <meta name="description" content="Content written by John Doe">

d) <meta name="creator" content="John Doe">

Answer: a

42.                    Which meta tag prevents search engines from indexing a page?

a) <meta name="robots" content="noindex, nofollow">

b) <meta name="robots" content="index, follow">

c) <meta name="robots" content="index, nofollow">

d) <meta name="robots" content="nofollow, noindex">

Answer: a


43.                    Which meta tag is used to specify the author of a webpage?

a) <meta name="author" content="John Doe">

b) <meta name="creator" content="Jane Smith">

c) <meta name="author" content="Jane Doe">

d) <meta name="developer" content="John Doe">

Answer: a

44.                    What does the meta tag <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> specify?

a) It sets the text content type for the webpage.

b) It specifies the character encoding of the webpage.

c) It defines the document’s type.

d) It sets the language for the document.

Answer: b

45.                    Which of the following is the correct use of the meta tag to specify the author of a webpage?

a) <meta name="author" content="John Doe">

b) <meta name="creator" content="John Doe">

c) <meta name="publisher" content="Tech Publisher">

d) <meta name="editor" content="John Doe">

Answer: a


46.                    What is the correct Open Graph tag to define the type of content when sharing on social media?

a) <meta property="og:type" content="article">

b) <meta property="og:type" content="webpage">

c) <meta name="og:type" content="article">

d) <meta name="og:type" content="document">

Answer: a

47.                    Which meta tag would you use to specify a webpage's title for social media sharing?

a) <meta property="og:title" content="Page Title">

b) <meta name="og:title" content="Page Title">

c) <meta property="og:description" content="Page Title">

d) <meta name="title" content="Page Title">

Answer: a

48.                    Which Open Graph tag provides the URL for a webpage to be shared?

a) <meta property="og:url" content="https://example.com">

b) <meta name="og:url" content="https://example.com">

c) <meta property="url" content="https://example.com">

d) <meta name="url" content="https://example.com">

Answer: a


49.                    Which meta tag is used to instruct search engines not to follow links on a webpage?

a) <meta name="robots" content="noindex, nofollow">

b) <meta name="robots" content="index, nofollow">

c) <meta name="robots" content="index, follow">

d) <meta name="robots" content="noindex, follow">

Answer: a

50.                    Which of the following meta tags can be used to refresh the page every 60 seconds?

a) <meta http-equiv="refresh" content="60">

b) <meta http-equiv="meta-refresh" content="60">

c) <meta http-equiv="refresh" content="60, delay">

d) <meta http-equiv="refresh" content="url=http://example.com, delay=60">

Answer: a

21.                    Which meta tag would be used to enable compatibility with the latest version of Internet Explorer?

o    a) <meta http-equiv="X-UA-Compatible" content="IE=edge">

o    b) <meta http-equiv="X-UA-Compatible" content="IE=latest">

o    c) <meta http-equiv="X-UA-Compatible" content="IE=11">

o    d) <meta http-equiv="X-UA-Compatible" content="IE=9">

o    Answer: a


Miscellaneous Meta Tags

22.                    Which of the following meta tags sets the viewport for mobile-responsive web pages?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=device-width, user-scalable=no">

o    c) <meta name="viewport" content="width=auto, initial-scale=1.0">

o    d) <meta name="viewport" content="width=100%, initial-scale=1.0">

o    Answer: a

23.                    What does the meta tag <meta name="robots" content="noarchive"> do?

o    a) It prevents search engines from caching the page.

o    b) It tells search engines not to index the page.

o    c) It blocks search engines from following the page's links.

o    d) It allows search engines to follow the page's links but not index the page.

o    Answer: a

24.                    What is the function of the <meta name="viewport" content="width=device-width, initial-scale=1.0"> tag?

o    a) It adjusts the width and zoom level of the page on mobile devices.

o    b) It sets the page to always display at a fixed width.

o    c) It allows the page to automatically fit any screen size.

o    d) It zooms in the page when viewed on mobile devices.

o    Answer: a


Meta Tags and SEO

25.                    Which of the following meta tags would improve a page's search engine ranking by including keywords?

o    a) <meta name="keywords" content="HTML, CSS, JavaScript">

o    b) <meta name="description" content="Learn HTML, CSS, JavaScript">

o    c) <meta name="author" content="John Doe">

o    d) <meta name="robots" content="index, follow">

o    Answer: a

26.                    Which meta tag helps with better display on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="user-scalable=yes">

o    c) <meta name="viewport" content="width=device-width">

o    d) <meta name="viewport" content="initial-scale=1.0">

o    Answer: a

27.                    Which Open Graph tag defines the content type for social sharing on Facebook?

o    a) <meta property="og:type" content="article">

o    b) <meta name="og:type" content="webpage">

o    c) <meta property="og:type" content="website">

o    d) <meta name="og:type" content="post">

o    Answer: a

28.                    Which meta tag would you use to give a webpage a brief description for search engines and social media platforms?

o    a) <meta name="description" content="A webpage about web development">

o    b) <meta name="description" content="Learn web development with HTML, CSS, and JavaScript">

o    c) <meta name="description" content="Webpage for learning web development">

o    d) <meta name="description" content="Web development and SEO tips">

o    Answer: b


Viewport and Mobile Optimization

29.                    Which meta tag is necessary to make a webpage mobile-friendly?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="mobile" content="yes">

o    c) <meta name="viewport" content="width=auto, initial-scale=1.0">

o    d) <meta name="viewport" content="width=1024, initial-scale=1.0">

o    Answer: a

30.                    Which of the following meta tags defines the viewport's width to match the device's width?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=auto">

o    c) <meta name="viewport" content="width=1024">

o    d) <meta name="viewport" content="width=500">

o    Answer: a


Meta Tags for Social Media

31.                    Which Open Graph tag defines the URL of the webpage when shared on social media platforms?

o    a) <meta property="og:url" content="https://example.com">

o    b) <meta name="og:url" content="https://example.com">

o    c) <meta content="https://example.com" name="og:url">

o    d) <meta name="url" content="https://example.com">

o    Answer: a

32.                    Which Open Graph tag defines the image that will appear when a page is shared on social media?

o    a) <meta property="og:image" content="image.jpg">

o    b) <meta name="og:image" content="image.jpg">

o    c) <meta property="og:image" content="https://example.com/image.jpg">

o    d) <meta name="og:image" content="https://example.com/image.jpg">

o    Answer: a


Meta Tags for SEO and Search Engine Optimization

33.                    What does the meta tag <meta name="robots" content="noindex"> do?

o    a) It tells search engines to not index the page.

o    b) It tells search engines to index the page but not follow the links.

o    c) It tells search engines to index and follow the page.

o    d) It blocks all search engines from visiting the page.

o    Answer: a

34.                    Which of the following meta tags is recommended for SEO purposes?

o    a) <meta name="description" content="Web development tutorials">

o    b) <meta name="keywords" content="HTML, CSS, JavaScript, Web Development">

o    c) <meta name="robots" content="index, follow">

o    d) All of the above

o    Answer: d

35.                    What is the purpose of the meta name="keywords" tag?

o    a) It defines the primary content of the webpage.

o    b) It helps search engines understand the topics of the webpage.

o    c) It displays the page title in search results.

o    d) It sets the character encoding of the webpage.

o    Answer: b

36.                    Which of the following meta tags can improve search engine ranking?

o    a) <meta name="author" content="John Doe">

o    b) <meta name="robots" content="index, follow">

o    c) <meta name="description" content="Webpage about SEO best practices">

o    d) All of the above

o    Answer: d

37.                    What does the meta tag <meta name="robots" content="index, nofollow"> do?

o    a) It tells search engines to index the page but not follow its links.

o    b) It tells search engines to follow the links but not index the page.

o    c) It tells search engines not to index or follow the page's links.

o    d) It blocks search engines from indexing the page.

o    Answer: a


Viewport and Mobile Optimization

38.                    Which meta tag is essential for creating a responsive webpage on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=100%, initial-scale=1.0">

o    c) <meta name="viewport" content="width=1024">

o    d) <meta name="viewport" content="width=device-width, maximum-scale=1.0">

o    Answer: a

39.                    How does the meta tag <meta name="viewport" content="width=device-width, initial-scale=1.0"> affect a webpage?

o    a) It sets the width of the page to match the device's width and scales it appropriately for mobile devices.

o    b) It prevents the page from zooming in on mobile devices.

o    c) It adjusts the page's text size automatically.

o    d) It restricts the page's zoom level to 100%.

o    Answer: a

40.                    Which of the following meta tags prevents users from zooming the page on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

o    b) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    c) <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

o    d) <meta name="viewport" content="width=device-width, initial-scale=1.5">

o    Answer: a


Open Graph Tags for Social Media Optimization

41.                    Which Open Graph tag is used to specify the title of a page when shared on social media?

o    a) <meta property="og:title" content="Web Development Tutorials">

o    b) <meta name="og:title" content="Web Development Tutorials">

o    c) <meta property="og:title" content="HTML Basics">

o    d) <meta name="og:title" content="HTML Basics">

o    Answer: a

42.                    What is the purpose of the Open Graph tag <meta property="og:image" content="image.jpg">?

o    a) It specifies the image that should be displayed when the webpage is shared on social media.

o    b) It defines the image dimensions of the webpage.

o    c) It includes an image thumbnail with the webpage description.

o    d) It provides a link to download the image used on the page.

o    Answer: a

43.                    Which Open Graph tag is used to specify the webpage's description when shared on social media?

o    a) <meta property="og:description" content="Learn web development with HTML, CSS, and JavaScript">

o    b) <meta name="og:description" content="Learn web development with HTML, CSS, and JavaScript">

o    c) <meta property="og:desc" content="Learn web development with HTML, CSS, and JavaScript">

o    d) <meta name="og:description" content="Learn HTML and CSS Basics">

o    Answer: a

44.                    Which Open Graph tag specifies the URL to be shared on social media platforms?

o    a) <meta property="og:url" content="https://example.com">

o    b) <meta name="og:url" content="https://example.com">

o    c) <meta property="og:link" content="https://example.com">

o    d) <meta name="og:link" content="https://example.com">

o    Answer: a


Meta Tags for Website and Application Information

45.                    Which meta tag is used to specify the language of a webpage?

o    a) <meta http-equiv="Content-Language" content="en-US">

o    b) <meta name="language" content="en-US">

o    c) <meta name="lang" content="en-US">

o    d) <meta http-equiv="language" content="en-US">

o    Answer: a

46.                    Which meta tag helps to prevent a webpage from being cached by the browser?

o    a) <meta http-equiv="Cache-Control" content="no-store">

o    b) <meta name="Cache-Control" content="no-cache">

o    c) <meta name="Cache-Control" content="max-age=0">

o    d) <meta http-equiv="Cache-Control" content="max-age=0">

o    Answer: a

47.                    What does the meta tag <meta name="robots" content="noindex, nofollow"> instruct search engines to do?

o    a) It tells search engines not to index the page or follow its links.

o    b) It tells search engines to index the page but not follow the links.

o    c) It blocks search engines from visiting the page.

o    d) It allows search engines to index the page and follow its links.

o    Answer: a

48.                    Which meta tag defines the character set of a webpage?

o    a) <meta charset="UTF-8">

o    b) <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

o    c) <meta name="charset" content="UTF-8">

o    d) <meta name="Content-Type" content="text/html; charset=UTF-8">

o    Answer: a


Meta Tags for Optimizing Mobile View

49.                    What does the initial-scale=1.0 property in the meta tag <meta name="viewport" content="width=device-width, initial-scale=1.0"> do?

o    a) It sets the zoom level of the page to 100%.

o    b) It allows the page to zoom dynamically based on user input.

o    c) It adjusts the page’s layout according to the device’s screen size.

o    d) It blocks zooming on mobile devices.

o    Answer: a

50.                    Which meta tag prevents a webpage from zooming on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

o    b) <meta name="viewport" content="width=device-width, initial-scale=1.5">

o    c) <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

o    d) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    Answer: a


Meta Tags for Web Development and SEO

51.                    What does the meta tag <meta name="robots" content="noindex, nofollow"> do?

o    a) It tells search engines not to index the page or follow its links.

o    b) It tells search engines to index the page but not follow the links.

o    c) It blocks search engines from visiting the page.

o    d) It allows search engines to index the page and follow its links.

o    Answer: a

52.                    Which meta tag is commonly used for specifying a page's author?

o    a) <meta name="author" content="John Doe">

o    b) <meta name="creator" content="John Doe">

o    c) <meta name="writer" content="John Doe">

o    d) <meta name="editor" content="John Doe">

o    Answer: a

53.                    Which of the following is a correct use of the meta tag to specify the character encoding?

o    a) <meta charset="UTF-8">

o    b) <meta http-equiv="charset" content="UTF-8">

o    c) <meta name="charset" content="UTF-8">

o    d) <meta content="UTF-8" charset="UTF-8">

o    Answer: a

54.                    The <meta name="viewport" content="width=device-width, initial-scale=1.0"> tag is used to:

o    a) Define the page's character encoding.

o    b) Ensure the page displays correctly on mobile devices.

o    c) Set the page's meta description.

o    d) Specify the title of the page.

o    Answer: b

55.                    Which meta tag defines the description of a webpage for search engines and social media?

o    a) <meta name="description" content="Web development tutorials and resources.">

o    b) <meta name="keywords" content="web development, HTML, CSS, JavaScript">

o    c) <meta name="author" content="John Doe">

o    d) <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

o    Answer: a

56.                    Which meta tag is used to specify the language of a webpage?

o    a) <meta name="language" content="en">

o    b) <meta http-equiv="language" content="en-US">

o    c) <meta http-equiv="Content-Language" content="en-US">

o    d) <meta charset="UTF-8">

o    Answer: c

57.                    Which of the following meta tags is used to set the page's default text direction?

o    a) <meta name="direction" content="ltr">

o    b) <meta name="text-direction" content="rtl">

o    c) <meta http-equiv="text-direction" content="ltr">

o    d) <meta name="direction" content="rtl">

o    Answer: a

58.                    Which of the following is the correct syntax for specifying a page’s author in a meta tag?

o    a) <meta name="author" content="John Doe">

o    b) <meta name="writer" content="John Doe">

o    c) <meta name="creator" content="John Doe">

o    d) <meta name="editor" content="John Doe">

o    Answer: a

59.                    Which of these meta tags can help improve a webpage's SEO ranking?

o    a) <meta name="description" content="High-quality content for SEO purposes.">

o    b) <meta name="robots" content="noindex">

o    c) <meta name="author" content="Jane Doe">

o    d) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    Answer: a

60.                    What does the <meta name="robots" content="index, follow"> tag tell search engines?

o    a) Index the page and follow the links.

o    b) Do not index the page or follow the links.

o    c) Index the page but do not follow the links.

o    d) Do not index the page but follow the links.

o    Answer: a


Meta Tags for Mobile and Browser Compatibility

61.                    Which of the following meta tags is used to make sure the page works well on both desktop and mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=1024, initial-scale=1.0">

o    c) <meta name="viewport" content="width=100%, initial-scale=1.0">

o    d) <meta name="viewport" content="width=device-width, maximum-scale=2.0">

o    Answer: a

62.                    What is the purpose of the maximum-scale=1.0 property in the meta tag <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">?

o    a) It prevents the user from zooming in on the page.

o    b) It allows users to zoom in on the page.

o    c) It sets the initial zoom level of the page.

o    d) It prevents the page from scaling.

o    Answer: a

63.                    Which of the following meta tags can disable zooming on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

o    b) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    c) <meta name="viewport" content="width=device-width, maximum-scale=1.0">

o    d) <meta name="viewport" content="width=device-width, zoomable=no">

o    Answer: a

64.                    What does the user-scalable=no property in the meta tag <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> do?

o    a) It prevents the user from zooming the webpage.

o    b) It allows the user to zoom in and out freely.

o    c) It sets the initial zoom level of the page.

o    d) It resizes the webpage for all screen sizes.

o    Answer: a

65.                    Which meta tag would be used to allow the page to be responsive and adjust to various screen sizes?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=1024">

o    c) <meta name="viewport" content="width=1000">

o    d) <meta name="viewport" content="width=device-width, scale=1.5">

o    Answer: a


Open Graph Tags for Social Media Optimization

66.                    Which Open Graph tag specifies the title of the webpage when it is shared on social media?

o    a) <meta property="og:title" content="Web Development Blog">

o    b) <meta name="og:title" content="Web Development Blog">

o    c) <meta property="og:title" content="Learning HTML and CSS">

o    d) <meta name="og:title" content="Learning HTML and CSS">

o    Answer: a

67.                    Which Open Graph tag allows you to specify the type of content, such as website or video?

o    a) <meta property="og:type" content="website">

o    b) <meta property="og:type" content="article">

o    c) <meta property="og:type" content="video">

o    d) All of the above

o    Answer: d

68.                    What does the Open Graph tag <meta property="og:image" content="image.jpg"> do?

o    a) It specifies the image to display when the webpage is shared on social media.

o    b) It defines the image dimensions of the webpage.

o    c) It serves as a thumbnail for the page.

o    d) It links to an image for download.

o    Answer: a

69.                    What is the correct use of the Open Graph tag <meta property="og:description" content="Description of the webpage">?

o    a) It sets the description of the page when shared on social media.

o    b) It adds a description for search engines.

o    c) It defines the webpage’s main keywords.

o    d) It adds the description to the search results.

o    Answer: a

70.                    Which Open Graph tag should you use to specify the URL of the webpage when it is shared on social media?

o    a) <meta property="og:url" content="https://example.com">

o    b) <meta name="og:url" content="https://example.com">

o    c) <meta property="og:link" content="https://example.com">

o    d) <meta name="og:link" content="https://example.com">

o    Answer: a


71.                    Which Open Graph tag is used to specify the audio content type (such as music or sound)?

o    a) <meta property="og:audio" content="audio.mp3">

o    b) <meta property="og:media" content="audio.mp3">

o    c) <meta property="og:audio" content="sound.mp3">

o    d) <meta property="og:media" content="sound.mp3">

o    Answer: a

72.                    Which Open Graph tag defines the locale of the page's content (e.g., en_US for English)?

o    a) <meta property="og:locale" content="en_US">

o    b) <meta property="og:lang" content="en_US">

o    c) <meta name="og:locale" content="en_US">

o    d) <meta name="og:lang" content="en_US">

o    Answer: a

73.                    Which Open Graph tag can be used to specify the video content when sharing on social media?

o    a) <meta property="og:video" content="video.mp4">

o    b) <meta property="og:media" content="video.mp4">

o    c) <meta property="og:media" content="video.webm">

o    d) <meta property="og:video" content="video.webm">

o    Answer: a

74.                    What is the correct Open Graph tag for specifying the image size when the content is shared on social media?

o    a) <meta property="og:image:width" content="800">

o    b) <meta property="og:image:height" content="400">

o    c) <meta property="og:image:size" content="800">

o    d) <meta property="og:image:size" content="400">

o    Answer: a

75.                    What does the Open Graph tag <meta property="og:site_name" content="Example Site"> do?

o    a) Specifies the name of the website when it is shared on social media.

o    b) Defines the homepage title.

o    c) Sets the site name for search engines.

o    d) Specifies the site’s location.

o    Answer: a


76.                    Which meta tag helps in preventing users from zooming on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

o    b) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    c) <meta name="viewport" content="width=device-width, zoom=no">

o    d) <meta name="viewport" content="width=device-width, initial-scale=1.5, user-scalable=no">

o    Answer: a

77.                    Which Open Graph tag is used to specify the type of content being shared, such as an article or a video?

o    a) <meta property="og:type" content="article">

o    b) <meta property="og:category" content="video">

o    c) <meta property="og:format" content="audio">

o    d) <meta property="og:type" content="image">

o    Answer: a

78.                    How do you use meta tags to make a website more responsive to mobile devices?

o    a) By setting the viewport meta tag.

o    b) By using viewport tag for mobile optimization.

o    c) By using mobile tag with proper content.

o    d) By setting the device-width in the meta tag.

o    Answer: a

79.                    Which of the following tags defines the location of an image to use for social media shares?

o    a) <meta property="og:image" content="image.jpg">

o    b) <meta property="og:image:location" content="image.jpg">

o    c) <meta property="og:image:url" content="image.jpg">

o    d) <meta name="og:image" content="image.jpg">

o    Answer: a

80.                    What Open Graph tag can be used to specify the language of content shared on social media?

o    a) <meta property="og:locale" content="en_US">

o    b) <meta property="og:lang" content="en-US">

o    c) <meta property="og:language" content="en_US">

o    d) <meta name="og:locale" content="en_US">

o    Answer: a


81.                    Which meta tag specifies the description of a web page for search engines?

o    a) <meta name="description" content="A brief description of the page">

o    b) <meta name="keywords" content="keywords, SEO">

o    c) <meta name="robots" content="index, follow">

o    d) <meta name="title" content="Page Title">

o    Answer: a

82.                    What is the purpose of the <meta name="robots" content="noindex, nofollow"> tag?

o    a) To prevent the page from being indexed by search engines.

o    b) To prevent search engines from following the links on the page.

o    c) To prevent both indexing and link-following by search engines.

o    d) To allow search engines to follow the links but not index the page.

o    Answer: c

83.                    Which of the following meta tags specifies a list of keywords relevant to the web page?

o    a) <meta name="description" content="list of keywords">

o    b) <meta name="robots" content="keywords, SEO">

o    c) <meta name="keywords" content="HTML, CSS, JavaScript, web development">

o    d) <meta name="search" content="keywords, tags">

o    Answer: c

84.                    What does the <meta name="robots" content="index, follow"> tag instruct search engines to do?

o    a) Index the page but not follow the links.

o    b) Not index the page but follow the links.

o    c) Index the page and follow the links.

o    d) Not index the page and not follow the links.

o    Answer: c

85.                    Which meta tag helps specify the author of the web page?

o    a) <meta name="author" content="John Doe">

o    b) <meta name="creator" content="John Doe">

o    c) <meta name="author" content="Jane Smith">

o    d) <meta name="publisher" content="John Doe">

o    Answer: a


86.                    Which Open Graph tag is used to specify the title of the shared content?

o    a) <meta property="og:title" content="Page Title">

o    b) <meta property="og:header" content="Page Title">

o    c) <meta property="og:heading" content="Page Title">

o    d) <meta property="og:description" content="Page Title">

o    Answer: a

87.                    Which Open Graph tag is used to define the URL of the page being shared?

o    a) <meta property="og:url" content="https://www.example.com">

o    b) <meta property="og:link" content="https://www.example.com">

o    c) <meta property="og:href" content="https://www.example.com">

o    d) <meta property="og:site" content="https://www.example.com">

o    Answer: a

88.                    Which Open Graph tag specifies the locale of the content being shared?

o    a) <meta property="og:locale" content="en_US">

o    b) <meta property="og:language" content="en_US">

o    c) <meta name="og:locale" content="en_US">

o    d) <meta name="og:lang" content="en_US">

o    Answer: a

89.                    Which Open Graph tag defines the type of the content being shared, such as "website," "article," or "video"?

o    a) <meta property="og:type" content="website">

o    b) <meta property="og:media" content="website">

o    c) <meta property="og:category" content="website">

o    d) <meta property="og:format" content="website">

o    Answer: a

90.                    Which Open Graph tag is used to specify the name of the website being shared?

o    a) <meta property="og:site_name" content="Example Website">

o    b) <meta property="og:web_name" content="Example Website">

o    c) <meta name="og:site_name" content="Example Website">

o    d) <meta name="og:web_name" content="Example Website">

o    Answer: a


91.                    What meta tag is commonly used to set the viewport properties for a mobile-friendly webpage?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=320, initial-scale=1.0">

o    c) <meta name="viewport" content="width=device-width, maximum-scale=1.0">

o    d) <meta name="viewport" content="width=device-width, initial-scale=0.5">

o    Answer: a

92.                    Which meta tag is used to control the default scaling of the page on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    b) <meta name="viewport" content="width=device-width, user-scalable=yes">

o    c) <meta name="viewport" content="width=device-width, maximum-scale=2.0">

o    d) <meta name="viewport" content="width=device-width, zoom=no">

o    Answer: a

93.                    Which Open Graph tag specifies the image dimensions when the content is shared on social media?

o    a) <meta property="og:image:width" content="1200">

o    b) <meta property="og:image:height" content="800">

o    c) <meta property="og:image:size" content="1200">

o    d) <meta property="og:image:dimension" content="1200x800">

o    Answer: a

94.                    Which Open Graph tag is used to define the description of the shared content?

o    a) <meta property="og:description" content="A short description of the content">

o    b) <meta property="og:summary" content="A short description of the content">

o    c) <meta name="og:description" content="A short description of the content">

o    d) <meta name="og:summary" content="A short description of the content">

o    Answer: a

95.                    Which meta tag ensures that the page does not allow scaling on mobile devices?

o    a) <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

o    b) <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

o    c) <meta name="viewport" content="width=device-width, initial-scale=1.0, zoom=no">

o    d) <meta name="viewport" content="width=device-width, initial-scale=1.5, user-scalable=no">

o    Answer: a


Miscellaneous Meta Tags and Open Graph Tags

96.                    Which meta tag is used to specify the encoding of the document?

o    a) <meta charset="UTF-8">

o    b) <meta name="charset" content="UTF-8">

o    c) <meta http-equiv="encoding" content="UTF-8">

o    d) <meta http-equiv="content-type" content="text/html; charset=UTF-8">

o    Answer: a

97.                    Which meta tag defines the content type for an HTML document?

o    a) <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

o    b) <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8">

o    c) <meta name="Content-Type" content="text/html; charset=UTF-8">

o    d) <meta name="Content-Type" content="application/xml; charset=UTF-8">

o    Answer: a

98.                    Which meta tag specifies the viewport width for responsive design?

o    a) <meta name="viewport" content="width=device-width">

o    b) <meta name="viewport" content="width=device-width, initial-scale=1.0">

o    c) <meta name="viewport" content="width=320">

o    d) <meta name="viewport" content="width=device-width, user-scalable=no">

o    Answer: a

99.                    Which Open Graph tag is used to specify the article's published time?

o    a) <meta property="og:article:published_time" content="2024-12-05T10:00:00Z">

o    b) <meta property="og:published_time" content="2024-12-05T10:00:00Z">

o    c) <meta property="og:article:published_date" content="2024-12-05">

o    d) <meta property="og:article:time" content="2024-12-05">

o    Answer: a

100.             Which Open Graph tag is used to define the content's image? - a) <meta property="og:image" content="https://www.example.com/image.jpg"> - b) <meta name="og:image" content="https://www.example.com/image.jpg"> - c) <meta property="og:image" content="image.jpg"> - d) <meta name="og:image" content="image.jpg"> - Answer: a


 

 


Tags

Post a Comment

0Comments

Post a Comment (0)