---
description: Compare exported HTML with previous exported HTML
---

# Expected HTML Output

The Expected Output value is the HTML that you expect the page to output. This is empty by default.&#x20;

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-Lov1r-SVNrGpUoNswsu%2F-LovPC-WmnJdFkRTSv_j%2Fimage.png?alt=media\&token=b829010c-7228-4e12-acdb-dfec8b0efc5e)

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-Lov1r-SVNrGpUoNswsu%2F-LovO4CMo0nzb4Pkki3n%2Fimage.png?alt=media\&token=01599120-293c-4690-8ac4-3cbe123e936d)

This is available so you can compare the current output with the previous output. It's typically used for unit tests and a way for you to show changes between versions from Web Export.&#x20;

It basically creates diff patches that are viewable as a web page. If you use version control, it is like that but it allows you to see changes from your XD project.&#x20;

&#x20;

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpA3T20aXHYV_gzHAyv%2F-LpA5RtK5dw1ATTbwH3c%2Fdiff-report.gif?alt=media\&token=33d9f43d-c212-479b-a9bf-ace52951c548)

{% hint style="info" %}
When you use this and there are a lot of changes it can take time to process all of the differences. It may look like the export process has stopped responding. Nay. It is simply comparing differences. It can take up to a minute.&#x20;
{% endhint %}

If the HTML is different than the expected output a diff button will show. Click on this button to see the HTML of all the code differences. Use the Enter key to go through each change.&#x20;

If there are no changes then a checkmark icon will be shown.&#x20;

To use this copy the page HTML and paste it into this field. The next time you press export a comparison will be made.&#x20;

There are related Expect Output fields for HTML, CSS and JavaScript.&#x20;
