{"success":true,"data":{"ext":"htm","name":"HTM","description":"HTM is a HyperText Markup Language document format used to structure web pages, originally created by Tim Berners-Lee and now maintained through the WHATWG HTML Standard with W3C coordination. It is used for websites, web applications, templates, and locally stored pages rendered by browsers and other HTML-aware tools. HTML itself is generally safe, though documents may reference scripts, external resources, or active content that require caution when opened from untrusted sources.","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":["html","cfg","js","mjs","xhtml","xml"],"usage":{"python":"def is_htm(file_path: str) -> bool:\n    \"\"\"Check if file is a valid HTM 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 isHTM(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 IsHTM(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"}}