Look for < !DOCTYPE html > declaration at the page's beginning and look for HTML5-specific components, attributes, and semantic tags to ensure a document is created in HTML5. An HTML validator tool like the W3C Markup Validation Service can also check the document's validity.