# Dynamically creating html content for the web viewer control

**URL:** <https://community.thunkable.com/t/dynamically-creating-html-content-for-the-web-viewer-control/69980>\
**Category:** Questions about Thunkable X\
**Created:** [February 23, 2019, 12:52am UTC](https://community.thunkable.com/t/dynamically-creating-html-content-for-the-web-viewer-control/69980 "2019-02-23T00:52:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhontz](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@bhontz](https://community.thunkable.com/u/bhontz)\
**Post date:** [February 23, 2019, 12:52am UTC](https://community.thunkable.com/t/dynamically-creating-html-content-for-the-web-viewer-control/69980/1 "2019-02-23T00:52:03Z")

</div>

I thought I could create HTML snippets dynamically within my app and then set the URL attribute of the web viewer to the built up string variable – but that doesn’t seem to be supported. Checking the documentation, the web viewer seems to want either an uploaded file resource or an http:// https:// reference. Has anyone tackled this problem and devised a clever work around?

Thanks in advance,

---

<div class="post-metadata">

**Author:** ![bhontz](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@bhontz](https://community.thunkable.com/u/bhontz)\
**Post date:** [February 23, 2019, 4:55pm UTC](https://community.thunkable.com/t/dynamically-creating-html-content-for-the-web-viewer-control/69980/2 "2019-02-23T16:55:06Z")

</div>

NM - figured it out, all apologies.

I had tested at a “minimum” level of `<html><body>hello world</body></html>`. If you add the line below in advance of your html you’re fine:  
`data:text/html,<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>`

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:16pm UTC](https://community.thunkable.com/t/dynamically-creating-html-content-for-the-web-viewer-control/69980/3 "2024-11-08T12:16:14Z")

</div>


