The HTML is a language to script websites etc. This script is creating the label, but this script shouldn’t work at the moment because of changes in Roblox API.
Yeah, I know, right? We could make a working web browser with this using HttpService to fetch the HTML of the page, and use HtmlService to display it. But, there are some vulnerabilities, so I can understand why Roblox disabled it. For example, you could use a tracking pixel or a “web bug” in the page to potentially get a user’s IP address and their device info. However, this could be avoided by loading all external content on the page with a proxy. Plus, you usually can’t do much with an IP address. Typically, you can’t see a user’s personal information through an IP address, unless their WHOIS data is visible, which most ISPs hide. You could also potentially display inappropriate or suggestive images, but you can also do this right now by rendering each pixel as a frame inside of a GUI. So theoretically, if Roblox enabled HtmlService, it wouldn’t really pose that much of a threat to their users.
If you read a sentence in the image(down below), it basically was like a ScreenGui in a way, as users used HtmlService for shop windows and such. So to emulate it, you could HttpService and display the returned results as a GUI.
Yes, but it would be both hard and inefficient to convert HTML objects into Roblox GUI objects. For example, in Roblox, if you were to convert a simple 250x250 static image on a page to a viewable image by converting every pixel to a frame, you would need to render 62,500 objects! An example of this is CloneTrooper1019’s PNG Loader. Since it is rendering the image in 3-D with a heightmap, it needs to render a part for every pixel, since there isn’t a more efficient way of doing it. If you were to render it in 2-D, you would need a frame for every pixel. The HtmlService option would be way more efficient, as standard web browsers can render images very efficiently on the GPU, not by rendering every pixel as a frame like we have to do currently in Roblox. I guess you could potentially save rendering costs by using UIGradients, but that is hacky and still inefficient. Also, Roblox currently has no support for external fonts, it can’t render SVGs, et cetera. Having an HTML integration in GUIs, like an HtmlFrame object, would be nice.