Metadata Flashcards

1
Q

What are the two main types of meta tags in HTML?

A
  1. Pragma Directives
  2. Named Meta Tags
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What attribute is used in pragma directives to describe how the page should be parsed?

A

http-equiv attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of the Content-Security-Policy pragma directive?

A

It defines the content policy, specifies allowed server origins, script endpoints, and protects against cross-site scripting (XSS) attacks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the name attribute in meta tags define?

A

The name of the metadata, such as viewport or description.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is required for both pragma directives and named meta tags?

A

The content attribute is required.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of the viewport meta tag?

A

It controls the layout on mobile devices, such as scaling and zoom behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the description meta tag provide?

A

A short, accurate summary of the page content, displayed under the title in search results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the Open Graph Protocol used for?

A

It controls how social media platforms display links to content from your site.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What attribute is used in Open Graph meta tags instead of name?

A

The property attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the purpose of Twitter-specific Open Graph meta tags?

A

They provide a different experience with link tracking for Twitter, such as displaying titles, descriptions, and images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly