How I can put HTML inside HTML

Started by jenit739, December 13, 2021, 03:14:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jenit739

Hi
I'm making a web as a project in school, so I need to put some examples of webs (made only with HTML) on it: but I need to show the output as the code; so, is there an attribute of HTML, or JavaScript that helps me to explain the compiler that the code, in that case, it's just a text that needs to be displayed in the screen?

Geek-9pm

Your say you are a novice
Here is the novice answer:
Show the source on your screen.
Take a screenshot.
Use the image in your code to show the HTML now as a image.
Yes, there is is another  way. But try this first. It works.  8)
I really am trying to help you:D

jhonalbert

HTML Imports, part of the Web Components cast, is a way to include HTML documents in other HTML documents. You're not limited to markup either. An import can also include CSS, JavaScript, or anything else an . html file can contain.