> For the complete documentation index, see [llms.txt](https://velara-3.gitbook.io/web-export/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://velara-3.gitbook.io/web-export/elements-and-sub-elements.md).

# Elements and Sub Elements

Elements and sub elements

Web Export creates code from the elements in your artboard. Usually the code is one or two blocks.&#x20;

A Ellipse in an artboard becomes an SVG Ellipse.&#x20;

![Ellipse on the artboard](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpELLyX8XSqjybFRL6T%2Fimage.png?alt=media\&token=e1920c58-1ae1-47c7-b4a0-cefffeaacebd)

![HTML (SVG) code of the ellipse](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEMFmTKj4D4N_op8K0%2Fimage.png?alt=media\&token=de67715e-d351-444e-9edf-3ba64b9021aa)

![Ellipse that is recreated in the browser from the HTML page](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpELeRk2Lp6m8H7iV51%2Fimage.png?alt=media\&token=c227be98-663a-4b71-a7b2-cab273cc8ea5)

![HTML in the browser](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEM31SOtklsLf7ObKB%2Fimage.png?alt=media\&token=ce0439ae-146d-4ff8-8f38-15668cc1c715)

In the Ellipse above there are two tags that are used, the **svg** tag and the **ellipse** tag:&#x20;

```
<svg class="Ellipse_2">
	<ellipse fill="rgba(189,90,234,1)" stroke="rgba(112,112,112,1)" stroke-width="1px" stroke-linejoin="miter" stroke-linecap="butt" stroke-miterlimit="4" shape-rendering="auto" id="Ellipse_2" rx="50" ry="50" cx="50" cy="50">
	</ellipse>
</svg>
```

Some elements are one tag:&#x20;

```
<div id="Artboard___1">

</div>
```

In the Element options view some fields have two fields next to each other. For example, there is a Styles field and a Sub Styles field.&#x20;

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEO4-t8SSIDKLn8HGI%2Fimage.png?alt=media\&token=0a6509cb-5ddb-417c-aefe-61061b0a1231)

The first field is used to set the styles on the first tag and the second field is to set the styles on the second tag.&#x20;

If we select an Ellipse element then the **SVG** tag will be styled by the first field and the **ellipse** tag will be styled by second field.&#x20;

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEOCEgHk-vMHdGe9eE%2Fimage.png?alt=media\&token=90cf7cce-716c-438c-9a10-5c3964b665d9)

![Ellipse code](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEMFmTKj4D4N_op8K0%2Fimage.png?alt=media\&token=de67715e-d351-444e-9edf-3ba64b9021aa)

When an element is only a single tag, like the Artboard or a group (container) only the first field applies. Setting the sub field does nothing.&#x20;

You can see the effects when we add a class to an element and add a class to the sub element:

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEP8H3Krqnpn4U9s7P%2Fimage.png?alt=media\&token=e4c0c24b-8b1c-4e82-bdee-8e0eeba47ce0)

Before:&#x20;

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEPZ0upnZXq0p3zMHZ%2Fimage.png?alt=media\&token=7ab1e766-2f70-4d2d-94b1-95c84d6bee56)

After:

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LpEKNwLX5u5vE9a18RI%2F-LpEPMIloNZkEX9JuUMI%2Fimage.png?alt=media\&token=fe41bddf-3947-49de-850d-de5c44121984)

{% embed url="<https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics>" %}

{% embed url="<https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web>" %}

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/SVG>" %}
