How can I add external HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How can I add external HTML

External CSS is like this: <link rel=“stylesheet” href=“https//linkaddress.com” <\link> How can I do external HTML?

18th May 2018, 2:17 PM
🐺Michael🐺
🐺Michael🐺 - avatar
2 Answers
+ 6
You could utilize iFrames for such purposes. https://www.w3schools.com/html/html_iframe.asp ^Resource for it. Best of luck!
18th May 2018, 2:27 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 2
You can use PHP to directly include or require HTML files and implement them in other HTML files using the statements: include(“filename.html”); Or require(“filename.html”); For example: <body> <!— Include Navigational Bar —> <?php include(“nav/navbar.html”); ?> </body>
28th May 2018, 1:54 PM
166239