Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

80%
+6 −0
Q&A Splitting a large HTML file into two or more HTML files without JavaScript

You can not do it with HTML only. In the past there was HTML Imports, but it is Obsolete since Chrome 73 according to MDN and deprecated in Chrome 80. You might want to use iFrame. However I have...

posted 3y ago by Kevin M. Mansour‭  ·  edited 3y ago by Kevin M. Mansour‭

Answer
#3: Post edited by user avatar Kevin M. Mansour‭ · 2021-07-04T17:31:38Z (over 3 years ago)
Better answer.
  • You can not do it in HTML only. In the past there was [`HTML Imports`](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports), but it is Obsolete since Chrome 73 according to [MDN](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports) and deprecated in Chrome 80.
  • You might want to use [`iFrame`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
  • However I have seen iFrame is miss used as well. It should be never used as an integral part of your site, but as a piece of content within your site.
  • Since you have access to backend as PHP, You might implement HTML file via [`Include`](https://www.php.net/manual/en/function.include.php) Or via [`Require`](https://www.php.net/manual/es/function.require.php).
  • Or you might want to use JavaScript Solution to add your HTML file.
  • **Programmer Side Note:** as @manassehkatz‭ mentioned. 80 lines of code is not a big project. so, Good Luck and Happy Coding!
  • You can not do it with HTML only. In the past there was [`HTML Imports`](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports), but it is Obsolete since Chrome 73 according to [MDN](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports) and deprecated in Chrome 80.
  • You might want to use [`iFrame`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
  • However I have seen iFrame is miss used as well. It should be never used as an integral part of your site, but as a piece of content within your site.
  • Since you have access to backend as PHP, You might implement HTML file via [`Include`](https://www.php.net/manual/en/function.include.php) Or via [`Require`](https://www.php.net/manual/es/function.require.php).
  • Or you might want to use JavaScript Solution to add your HTML file.
  • **Programmer Side Note:** as @manassehkatz‭ mentioned. 80 lines of code is not a big project. so, Good Luck and Happy Coding!
#2: Post edited by user avatar Kevin M. Mansour‭ · 2021-07-04T17:30:09Z (over 3 years ago)
Cleaning Up.
  • You can not do it in HTML only. In the past there was [`HTML Imports`](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports), but it is deprecated since Chrome 73 according to [MDN](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports).
  • You might want to use [`iFrame`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
  • However I have seen iFrame is miss used as well. It should be never used as an integral part of your site, but as a piece of content within a site.
  • Since you have access to Backend as PHP, You might implement HTML file via [`Include`](https://www.php.net/manual/en/function.include.php) Or via [`require`](https://www.php.net/manual/es/function.require.php).
  • Or you might want to use JavaScript Solution to add your HTML file.
  • **Programmer Side Note:** as @manassehkatz‭ mentioned. 80 lines of code is not a big project. so, Good Luck and Happy Coding!
  • You can not do it in HTML only. In the past there was [`HTML Imports`](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports), but it is Obsolete since Chrome 73 according to [MDN](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports) and deprecated in Chrome 80.
  • You might want to use [`iFrame`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
  • However I have seen iFrame is miss used as well. It should be never used as an integral part of your site, but as a piece of content within your site.
  • Since you have access to backend as PHP, You might implement HTML file via [`Include`](https://www.php.net/manual/en/function.include.php) Or via [`Require`](https://www.php.net/manual/es/function.require.php).
  • Or you might want to use JavaScript Solution to add your HTML file.
  • **Programmer Side Note:** as @manassehkatz‭ mentioned. 80 lines of code is not a big project. so, Good Luck and Happy Coding!
#1: Initial revision by user avatar Kevin M. Mansour‭ · 2021-07-04T17:27:26Z (over 3 years ago)
You can not do it in HTML only. In the past there was [`HTML Imports`](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports), but it is deprecated since Chrome 73 according to [MDN](https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports).

You might want to use [`iFrame`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).

However I have seen iFrame is miss used as well. It should be never used as an integral part of your site, but as a piece of content within a site.

Since you have access to Backend as PHP, You might implement HTML file via [`Include`](https://www.php.net/manual/en/function.include.php) Or via [`require`](https://www.php.net/manual/es/function.require.php).

Or you might want to use JavaScript Solution to add your HTML file.

**Programmer Side Note:** as @manassehkatz‭ mentioned. 80 lines of code is not a big project. so, Good Luck and Happy Coding!