Computer Hope

Internet & Networking => Web design => Topic started by: jenit739 on December 13, 2021, 03:14:11 AM

Title: How I can put HTML inside HTML
Post by: jenit739 on December 13, 2021, 03:14:11 AM
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?
Title: Re: How I can put HTML inside HTML
Post by: Geek-9pm on December 13, 2021, 11:29:58 AM
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
Title: Re: How I can put HTML inside HTML
Post by: jhonalbert on December 20, 2021, 12:56:17 AM
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.