{"success":true,"data":{"ext":"html","name":"HTML","description":"HyperText Markup Language (HTML) is the standard markup language for web pages, originally created by Tim Berners-Lee and now maintained by the WHATWG and the W3C. It is used to structure content on websites, web applications, and documents rendered by browsers and other user agents. HTML itself is generally safe, though pages may reference scripts, forms, and external resources that can introduce security and privacy risks.","mime":["text/html"],"risk_level":"Safe","signatures":[{"hex":"3C 21 44 4F 43 54 59 50 45 20 48 54 4D 4C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 21 44 4F 43 54 59 50 45 20 68 74 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 21 64 6F 63 74 79 70 65 20 48 54 4D 4C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 21 64 6F 63 74 79 70 65 20 68 74 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 48 45 41 44","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 68 65 61 64","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 54 49 54 4C 45","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 74 69 74 6C 65","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 48 54 4D 4C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 68 74 6D 6C","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"3C 68 74 6D 6C","offset":128,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["htm","cfg","js","mjs","xhtml","xml"],"usage":{"python":"def is_html(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HTML by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x21, 0x44, 0x4F, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20, 0x48, 0x54, 0x4D, 0x4C])\n    with open(file_path, \"rb\") as f:\n        return f.read(14) == signature","node":"function isHTML(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x21, 0x44, 0x4F, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20, 0x48, 0x54, 0x4D, 0x4C]);\n  return buffer.subarray(0, 14).equals(signature);\n}","go":"func IsHTML(data []byte) bool {\n    signature := []byte{0x3C, 0x21, 0x44, 0x4F, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20, 0x48, 0x54, 0x4D, 0x4C}\n    if len(data) < 14 {\n        return false\n    }\n    return bytes.Equal(data[:14], signature)\n}"},"category":"Web & Config"}}