Documentation Center

HTML detection settings

To determine if a file should be processed with the HTML file type, SDL Trados Studio checks the content of the file against the conditions that you define on the Detection page. To open the Detection page for your HTML file type, click File > Options > File Types > [HTML file type] > Detection.

On this page, specify either a Doctype declaration, a root element or a namespace declaration. This helps Studio identify a file as being an HTML document and apply the correct extraction settings.

OptionDescription
DOCTYPE Declaration

To specify a doctype declaration, type the element name and click OK on the Detection page.

For example:

<!DOCTYPE html>

Process HTML Fragments

When this option is enabled, Studio can open and process HTML documents with the HTML file type, even if the documents are missing the HTML root element.

For example, you may have an *.htm file that only contains one HTML fragment: <H3> This is a Heading </H3>. Studio cannot normally open the file without the <html> </html> root element, even if the file has a recognized HTML extension.

Root Elements

To specify a root element, click Add... and enter the element name without the brackets.

For example:
<html> 
<title>Hello world!</title> 
</html>

If Studio finds an <html> element in the selected file, it will process the file as an HTML document and apply the HTML extraction settings.

Namespace Declarations

To specify a namespace declaration, click Add... and enter the URI (Uniform Resource Indicator) that identifies the namespace.

For example:

<html xmlns:xhtml="http://www.w3.org/xhtml/">

Related topics