Metadata Flashcards
What are the two main types of meta tags in HTML?
- Pragma Directives
- Named Meta Tags
What attribute is used in pragma directives to describe how the page should be parsed?
http-equiv
attribute
What is the purpose of the Content-Security-Policy
pragma directive?
It defines the content policy, specifies allowed server origins, script endpoints, and protects against cross-site scripting (XSS) attacks.
What does the name
attribute in meta tags define?
The name
of the metadata, such as viewport
or description.
What is required for both pragma directives and named meta tags?
The content
attribute is required.
What is the purpose of the viewport
meta tag?
It controls the layout on mobile devices, such as scaling and zoom behavior.
What does the description
meta tag provide?
A short, accurate summary of the page content, displayed under the title in search results.
What is the Open Graph Protocol used for?
It controls how social media platforms display links to content from your site.
What attribute is used in Open Graph meta tags instead of name?
The property
attribute.
What is the purpose of Twitter-specific Open Graph meta tags?
They provide a different experience with link tracking for Twitter, such as displaying titles, descriptions, and images.