How to Put content from a HTML page to your website with a single line of code ? - Devhelper  

How to Put content from a HTML page to your website with a single line of code ?

Table of Contents


 

Include external Html file in another Html Page

How can you put the code of any other webpage in your webpage which contains HTML tags like h2, h1, p, a, img, and other

put content from a HTML page to your website

Iframe Tag in Html

The iframe tag specifies an inline frame. An iframe tag is used to embed another document within the current HTML document. Iframe can be styled by CSS. You can embed the whole page with this method.

Read : how to use html iframe

data-include Attribute in Html

With this trick, the code of the website can be fetched, which includes HTML and CSS documents but JavaScript code is not supported in it. 

How To Use:

• Use This Script in Head Section of your webpage with script src tag:

  

 [Open Script]

• Use This Type of code in html body :

div data-include tag

This Div can be styled by div style tag or CSS stylesheet.