Question: What is the recommended format for adding structured data to pages?
- JSON
- Microdata
- JSON-LD
- RDFa
Explanation
HubSpot’s developer guidance says structured data is commonly added in a code block inside the page head, and it identifies JSON-LD as Google’s recommended implementation format. HubSpot Developers This approach keeps schema markup separate from the visible HTML, which makes it easier to manage without altering the page’s content structure. HubSpot Developers In HubSpot terminology, the goal is to give search engines machine-readable page information in the format recommended for schema markup. HubSpot Developers That makes this format the preferred choice over attribute-based alternatives. HubSpot Developers
Why the other options are incorrect
JSON is a general data format, but HubSpot’s structured data guidance points to the schema-specific implementation format recommended by Google instead. HubSpot Developers
Microdata embeds schema directly into HTML attributes, but HubSpot’s guidance points to a different recommended format for adding structured data. HubSpot Developers
RDFa also uses HTML attributes for metadata, and HubSpot does not present it as the recommended format for this use case. HubSpot Developers
Source for verification
The answer(s) to the question is highlighted in the BOLD text above. You can also find more questions and answers related to the exams on the "HubSpot CMS for Developers II" page.
